Código: Seleccionar todo
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <Inet.au3>
#include <TabConstants.au3>
FileInstall ("Vodafone.ico",1)
$Form1 = GUICreate("Vodafone Wpa Generador |C0dex|", 363, 359, 192, 124)
$MenuItem1 = GUICtrlCreateMenu("Menu")
$MenuItem2 = GUICtrlCreateMenuItem("Info", $MenuItem1)
$MenuItem3 = GUICtrlCreateMenuItem("Exit", $MenuItem1)
$MenuItem4 = GUICtrlCreateMenu("About")
$MenuItem5 = GUICtrlCreateMenuItem("C0dex", $MenuItem4)
GUISetBkColor(0xFF0000)
$Group1 = GUICtrlCreateGroup("Propiedades", 8, 8, 345, 161)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
$Label1 = GUICtrlCreateLabel("Longitud de Diccionario :", 16, 32, 182, 25)
GUICtrlSetFont(-1, 11, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFFFFFF)
$Nombre_Cles_LiveBox = GUICtrlCreateInput("99999", 16, 64, 329, 26, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0x000000)
$Label2 = GUICtrlCreateLabel("Nombre de Diccionario :", 16, 96, 175, 25)
GUICtrlSetFont(-1, 11, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFFFFFF)
$Fichier_LiveBox = GUICtrlCreateInput("worldlist.txt", 16, 128, 329, 26, -1, BitOR($WS_EX_CLIENTEDGE,$WS_EX_STATICEDGE))
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0x000000)
$Icon1 = GUICtrlCreateIcon("Vodafone.ico", -1, 312, 24, 32, 32)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("Selectar :", 8, 176, 345, 153)
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x0000FF)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Button1 = GUICtrlCreateButton("Generar Diccionario", 32, 200, 299, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
GUICtrlSetCursor (-1, 0)
$Button2 = GUICtrlCreateButton("Generar Longitud Grande", 32, 232, 299, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Button3 = GUICtrlCreateButton("Exit", 32, 264, 299, 25)
GUICtrlSetFont(-1, 10, 800, 0, "Palatino Linotype")
$Input3 = GUICtrlCreateInput(_GetIP(), 16, 296, 145, 25, -1)
GUICtrlSetFont(-1, 9, 800, 0, "Palatino Linotype")
$Input4 = GUICtrlCreateInput("", 200, 296, 145, 25)
GUICtrlSetFont(-1, 9, 800, 0, "Palatino Linotype")
GUISetState(@SW_SHOW)
Global $AvancementGUI = GUICreate("Advanced", 242, 122, 378, 180)
Global $Group1 = GUICtrlCreateGroup("Advanced", 8, 8, 225, 49)
GUICtrlSetFont(-1, 9, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
Global $Texte5 = GUICtrlCreateLabel("/", 120, 32, 9, 17)
Global $Avancement = GUICtrlCreateLabel("0", 16, 32, 98, 17)
Global $Total = GUICtrlCreateLabel("0", 136, 32, 90, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $Group2 = GUICtrlCreateGroup("Generando Wpa...", 8, 64, 225, 49)
GUICtrlSetFont(-1, 9, 800, 0, "Palatino Linotype")
GUICtrlSetColor(-1, 0xFF0000)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Global $CleActuelle = GUICtrlCreateLabel("", 16, 88, 212, 20)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_HIDE)
While 1
$nMsg = GUIGetMsg()
GUICtrlSetData($Input4,@HOUR&":"&@MIN&":"&@SEC)
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
GUISetState (@SW_SHOW, $AvancementGUI)
$nombre_cles = GUICtrlRead ($Nombre_Cles_LiveBox)
$fichier = GUICtrlRead ($Fichier_LiveBox)
Global $charset[16] = ["A", "B", "C", "D", "E", "F", 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
GUICtrlSetData ($Avancement,0)
For $i = 1 To $nombre_cles - 1
$cle = ""
For $j = 0 To 13
$random = Random (0, 15, 1)
$cle = $cle & $charset[$random]
Next
FileWriteLine ($fichier, $cle)
GUICtrlSetData ($Avancement, $i)
GUICtrlSetData ($CleActuelle, $cle)
Next
GUISetState (@SW_HIDE, $AvancementGUI)
MsgBox (0, "Generator Wpa", "Generator Terminat, Lungimea Dictionarului este : " &$i)
Case $Button2
GUISetState (@SW_SHOW, $AvancementGUI)
$nombre_cles = GUICtrlRead ($Nombre_Cles_LiveBox)
$fichier = GUICtrlRead ($Nombre_Cles_LiveBox)
GUICtrlSetData ($Total, $nombre_cles)
GUICtrlSetData ($Avancement,0)
For $i = 0 To $nombre_cles -1
$cle = ""
$nombre = Random (0, 19, 1)
For $j = 0 To 19
If $j = $nombre Then
$cle&=Random (0, 9, 1)
Else
$cle&=chr(Random (65, 90, 1))
EndIf
Next
FileWriteLine ($fichier, $cle)
GUICtrlSetData ($Avancement, $i)
GUICtrlSetData ($CleActuelle, $cle)
Next
GUISetState (@SW_HIDE, $AvancementGUI)
MsgBox (0, "Générateur WPA", "Génération finie! Nombre de clés générés : " &$i)
Case $Button3
Exit(-1)
Case $MenuItem2
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Warning
MsgBox(48,"Info","Created by C0dex" & @CRLF & "Email = [email protected]")
Case $MenuItem3
Exit(-1)
Case $MenuItem5
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Question
MsgBox(32,"About","C0dex Programmer :)" & @CRLF)
EndSwitch
WEnd
SALUDOS !