Skip to main content

Posts

Showing posts from January 19, 2017

Creating a patch file

The diff command is used for creating a patch file. For this you will have an Original file, Modified file and finally we will create a Patch file with these 2 files. Diff command to create a patch file. # diff -u original.txt updated.txt > patch.txt Here -u represents the unified file. Now applying the patch by the below command. # patch original.txt < patch.txt This will replace the original file with the modifications. For Undo / Reverse the applied patch. # patch -R original.txt < patch.txt This will undo all the patches first applied.

How to Disconnect any wifi Client/Device from your Wifi network?

 Deauthentication Attack This attack is very useful, it allows us to disconnect any device ( whether it is a windows machine, OR android phone OR an ios phone anything connected to the wifi network ) from any network that is within our range, even if the network have encryption , even if it uses a key and we don't have that key. For this we need to spoof our MAC address with the target client's MAC Address.,that we need to disconnect. So that we can pretent to be him and send a deauthentication packet to the router/Access point. At the same time we need to Spoof the MAC address to the Access point/Router MAC Address, and tell the target client to re-authenticate yourself. The program that is using for this purpose if aireplay-ng which is from the aircrack-ng package. # aireplay-ng - - deauth [No of packets] -a [AP] [INTERFACE] # aireplay-ng - - deauth 1000 -a 11:22:33:44:55:66 mon0 // Disconnet all clients # aireplay-ng - - deauth [No

How to change the MAC address of a system

For this purpose we need to install the macchanger package. # apt-get install macchanger Steps to change the mac address. 1) First disable the wireless card >> # ifconfig wlan0 down 2) Assign new address >> # macchanger - -random wlan0 // This will assing a random address 3) Enable the wireless card. >> # ifconfig wlan0 up 4) Show the new MAC address >> # macchanger -s wlan0 For more option just check the macchanger - - help Cheers!!