PackConfig.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. # '''Version 1.2.16.1 (legacy release) requires an older version of this PackConfig. Please use: http://wraith.botpack.net/wiki/PackConfig?version=28'''
  2. # '''Also see a working example at PackConfigExample'''
  3. {{{
  4. #!html
  5. <pre>
  6. /* Salted-SHA1 format:
  7. * rand: 12345 (This should be random)
  8. * pass: password
  9. * format: +12345$SHA1(12345password)
  10. * Result: +12345$c553b125c1f87134911fe18e02f29c7ea7027303
  11. */
  12. </pre>
  13. # <label for="pass">Pass:</label> <input type="text=" size="50" id="pass" />
  14. <input type="button" value="Generate Salted SHA1" onClick="saltedSHA1();">
  15. <br />
  16. # <label for="salted_sha1">salted_sha1:</label> <input type="text" size="50" readonly id="salted_sha1" onclick="javascript:this.focus();this.select();"/>
  17. <script language="JavaScript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/core-min.js"></script>
  18. <script language="JavaScript" src="https://cdnjs.cloudflare.com/ajax/libs/crypto-js/3.1.2/components/sha1-min.js"></script>
  19. <script language="javascript" type="text/javascript">
  20. function randomString(n) {
  21. var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
  22. var string_length = n;
  23. var randomstring = '';
  24. for (var i=0; i<string_length; i++) {
  25. var rnum = Math.floor(Math.random() * chars.length);
  26. randomstring += chars.substring(rnum,rnum+1);
  27. }
  28. return randomstring;
  29. }
  30. function saltedSHA1() {
  31. var salt = randomString(5);
  32. var pass = document.getElementById('pass').value;
  33. var salted_sha1 = document.getElementById('salted_sha1');
  34. salted_sha1.value = '';
  35. if (!pass) return;
  36. salted_sha1.value = '+' + salt + '$' + CryptoJS.SHA1(salt + pass);
  37. }
  38. </script>
  39. <form name="randform">
  40. </form>
  41. <pre>
  42. /* The &lt; && &gt; indicates the area you must change!
  43. * Do not leave the &lt;&gt;
  44. * Credit to Excelsior / CELDROP for this design
  45. */
  46. /* PACKNAME: name of the pack (no spaces) */
  47. PACKNAME &lt;name&gt;
  48. /* HASHES
  49. * This must remain 100% secure/private, this key can retrieve the salts, and
  50. * the entire botnet could be hijacked, a pass 8 chars or more is suggested
  51. * DO NOT FORGET THE CLEARTEXT, SAVE IT IN A SAFE PLACE, IT CANNOT BE RECOVERED.
  52. */
  53. /* BINARYPASS: salted-SHA1
  54. * BINARYPASS should be a salted-sha1. (Use the form at the top of this page)
  55. */
  56. BINARYPASS &lt;salted-SHA1&gt;
  57. /* DCCPREFIX: 1 char cmd prefix for dcc. (ie, .cmd or !cmd) */
  58. DCCPREFIX &lt;.&gt;
  59. /* The settings below can each be defined multiple times */
  60. /* OWNER &lt;nick password&gt;
  61. * Multiple OWNER lines may be defined, each will be added as a +a perm owner.
  62. * All perm owners will have remote shell access to your bots.
  63. * nick: nickname what else?
  64. * password: initial password for user. DO NOT MAKE THIS YOUR NORMAL PASSWORD.
  65. * Password should be a salted-sha1. (Use the form at the top of this page)
  66. */
  67. OWNER &lt;YourNick salted-SHA1&gt;
  68. /* HUB &lt;nick host port&gt;
  69. * Hubs are ranked by the order they are listed.
  70. * Hubs DO NOT come on IRC.
  71. * nick: nick of hub
  72. * host: hostname or ip of hub (A 'dynamic' OR 'changeable' HOSTNAME IS RECOMMENDED)
  73. * port: port the hub listens on
  74. *
  75. * Your hub hosts should NOT be vhosts. They need to be changeable dns,
  76. * so you can easily move the hubs later if needed.
  77. * Use a domain you OWN/CONTROL, or a trusted friend's.
  78. */
  79. HUB &lt;hub1 hub1.domain.tld 1234&gt;
  80. HUB &lt;hub2 hub2.domain.tld 1235&gt;
  81. /* You will also need to add SALTS to your packconfig. These should only be generated <strong>once per botnet.</strong>
  82. Click the button below to generate SALTS for your botnet. */
  83. SALT1 <span id="salt1">&nbsp;</span>
  84. SALT2 <span id="salt2">&nbsp;</span>
  85. </pre>
  86. <script language="javascript" type="text/javascript">
  87. function createSalts() {
  88. var salt1 = randomString(32);
  89. var salt2 = randomString(16);
  90. var s1 = document.getElementById('salt1');
  91. s1.innerText = salt1;
  92. s1.innerHtml = salt1;
  93. s1.textContent = salt1;
  94. var s2 = document.getElementById('salt2');
  95. s2.innerText = salt2;
  96. s2.innerHtml = salt2;
  97. s2.textContent = salt2;
  98. }
  99. </script>
  100. <form name="randform">
  101. <input type="button" value="Click to Generate Salts" onClick="createSalts();">
  102. </form>
  103. }}}