Monday, 17 November 2014

Hacking A WPS enabled router .

YES. ! it is very easy to hack a wireless network. Even the highly secured ones. All it takes is a person who knows what he is doing and a few tools in his hands. We can't protect ourselves much if we don't know how easy it is to crack in. We are going to use KALI LINUX ( successor of the famous pene-tester tool , BACKTRACK ) for the purpose. 

Often we people enable the WPS pin on our routers, for the sake of easy connectivity . But a certain loophole in the WPS system enables us to hack into the system very easily using brute force method.  Generally it takes 3 to 4 hours if we are close to the router and have a good network card installed in our system.

The WPS pin is of 8 bits, the first 7 bits are actually the PIN , and the 8th bit is the checksum for it,
The loophole in this system enables a user to know if the first half of the PIN is a correct match. we can get there in merely 10000 comparisons .  while the next 3 bits can be brute forced in 1000 comparisons. Thus , in a total of 11000 comparisons , we can easily get into the network.

How to test (hack) the network : 

First of all, I am assuming that you are doing this on your own network, as hacking into anyone else's system is against the law.  

All we need is a system running kali linux or backtrack , either live or on hard disk. Actually any linux system will do the job , but the kali linux has all the tools pre installed . 
( we don't have to spoof our MAC address , as we are hacking our own network ). 
1.  Boot into the system as root.
2. Open up the terminal.
3. Disconnect from any known wifi network.
4. Type  " ifconfig " . without the quotes. It'll display the adaptors your system has. note down the one     that looks like " wlanX" . mine shows Wlan0. 
5. Type " airmon-ng start wlanX  "  replace X by whatever showed up in your system.
6. Now the monitor mode must be enabled there. something of type "mon0 or mon1 " . note it down.       mine showed mon0.
7. Type " airodump-ng mon0 "  (or mon1 or whatever it was in your case). 
8. Now the screen shows all the networks in your area. 
9. Hit Ctrl+C when you see your network. 
10. Copy the MAC address of your network . ( should be shown in the leftmost column ). 
11.  Type " reaver -i mon0 -b xx:xx:xx:xx:xx:xx -vv "     ( it is obvious that the xx:xx:xx:xx:xx:xx is         to be replaced by the MAC of your router that you had copied in the earlier step. 
12. now sit back and watch the reaver do its job. 

It shall return the password of your wifi in 3-4 hours. Can take more too, depending on the network distance. 

Here I have assumed you know the basics of Linux and some networking concepts. Ask in the comments if there's anything. 

Sunday, 16 November 2014

Pinging your Internet connection.

Hey everyone. ! 
Often we come across the need of a batch file which can be used to ping ( test) the network connection we are using. 
I've written a very basic file for the same. 
Try it , and leave your responses in the comments. !! 

Just download the .txt file from the link below. ! ( from mediafire ) and rename it to .bat 

When it has run successfully , a successful ping window will look like this: 

Run the above file in the administrator mode only. otherwise it won't work. !
happy pinging. :)

Saturday, 15 November 2014

Kali Linux On Nexus 4. !!

YES. !! You read  it right .! 

You can install kali linux nethunter on your nexus devices now.! isn't it exciting. ?

I know. !!

Its an open source project, based on Kali linux ( previously known as backtrack )  , which can launch network and USB exploits. ! 

The above image is of a nexus device with running net hunter . 
Free to download, ready to customize, Nethunter puts the power of a pen-tester's Linux desktop on a nexus phone. ! Yes .! feel proud being owner of one. !

In the next post, I'll illustrate the steps in the very basic form. to aid u in the process. :) 

comments. ?

Nexus 4 stuck in bootloop after lashing Android 5.0 lollipop manually.

Like me, there are probably many of you , scratching your heads and wondering how much time is it going to take for the device to boot up , after flashing the Lollipop Image manually from the google's page. As discussed in my earlier post. 
well, I guess its a problem due a faulty cache partition or something. 

okay, now lets focus on how to get it working. 
Follow the below steps , and I am sure it is all going to work for you.

  1. Open your nexus in the bootloader mode.
  2. Flash the recovery file manually. 
  3. Flash the radio file ( from the archive that you had downloaded) manually.
if you don't know how, 
  • enter the folder where fastboot is located in your desktop ( assuming you are on windows ) .
  • hold shift and right click on the screen. select open a command window here. 
  • type fastboot flash radio radio-mako-m9615a-cefwmazm-2.0.1701.04.img
  • similarly , flash the recovery file . fastboot flash recovery recovery-clockwork-touch-6.0.4.7-mako.img
  • reboot the bootloader 
 4. flash the rest of the images.
 5. now when everything has been written, boot into fastboot again. move to recovery by pressing the volume buttons and then power. 

 6. while in recovery, you will most probably see a dead android . don't panic. 
 7. press volume up and power at the same time . ( a couple of times. 3 was in case of mine. ) 
8. once in recovery mode, wipe data and factory reset. and let the phone boot up. 
     wait for a few minutes. I am sure it will work. Mine did. :) 

Tell me more in the comments. !!!!!

Android 5.0 Lollipop finally arrives for nexus 4 owners.

After a long long wait , finally the much anticipated Lollipop update has popped out for the Nexus 4 owners.

As of now, the images are available for download from the google's developer webpage  ( click here ). The file is approx of 470 MB or something.

  • Just extract the file contents in the adb folder of your system where fastboot file is located.
  • remember to create a backup of your important data first. 
  • My path was C:\adt-bundle-windows-x86_64-20130729\sdk\platform-tools . 
  • run the "flash-all.bat" batch file. 
  • just remember , your mobile must be in the fastboot mode before the above step , and more importantly , UNLOCKED. 
  • if you don't know the steps for that, ask me for the links in the comments.