/* 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
莫里斯蠕虫源码
最新推荐文章于 2024-07-03 10:03:24 发布
本文档展示了莫里斯蠕虫的部分源代码,包括用于识别自身副本的魔术数字定义、结构体定义以及一些函数声明。代码中包含了一个名为`struct hst`的独特结构,可能用于存储主机信息。此外,还提及了对象`object`的定义和一些未使用的变量。
摘要由CSDN通过智能技术生成