ssh brute force attempt with known privkeys

as user

requirements

make sure the target host is reachable from where you are

ping -c1 $target
nmap -p 22 $target

setup

git clone https://github.com/snowdroppe/ssh-keybrute.git
cd ssh-keybrute/

grep ^proc /proc/cpuinfo
vi ssh-keybrute.py

"host": ...,
"port": ...,
"users": ...,
"dirs": ["/path/to/known_privkeys/"],
"threads": ...,

ready to go

sudo apt install python3
python3 ssh-keybrute.py

resources

sshpass

https://superuser.com/questions/1605215/how-to-specify-password-in-ssh-command


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun