settings.h 1.2 KB

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