Latest Articles
Showing posts with label KALI LINUX. Show all posts
Showing posts with label KALI LINUX. Show all posts
How to sniff password using Wireshark

How to sniff password using Wireshark

Wireshark is the world’s foremost network protocol analyzer. It lets you see what’s happening on your network at a microscopic level. It is the de facto (and often de jure) standard across many industries and educational institutions.
This tutorial can be an angel and also devil in the same time, it depends to you who use this tutorial for which purpose…me as a writer of this tutorial just hope that all of you can use it in the right way , because I believe that no one from you want your password sniffed by someone out there so don’t do that to others too
Disclaimer – Our tutorials are designed to aid aspiring pen testers/security enthusiasts in learning new skills, we only recommend that you test this tutorial on a system that belongs to YOU. We do not accept responsibility for anyone who thinks it’s a good idea to try to use this to attempt to hack systems that do not belong to you
Requirements :
1. Wireshark Network Analyzer (wireshark.org)
2. Network Card (Wi-Fi Card, LAN Card, etc) fyi : for wi-fi it should support promiscious mode
Step 1: Start Wireshark and capture traffic
In Kali Linux you can start Wireshark by going to
Application > Kali Linux > Top 10 Security Tools > Wireshark
In Wireshark go to Capture > Interface and tick the interface that applies to you. In my case, I am using a Wireless USB card, so I’ve selected wlan0.
dz
Ideally you could just press Start button here and Wireshark will start capturing traffic. In case you missed this, you can always capture traffic by going back to Capture > Interface > Start
dz2
Step 2: Filter captured traffic for POST data
At this point Wireshark is listening to all network traffic and capturing them. I opened a browser and signed in a website using my username and password. When the authentication process was complete and I was logged in, I went back and stopped the capture in Wireshark.
when wee type in your username, password and press the Login button, it generates a a POST method (in short – you’re sending data to the remote server).
To filter all traffic and locate POST data, type in the following in the filter section
http.request.method == “POST”
See screenshot below. It is showing 1 POST event.
dz4
Step 3: Analyze POST data for username and password
Now right click on that line and select Follow TCP Steam
dz5
This will open a new Window that contains something like this:
dz6
So in this case,
username: sampleuser
password: e4b7c855be6e3d4307b8d6ba4cd4ab91
But hold on, e4b7c855be6e3d4307b8d6ba4cd4ab91 can’t be a real password. It must be a hash value.
to crack this password its simple just open new terminal window and type this :
dz8
and its looks like this:
  1. username: sampleuser
  2. password: e4b7c855be6e3d4307b8d6ba4cd4ab91:simplepassword
READ MORE »
how to install xarp on kali linux

how to install xarp on kali linux

XArp is a security application that uses advanced techniques to detect ARP based attacks.
Through the use of passive and active modules XArp detects attacks internesur your network.
ARP attacks allow an attacker to silently spy or manipulate all data that is sent over the network, this includes documents, emails , conversations or VoiceIP .
Disclaimer – Our tutorials are designed to aid aspiring pen testers/security enthusiasts in learning new skills, we only recommend that you test this tutorial on a system that belongs to YOU. We do not accept responsibility for anyone who thinks it’s a good idea to try to use this to attempt to hack systems that do not belong to you
==Installation==
Before installing Xarp you need to install dependencies xarp as libxerces – C3.1 and arptables .
apt-get install libxerces-c3.1 arptables
Then download the package on the website of the editor http://www.xarp.net/
wget -O xarp-2.2.2-i686.deb www.xarp.net/?download=10343
Then install the package
dpkg -i xarp-2.2.2-i686.deb
On error , made ​​the following command
apt-get install -f
==using Xarp==
its simple , just run xarp with no arguments to see the display Detection Tool window.
n
If you see a ✔ thats mean everything is good

READ MORE »
Breaking WPA2-PSK with Kali Linux

Breaking WPA2-PSK with Kali Linux

WPA2-PSK may not be as safe as you think. There are a few attacks against WAP2-PSK. One of the most common attacks is against WPA2 is exploiting a weak passphrase.
Disclaimer – Our tutorials are designed to aid aspiring pen testers/security enthusiasts in learning new skills, we only recommend that you test this tutorial on a system that belongs to YOU. We do not accept responsibility for anyone who thinks it’s a good idea to try to use this to attempt to hack systems that do not belong to you
Below you will find a few easy steps on how to break WPA2 with a weak passphrase.
We will be using Kali Linux to complete this task. Kali will need a wireless card configured before it can be used by the operating system. I am using the Alfa AWUS051NH adapter. Almost any Alfa wireless adapter will work. I am a big fan of the AWUS051NH adapter because it a duel band adapter. However, this card is very difficult to obtain since it is no longer sold.
ww1
The iwconfig command will show any wireless cards in the system. I am using a RealTek wireless card. Linux ships with the RealTek drivers, making it a Linux plug and play wireless card.
The operating system recognizes a  wireless interface named wlan0.
ww2
My next step will be to enable the wireless interface. This is accomplished issuing the ifconfig wlan0 up command.
ww3
I need to understand what wireless networks my wireless card sees. I issue the iwlist wlan0 scanning command.
ww4
This command forces the wireless card to scan and report on all wireless networks in the vicinity.
You can see from this example it found my target network: Wireless Lab. It also found the MAC address of my access point: 0E:18:1A:36:D6:22. This is important to note because I want to limit my attack to this specific access point (to ensure we are not attacking or breaking anyone else’s password).
Secondly, we see the AP is transmitting on channel 36.This is important because it allows us to be specific on what wireless channel we will want our wireless card to monitor and capture traffic from.
ww5
The next step is to change the wireless card to monitoring mode. This will allow the wireless card to examine all the packets in the air.
We do this by creating a monitor interface using airmon-ng. Issue the airmon-ng command to verify airmon-ng sees your wireless card. From that point create the monitor interface by issuing the command: airmon-ng start wlan0
ww6
Next, run the ifconfig command to verify the monitor interface is created. We can see mon0 is created.
Now verify the interface mon0 has been created.
ww7
next step :
Use airodump-ng to capture the WPA2 handshake. The attacker will have to catch someone in the act of authenticating to get a valid capture. Airodump-ng will display a valid handshake when it captures it. It will display the handshake confirmation in the upper right hand corner of the screen.
Note: We will manually connect to the wireless network to force a handshake. In a future post I will show you how to force a reauthorization to make a device automatically disconnect and reconnect without any manual intervention.
We used the following command: airodump-ng mon0 – -bssid 20:aa:4b:1f:b0:10 (to capture packets from our AP) – –channel 6 (to limit channel hopping) – –write BreakingWPA2 (the name of the file we will save to)
airodump-ng mon0 – -bssid 0E:18:1A:36:D6:22 – –channel 36 – –write BreakingWPA2

(make sure there is no space between “- -“)
ww8
To capture the handshake you are dependent on monitoring a legitimate client authenticate to the network. However, it does not mean you have to wait for a client to legitimately authenticate. You can force a client to re-authenticate (which will happen automatically with most clients when you force a deauthorization).
When you see the WPA Handshake Command you know you have captured an valid handshake

example:
ww9
now we will use aircrack-ng with the dictionary file to crack the password. Your chances of breaking the password are dependent on the password file.
The command on  is: aircrack-ng “name of cap file you created” -w “name of your dictionary file”
ww10
The BreakingWPA2-01.cap file was created when we ran the airodump-ng command. The valid WPA2 handshake airodump captured is stored in the BreakingWPA2-01.cap file.
Backtrack 5 ships with a basic dictionary. The dictionary file darkc0de.lst is a popular worldlist that ships with BackTrack5. We added our password Cisco123 in this file to make the test run a little smoother
Many attackers use large dictionaries that increase their chances of cracking a passwords. Many dictionaries contain passwords from real users and websites that have been cracked and posted on the Internet. Some sophisticated dictionaries combine multiple languages, permutations of each word, and key words and phrases from social media sites such as Twitter and Facebook.
Kali does not come with the darkc0de.lst but you can download it from here
NOTE: Kali does have built-in worldlists in: /usr/share/worldlist 
In this blog we created a file named “sample.lst” and added the word Cisco123 in it.
Success:

If the password is found in the dictionary file then Aircrack-ng will crack it.
READ MORE »
wifi-honey – Kali-Linux

wifi-honey – Kali-Linux

WiFI -honey is a script, the attack can be used to create fake access points using encryption and all monitors with Airodump . It automates the installation process , it creates five interfaces in monitor mode , four are used as access points and the fifth is used for airdump -ng .
To make things easier , rather than having five windows all this is done in a desktop suite that allows you to switch between screens to see what happens .
Disclaimer – Our tutorials are designed to aid aspiring pen testers/security enthusiasts in learning new skills, we only recommend that you test this tutorial on a system that belongs to YOU. We do not accept responsibility for anyone who thinks it’s a good idea to try to use this to attempt to hack systems that do not belong to you
WiFI -honey requires screen and subsequently aircrack , check if they are properly installed
apt-get install screen aircrack-ng
Installation 
On gnome version is pre-installed for the mini version, use deposits.
apt-get install wifi-honey
using WIFI-honey
Wi -honey is located in the menu ” Applications -> Kali Linux -> Attacks Wireless -> Wireless Tools -> Wi -honey ”
66
Wi -honey is very easy to use , help is displayed if there is no argument between .
77
If you enter as a single argument the name of the fake access point, the default channel is 1 and the interface is wlan0 .
wifi-honey <essid> <channel> <interface>
We observe directly the result if we scan for available networks , you can then use a sniffer to get information on the connected clients.
44
READ MORE »
Hacking Wifi using WIFITE Kali-Linux

Hacking Wifi using WIFITE Kali-Linux

WIFITE is An automated wireless attack tool (WEP & WPA). Wifite was designed for use with pentesting distributions of Linux, such as Kali Linux, Pentoo, BackBox; any Linux distributions with wireless drivers patched for injection. The script appears to also operate with Ubuntu 11/10, Debian 6, and Fedora 16.
Disclaimer – Our tutorials are designed to aid aspiring pen testers/security enthusiasts in learning new skills, we only recommend that you test this tutorial on a system that belongs to YOU. We do not accept responsibility for anyone who thinks it’s a good idea to try to use this to attempt to hack systems that do not belong to you
==Installation==
On the gnome version of Kali Linux , wifite is preinstalled , for the mini version it is in deposits and requiers aircrack reaver tshark cowpatty
apt-get install wifite cowpatty
Attention before using wifite you will need to stop the network-manager service .
service network-manager stop
Wifite is in the menu
” Application -> Kali Linux -> Attacks Wireless -> Wireless Tools -> wifite “
jo
Once launched wifite displays the help menu that can take control wifite , I advise you to leave this window open and restart wifite in a second terminal
897
to start WIFITE just type ” wifite” in a new terminal
23
Once this is done, we can see that wifite has put our network interface card into monitor mode (using airmon-ng) and started to look for clients. After a few more seconds, it will start displaying the list of access points.
df
Note that as it is mentioned in its feature list (automatically de-authenticates clients of hidden networks to reveal SSIDs), this list will also include hidden access points. Hence, wifite can also be used to find hidden access points. In this case we will attack an access point with the BSSID 00:26:75:02:EF:65 that i have set up for testing purposes. The access point has a simple WEP password 1234567890.
87z
To start attacking an access point, just press Ctrl+C. Wifite will now ask you to choose a target number from the list. The target number for my test network is 1, so let me enter that. Note that if you press Ctrl+C again, it will quit Wifite.
8v
You can now see that Wifite will start attempting to crack the WEP access point using the different known techniques for cracking WEP encryption. After some unsuccessful tries, it has finally begun to start attacking the access points using different techniques for cracking WEP.
av
Once enough IV’s are being captured, it will automatically start cracking the password.
bn
As we can see, Wifite has successfully figured out the WEP key for the access point. Wifite is an extremely useful tool for cracking wireless networks. As i mentioned previously, you need to have all the tools like airmon-ng, aireplay-ng, airodump-ng, aircrack-ng already installed on your system.
READ MORE »