O'Reilly logo

Kali Linux Cookbook - Second Edition by Bob Perciaccante, Corey P. Schultz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Cracking Telnet passwords with a userlist

In this recipe we will try and crack telnet passwords based on known or potential username list:

  1. Open a terminal window in Kali by clicking the icon. 
  2. We will use a hydra to hunt for passwords using a wordlist along with a predefined set of usernames. Let's build our name list:
cd touch usernames2 echo 'kiddoe' >> usernames2 echo 'janedoe' >> usernames2 echo 'johndoe' >> usernames2
  1. Now let's run hydra using our username list and wordlist. You will notice that this does take some time but ultimately you will get the passwords:
hydra -L ~/usernames2 -P /usr/share/wordlists/rockyou.txt telnet://192.168.56.104 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required