easybox keygen - Python-Script


SUBMITTED BY: Guest

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

FORMAT: Python

SIZE: 747 Bytes

HITS: 839

  1. #!/usr/bin/env python
  2. def keygen( mac ):
  3. bytes = [int(x, 16) for x in mac.split(':')]
  4. c1 = (bytes[-2] << 8) + bytes[-1]
  5. (s6, s7, s8, s9, s10) = [int(x) for x in '%05d' % (c1)]
  6. (m7, m8, m9, m10, m11, m12) = [int(x, 16) for x in mac.replace(':', '')[6:]]
  7. k1 = (s7 + s8 + m11 + m12) & (0x0F)
  8. k2 = (m9 + m10 + s9 + s10) & (0x0F)
  9. x1 = k1 ^ s10
  10. x2 = k1 ^ s9
  11. x3 = k1 ^ s8
  12. y1 = k2 ^ m10
  13. y2 = k2 ^ m11
  14. y3 = k2 ^ m12
  15. z1 = m11 ^ s10
  16. z2 = m12 ^ s9
  17. z3 = k1 ^ k2
  18. return "%X%X%X%X%X%X%X%X%X" % (x1, y1, z1, x2, y2, z2, x3, y3, z3)
  19. print("EasyBox WPA2-Keygen by Sebastian Petters")
  20. print("http://www.wotan.cc")
  21. mac = raw_input("MAC: ")
  22. print( keygen(mac) )

comments powered by Disqus