论坛: 轻松一刻 标题: corewar 复制本贴地址    
作者: SysHu0teR [syshunter]    版主   登录
上网无聊竟然翻到这个东西,虽然刚学计算机时就听说它是病毒的鼻祖,但一直觉得那种境界不是我等人可达的。多年过去了,现在再看并不像当初想象的那么神秘,也明白了它到底好玩在哪。

连接: http://www.nsfocus.net/index.php?act=magazine&do=view&mid=1367



地主 发表时间: 06-12-11 23:15

回复: kert_t8 [kert_t8]   论坛用户   登录


B1层 发表时间: 06-12-12 17:51

回复: NetDemon [netdemon]   ADMIN   登录
The webpage cannot be found
HTTP 404 
  Most likely causes:
There might be a typing error in the address.
If you clicked on a link, it may be out of date.

  What you can try:
    Retype the address. 

    Go back to the previous page.

    Go to www.nsfocus.net and look for the information you want. 

    More information

This error (HTTP 404 Not Found) means that Internet Explorer was able to connect to the website, but the page you wanted was not found. It's possible that the webpage is temporarily unavailable. Alternatively, the website might have changed or removed the webpage.

For more information about HTTP errors, see Help.



B2层 发表时间: 06-12-12 20:11

回复: SysHu0teR [syshunter]   版主   登录
http://www.koth.org/

指令简单,算法不简单。挺有意思的。

有兴趣的咱们没事也来写几个进行下小对抗,这个游戏值得提倡,能运行DOS的配置就能玩,真正的价廉物美,童叟无欺!

B3层 发表时间: 06-12-12 21:09

回复: SysHu0teR [syshunter]   版主   登录
贴个我的,附注释。

代码:

;name 1mas            ;程序名字,用于对战结束后显示成绩               
;author syshunter      ;作者
org start              ;跟intel汇编一样,表示程序从start标号处开始执行

dat 3                  ;程序执行到dat会结束,这个dat用于抛到敌人内存中去
start mov -1,2        ;我们的程序从这里执行,-1是直接相对寻址,此句表示将上面一句dat复制到当前mov指令向下两个内存中
jmp start,>start            ;将上面那条mov指令后的2加1后跳回到到mov处继续执行,实现一个死循环,让mov不停的把dat指令往内存高地址处复制
end



执行过程如下:
mov -1,2
jmp -1,>-1
dat 0

mov -1,3
jmp -1,>-1
dat 0
dat 0

.....
mov -1,n
jmp -1,>-1
dat 0
dat 0
dat 0
....


嘎嘎,和IMP打成平手,但这可是我如假包换自己想的噢。

注IMP:
mov 0,1            ;就这一条,目的就是不断的将自己复制到下面以达到覆盖对手的目的

B4层 发表时间: 06-12-12 22:15

回复: xiaoshi [xiaoshi]   论坛用户   登录
那去找个个模拟器啊,看了好多是汇编指令。

B5层 发表时间: 06-12-12 23:13

回复: SysHu0teR [syshunter]   版主   登录
可以用下面这个工具做编辑、调试、比赛的环境 http://www.20cn.net/cgi-bin/club/showpic.pl?u=syshunter&f=corewin.jpg
记得下完了把后缀名改成zip
www.syshunter.net
这上面有两篇文章,一篇是介绍redcode编写的,一篇是实例教学。

B6层 发表时间: 06-12-13 21:23

论坛: 轻松一刻

20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon

粤ICP备05087286号