easybox keygen - FreeBasic Source


SUBMITTED BY: Guest

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

FORMAT: Text only

SIZE: 2.9 kB

HITS: 824

  1. Function DeHex(ByVal V_Hex As String) As Integer
  2. Dim X as Integer
  3. Dim L as Integer
  4. Dim D As Integer
  5. Dim T as Byte
  6. Dim V As Byte
  7. V_Hex = UCase(V_Hex)
  8. L = Len(V_Hex)
  9. For X = 1 To L
  10. T = asc(Mid(V_Hex, X, 1))
  11. Select Case T
  12. Case 65 to 70: V = T - 55
  13. Case Else: V = Val(chr(T))
  14. End Select
  15. D += V * 16 ^ (L - X)
  16. Next
  17. Return D
  18. End Function
  19. Dim MAC as String
  20. Dim AS Integer M1, M2, M3, M4, M5, M6, M7, M8, M9, M10, M11, M12
  21. Dim AS Integer K1, K2
  22. Dim AS Integer S6, S7, S8, S9, S10
  23. Dim AS Integer X1, X2, X3, Y1, Y2, Y3, Z1, Z2, Z3
  24. Dim SMAC AS Integer
  25. Dim Key AS String
  26. Print "EasyBox KeyGen for Standart WPA2-Password"
  27. Print "By Sebastian Petters"
  28. Print "http://www.wotan.cc"
  29. Print ""
  30. Print "Use this only on your own AccessPoint!"
  31. Print ""
  32. Print "Enter MAC-Adress in following format: 01234567890A"
  33. Input "MAC: ", MAC
  34. M1 = DeHex(MID(MAC, 1, 1))
  35. M2 = DeHex(MID(MAC, 2, 1))
  36. M3 = DeHex(MID(MAC, 3, 1))
  37. M4 = DeHex(MID(MAC, 4, 1))
  38. M5 = DeHex(MID(MAC, 5, 1))
  39. M6 = DeHex(MID(MAC, 6, 1))
  40. M7 = DeHex(MID(MAC, 7, 1))
  41. M8 = DeHex(MID(MAC, 8, 1))
  42. M9 = DeHex(MID(MAC, 9, 1))
  43. M10 = DeHex(MID(MAC, 10, 1))
  44. M11 = DeHex(MID(MAC, 11, 1))
  45. M12 = DeHex(MID(MAC, 12, 1))
  46. SMAC = DeHex(Hex(M9) & Hex(M10) & Hex(M11) & Hex(M12))
  47. Print "SMAC: " & SMAC
  48. If Len(Str(SMAC)) = 5 Then
  49. S6 = Val(Mid(Str(SMAC), 1, 1))
  50. S7 = Val(Mid(Str(SMAC), 2, 1))
  51. S8 = Val(Mid(Str(SMAC), 3, 1))
  52. S9 = Val(Mid(Str(SMAC), 4, 1))
  53. S10 = Val(Mid(Str(SMAC), 5, 1))
  54. ElseIf Len(Str(SMAC)) = 4 Then
  55. S6 = 0
  56. S7 = Val(Mid(Str(SMAC), 1, 1))
  57. S8 = Val(Mid(Str(SMAC), 2, 1))
  58. S9 = Val(Mid(Str(SMAC), 3, 1))
  59. S10 = Val(Mid(Str(SMAC), 4, 1))
  60. ElseIf Len(Str(SMAC)) = 3 Then
  61. S6 = 0
  62. S7 = 0
  63. S8 = Val(Mid(Str(SMAC), 1, 1))
  64. S9 = Val(Mid(Str(SMAC), 2, 1))
  65. S10 = Val(Mid(Str(SMAC), 3, 1))
  66. ElseIf Len(Str(SMAC)) = 2 Then
  67. S6 = 0
  68. S7 = 0
  69. S8 = 0
  70. S9 = Val(Mid(Str(SMAC), 1, 1))
  71. S10 = Val(Mid(Str(SMAC), 2, 1))
  72. ElseIf Len(Str(SMAC)) = 1 Then
  73. S6 = 0
  74. S7 = 0
  75. S8 = 0
  76. S9 = 0
  77. S10 = Val(Mid(Str(SMAC), 1, 1))
  78. End If
  79. Print "SSID: EasyBox-" & Hex(M7) & Hex(M8) & Hex(M9) & Hex(M10) & S6 & S10
  80. K1 = S7 + S8 + M11 + M12
  81. K2 = M9 + M10 + S9 + S10
  82. K1 = DeHex(Mid(Hex(K1), Len(Hex(K1)), 1))
  83. K2 = DeHex(Mid(Hex(K2), Len(Hex(K2)), 1))
  84. Print "K1: " & Hex(K1)
  85. Print "K2: " & Hex(K2)
  86. X1=K1 XOR S10
  87. X2=K1 XOR S9
  88. X3=K1 XOR S8
  89. Y1=K2 XOR M10
  90. Y2=K2 XOR M11
  91. Y3=K2 XOR M12
  92. Z1=M11 XOR S10
  93. Z2=M12 XOR S9
  94. Z3=K1 XOR K2
  95. ' X1 Y1 Z1 X2 Y2 Z2 X3 Y3 Z3
  96. Key = Hex(X1) & Hex(Y1) & Hex(Z1) & Hex(X2) & Hex(Y2) & Hex(Z2) & Hex(X3) & Hex(Y3) & Hex(Z3)
  97. Print "WPA-Key: " & Key
  98. Print ""
  99. Input "Press Enter to quit", Key

comments powered by Disqus