Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0613· openaiHugging Face Suzhen/CodeChat

Créame una scritp o comando para autohotkey que haga un bruteforce con una archivo txt…

  1. User

    Créame una scritp o comando para autohotkey que haga un bruteforce con una archivo txt con palabras que les otorgue. Recuerda agregarle "enter"una vez que escriba el texto

  2. Assistant

    Aquí tienes un script de AutoHotkey que realiza una fuerza bruta introduciendo cada palabra de un archivo de texto, seguido de un "Enter" para confirmar. Asegúrate de ajustar las rutas de los archivos de texto según sea necesario:

    SetWorkingDir %A_ScriptDir%     ; Establece el directorio de trabajo como el directorio del script
    
    ; Variables
    archivo_palabras := "C:\ruta\hacia\archivo_de_palabras.txt"   ; Ruta hacia el archivo de palabras
    tiempo_espera := 200             ; Tiempo de espera entre cada palabra (en milisegundos)
    
    ; Función principal
    Main:
        FileRead, palabras, %archivo_palabras%
        Loop, parse, palabras, `n, `r   ; Divide las palabras por saltos de línea
        {
            palabra := A_LoopField
            Send, %palabra%{Enter}
            Sleep, tiempo_espera
        }
    Return
    
    ; Atajo de teclado para iniciar la ejecución
    ^+b::
        MsgBox, 4, Confirmación, ¿Deseas ejecutar el comando de fuerza bruta?
        IfMsgBox, Yes
            GoSub, Main
    Return
    

    Para ejecutar el script, guarda el código en un archivo con extensión ".ahk" (por ejemplo, "bruteforce.ahk"), luego ejecútalo haciendo doble clic en ese archivo. Para activar el comando de fuerza bruta, utiliza la combinación de teclas Ctrl+Mayús+B.

    Asegúrate de ajustar la variable archivo_palabras con la ruta correcta hacia el archivo de palabras que deseas utilizar. El script leerá cada palabra del archivo, enviará la palabra seguida de un "Enter" mediante el comando Send, y esperará un tiempo (definido en la variable tiempo_espera) antes de enviar la siguiente palabra.

    Ten en cuenta que esto es solo un ejemplo básico y podría requerir modificaciones adicionales según tus necesidades específicas.

    ¡Es importante utilizar cualquier script de fuerza bruta de manera ética y legal!

  3. User

    Bien, se te olvida algo, escribe el codigo en ingles o el idioma del lenguaje autohotkey.

  4. Assistant

    Sure, here's the revised script in English:

    SetWorkingDir %A_ScriptDir%     ; Sets the working directory to the script's directory
    
    ; Variables
    word_file := "C:\path\to\word_file.txt"   ; Path to the word file
    wait_time := 200             ; Wait time between each word (in milliseconds)
    
    ; Main function
    Main:
        FileRead, words, %word_file%
        Loop, parse, words, `n, `r   ; Splits the words by line breaks
        {
            word := A_LoopField
            Send, %word%{Enter}
            Sleep, wait_time
        }
    Return
    
    ; Keyboard shortcut to start the brute force
    ^+b::
        MsgBox, 4, Confirmation, Do you want to run the brute force command?
        IfMsgBox, Yes
            GoSub, Main
    Return
    

    Please make sure to adjust the word_file variable with the correct path to your word file. The script will read each word from the file, send the word followed by an "Enter" using the Send command, and then wait for a specified time (defined in the wait_time variable) before sending the next word.

    Remember to use any brute force script in an ethical and legal manner!

    Let me know if there's anything else I can do for you.