FlyFar

worm.h

Feb 28th, 2023
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.41 KB | Cybersecurity | 0 0
  1. /* Magic numbers the program uses to identify other copies of itself. */
  2.  
  3. #define REPORT_PORT 0x2c5d
  4. #define MAGIC_1 0x00148898
  5. #define MAGIC_2 0x00874697
  6. extern int pleasequit;      /* This stops the program after one
  7.                  * complete pass if set.  It is incremented
  8.                  * inside of checkother if contact with another
  9.                  * happens. */
  10.  
  11. /* There are pieces of "stub" code, presumably from something like this to
  12.    get rid of error messages */
  13. #define error()
  14.  
  15. /* This appears to be a structure unique to this program.  It doesn't seem that
  16.  * the blank slots are really an array of characters for the hostname, but
  17.  * maybe they are.
  18.  */
  19. struct hst {
  20.     char *hostname;
  21.     int l4, l8, l12, l16, l20, l24, o28, o32, o36, o40, o44;
  22.     int o48[6];                 /* used */
  23.     int flag;                   /* used */
  24. #define HST_HOSTEQUIV   8
  25. #define HST_HOSTFOUR    4
  26. #define HST_HOSTTWO 2
  27.     struct hst *next;               /* o76 */
  28. };
  29.  
  30. typedef struct {
  31.     char *name;
  32.     unsigned long size;
  33.     char *buf;
  34. } object;
  35.  
  36. extern struct ifses {
  37.     int if_l0, if_l4, if_l8, if_l12; /* unused */
  38.     int if_l16;         /* used */
  39.     int if_l20;         /* unused */
  40.     int if_l24;         /* used */
  41.     short if_l28;       /* unused */
  42. } ifs[];
  43. extern nifs;
  44.  
  45. extern int ngateways;
  46.  
  47. extern object objects[], *getobjectbyname();
  48. extern int nobjects;
  49.  
  50. /* Only used for a2in().  Why?  I don't know. */
  51. struct bar {int baz;};
  52. extern struct bar *a2in();
  53.  
Add Comment
Please, Sign In to add comment