Google Games - Free Mini Games Forums

  • Home
  • Forum
  • Help
  • Search
  • Shop
  • Login
  • Register
  • Educational Hacking
  • Original Funny Videos
  • Chat
  • Advertise
Welcome, Guest. Please login or register.
November 23, 2008, 03:27:54 AM

Login with username, password and session length
 
Turn Music On

Google Games


motorbikes
by redeye
[November 21, 2008, 01:09:56 PM]

auction websites
by redeye
[November 21, 2008, 01:08:41 PM]

Cracking WEP Using Backtr...
by qwe
[November 13, 2008, 02:29:33 AM]

Working For Google
by Drifter
[November 01, 2008, 08:23:57 PM]

Which Browser do you Use?
by Drifter
[November 01, 2008, 08:17:36 PM]

how do i hack wep?
by Drifter
[November 01, 2008, 08:11:03 PM]

Smallest Myspace Whore Ad...
by Drifter
[November 01, 2008, 08:01:19 PM]

Jimmy Kimmel's day with R...
by Drifter
[November 01, 2008, 07:55:15 PM]

She Freaking Blocked Me N...
by Drifter
[November 01, 2008, 07:52:28 PM]

Runescape
by Drifter
[November 01, 2008, 07:43:36 PM]

Fresh Port proxies?
by Drifter
[November 01, 2008, 07:40:47 PM]

Safe software crack site
by Drifter
[November 01, 2008, 07:39:20 PM]
Google Games - Free Mini Games Forums > Forum > General Category > Educational Hacking > Cracking WEP Using Backtrack: A Beginners Guide
Pages: [1] 2 3 ... 6
« previous next »
  Send this topic  |  Print  
Author Topic: Cracking WEP Using Backtrack: A Beginners Guide  (Read 32161 times)
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Cracking WEP Using Backtrack: A Beginners Guide
« on: November 15, 2007, 09:37:36 PM »

                     Special Thanks To RyanUnderDown For Explaining

Cracking WEP Using Backtrack: A Beginner’s Guide


A. SCOPE

This tutorial is intended for user’s with little or no experience with linux or wifi. The folks over at remote-exploit have released “Backtrack”

Get it http://www.remote-exploit.org/backtrack.html

 a tool which makes it ridiculously easy to access any network secured by WEP encryption. This tutorial aims to guide you through the process of using it effectively.
Required Tools
You will need a computer with a wireless adapter listed here
Download Backtrack and burn it’s image to a CD
B. OVERVIEW

BACKTRACK is a bootable live cd with a myriad of wireless and tcp/ip networking tools. This tutorial will only cover the included kismet and aircrack-ng suite of tools.

Tools Overview
Kismet - a wireless network detector and packet sniffer
airmon - a tool that can help you set your wireless adapter into monitor mode (rfmon)
airodump - a tool for capturing packets from a wireless router (otherwise known as an AP)
aireplay - a tool for forging ARP requests
aircrack - a tool for decrypting WEP keys
iwconfig - a tool for configuring wireless adapters. You can use this to ensure that your wireless adapter is in “monitor” mode which is essential to sending fake ARP requests to the target router
macchanger - a tool that allows you to view and/or spoof (fake) your MAC address

Glossary of Terms
AP: Access Point: a wireless router
MAC Address: Media Access Control address, a unique id assigned to wireless adapters and routers. It comes in hexadecimal format (ie 00:11:ef:22:a3:6a)
BSSID: Access Point’s MAC address
ESSID: Access Point’s Broadcast name. (ie linksys, default, belkin etc) Some AP’s will not broadcast their name but Kismet may be able to detect it anyway
TERMINAL: MS-Dos like command line interface. You can open this by clicking the black box icon next to the start key in backtrack
WEP: short for Wired Equivalency Privacy, it is a security protocol for Wi-Fi networks
WPA: short for WiFi Protected Access. a more secure protocal than WEP for wireless networks. NOTE: this tutorial does not cover cracking WPA encryption

Since Backtrack is a live CD running off your cdrom, there is nowhere that you can write files to unless you have a linux partition on your hard drive or a usb storage device. Backtrack has some NTFS support so you will be able to browse to your windows based hard drive should you have one, but it will mount the partition as “read-only”. I dual boot windows and ubuntu on my laptop so I already have a linux swap partition and a reiserfs partition. Backtrack had no problem detecting these and mounting them for me. To find your hard drive or usb storage device, just browse to the /mnt folder in the file manager. Typically a hard drive will appear named something like hda1 or hda2 if you have more than one partition on the drive. Alternately hdb1 could show if you have more than one hard disk. Having somewhere to write files that you can access in case you need to reboot makes the whole process a little easier.
C. DISCLAIMER

Hacking into someone’s wireless network without permission is probably against the law. I wouldn’t recommend doing it. I didn’t break into anyone else’s network while learning how to do this .
D. IMPLEMENTATION

STEP 1
Monitoring Wireless Traffic With Kismet

Place the backtrack CD into your cd-rom drive and boot into Backtrack. You may need to change a setting in your bios to boot from cd rom. During boot up you should see a message like “Hit ctrl+esc to change bios settings”. Changing your first boot device to cdrom will do the trick. Once booted into linux, login as root with username: root password: toor. These are the default username and password used by backtrack. A command prompt will appear. Type startx to start KDE (a ‘windows’ like workspace for linux).

Once KDE is up and running start kismet by clicking on the start key and browsing to Backtrack->Wireless Tools -> Analyzers ->Kismet. Alternatively you can open a Terminal and type:

kismet

Kismet will start running and may prompt you for your wireless adapter. Choose the appropriate adapter, most likely ‘ath0?, and sit back as kismet starts detecting networks in range.

NOTE: We use kismet for two reasons.

1. To find the bssid, essid, and channel number of the AP you are accessing.

2. Kismet automatically puts your wireless adapter into monitor mode (rfmon). It does this by creating a VAP (virtual access point?) or in other words, instead of only having ath0 as my wireless card it creates a virtual wifi0 and puts ath0 into monitor mode automatically.



While kismet detects networks and various clients accessing those networks you might want to type ’s’ and then ‘Q’ (case sensitive). This sorts all of the AP’s in your area by their signal strength. The default ‘autofit’ mode that kismet starts up in doesn’t allow you much flexibility. By sorting AP’s by signal strength you can scroll through the list with the arrow keys and hit enter on any AP you want more information on. (side note: when selecting target AP keep in mind this tutorial only covers accessing host AP’s that use WEP encryption. In kismet the flags for encryption are Y/N/0. Y=WEP N=Open Network- no encryption 0= other: WPA most likely.)

Select the AP (access point) you want to access. Copy and paste the broadcast name(essid), mac address(bssid), and channel number of your target AP into a text editor. Backtrack is KDE based so you can use kwrite. Just open a terminal and type in ‘kwrite’ or select it from the start button. In Backtrack’s terminal to copy and paste you use shift+ctrl+c and shift+control+v respectively. Leave kismet running to leave your wireless adapter in monitor mode. You can also use airmon to do this manually.
airmon-ng -h
for more help with this

STEP 2
Collecting Data With Airodump

Open up a new terminal and start airodump so we can collect ARP replies from the target AP. Airodump is fairly straight forward for help with this program you can always type “airodump-ng -h” at the command prompt for additional options.

airodump-ng ath0 -w /root/belkin 9 1

Breaking down this command:
ath0 is my wireless card
-w tells airodump to write the file to
/root//belkin
9 is the channel 9 of my target AP
1 tells airodump to only collect IVS - the data packets with the WEP key
STEP 3
Associate your wireless card with the AP you are accessing.

aireplay-ng -1 0 -e belkin -a 00:11:22:33:44:55 -h 00:fe:22:33:f4:e5 ath0
-1 at the beginning specifies the type of attack. In this case we want fake authentication with AP. You can view all options by typing
aireplay-ng -h
0 specifies the delay between attacks
-e is the essid tag. belkin is the essid or broadcast name of my target AP. Linksys or default are other common names
-a is the bssid tag(MAC address). 00:11:22:33:44:55 is the MAC address of the target AP
-h is your wireless adapters MAC addy. You can use macchanger to view and change your mac address.
macchanger -s ath0
ath0 at the end is my wireless adapters device name in linux
STEP 4
Start packet injection with aireplay

aireplay-ng -3 -b 00:11:22:33:44:55 -h 00:fe:22:33:f4:e5 ath0
NOTES:
-b requires the MAC address of the AP we are accessing.
-h is your wireless adapters MAC addy. You can use macchanger to view and change your mac address.
macchanger -s ath0
if packets are being collected at a slow pace you can type
iwconfig ath0 rate auto
to adjust your wireless adapter’s transmission rate. You can find your AP’s transmission rate in kismet by using the arrow keys up or down to select the AP and hitting enter. A dialog box will pop up with additional information. Common rates are 11M or 54M.

As aireplay runs, ARP packets count will slowly increase. This may take a while if there aren’t many ARP requests from other computers on the network. As it runs however, the ARP count should start to increase more quickly. If ARP count stops increasing, just open up a new terminal and re-associate with the ap via step 3. There is no need to close the open aireplay terminal window before doing this. Just do it simultaneously. You will probably need somewhere between 200-500k IV data packets for aircrack to break the WEP key.

If you get a message like this:

Notice: got a deauth/disassoc packet. Is the source MAC associated ?

Just reassociate with the AP following the instructions on step 3.
STEP 5
Decrypting the WEP Key with Aircrack

Find the location of the captured IVS file you specified in step 2. Then type in a terminal:

aircrack-ng -s /mnt/hda2/home/belkin_slax_rcu-03.ivs

Change /mnt/hda2/home/belkin_slax_rcu-03.ivs to your file’s location

Once you have enough captured data packets decrypting the key will only take a couple of seconds. For my AP it took me 380k data packets. If aircrack doesn’t find a key almost immediately, just sit back and wait for more data packets.

If you get approx. 4,000 packets and ur desperate try wep_crack it works faster most the time
« Last Edit: January 04, 2008, 07:35:03 PM by WEBMASTER » Logged
crunkvato
Administrator
*****
Offline Offline

Posts: 9
9999.00 GoogleCoins

View Inventory
Send Money to crunkvato

View Profile Email
Re: Cracking WEP Using Backtrack: A Beginner’s Guide
« Reply #1 on: November 17, 2007, 08:59:07 AM »

wow nice tutorial man Cheesy
Logged
proxydude
Administrator
*****
Offline Offline

Posts: 24
10007.00 GoogleCoins

View Inventory
Send Money to proxydude

View Profile Email
Re: Cracking WEP Using Backtrack: A Beginner’s Guide
« Reply #2 on: November 17, 2007, 09:11:10 AM »

pretty nice  most tutorials dont explain as much!:D
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginner’s Guide
« Reply #3 on: November 17, 2007, 09:20:45 AM »

thanx for your responses Smiley
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginner’s Guide
« Reply #4 on: December 08, 2007, 09:45:27 PM »

for further help PM ME
Logged
pamela
I know how to Post!
*
Offline Offline

Posts: 1
0.00 GoogleCoins

View Inventory
Send Money to pamela

View Profile Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #5 on: December 25, 2007, 04:13:09 PM »

hey thanx.


I download Backtrack 2 from the website you gave me and i want to say thanks for clearings EVERY little aspect i had to do . i noticed that Backtrack 1/2 have diffrent commands but i have managed to understand this. I didnt know "my" router was so easy to hack LOL
Logged
isra
I know how to Post!
*
Offline Offline

Posts: 1
0.00 GoogleCoins

View Inventory
Send Money to isra

View Profile Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #6 on: December 25, 2007, 04:43:49 PM »

I have never seen an easier way.
Logged
elvatillo
Im almost Cool
*
Offline Offline

Posts: 2
0.00 GoogleCoins

View Inventory
Send Money to elvatillo


View Profile Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #7 on: December 31, 2007, 02:33:41 PM »

Thank you.

I registered and saw the download link downloaded the program used magiciso to burn the image to a cd and boot up and followed your steps and was incredibly fast THANK YOU!
Logged

Ese Vatillo Tongue
vetteengr
I know how to Post!
*
Offline Offline

Posts: 1
0.00 GoogleCoins

View Inventory
Send Money to vetteengr


View Profile Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #8 on: January 01, 2008, 08:54:44 PM »

Hi:
Didn't see the list of wireless adapter listed Sad I have sony vaio laptop wth a built in wireless card. Will it work? Thx .. would really luv to try and breakinto my network Smiley

thnx
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #9 on: January 01, 2008, 09:01:06 PM »

For sure you will be able to connect with that but for more info on Compatibilty is found

http://madwifi.org/wiki/Compatibility
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #10 on: January 04, 2008, 09:32:44 PM »

If you are a guest and wondering why you cant view the links it is because i have restriced access to non-members to view certain content for my site Smiley BTW it is Free and Fast to Register
Logged
proxydude
Administrator
*****
Offline Offline

Posts: 24
10007.00 GoogleCoins

View Inventory
Send Money to proxydude

View Profile Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #11 on: January 12, 2008, 03:37:08 PM »

Im a Glad Member and can see ALL content lol, posting is rewarding dudes....
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #12 on: January 12, 2008, 03:40:18 PM »

So Far 1291 for this Post :S

LOL Smiley
Logged
chakazulu
GMG User
*
Offline Offline

Posts: 4
82.00 GoogleCoins

View Inventory
Send Money to chakazulu


View Profile
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #13 on: January 14, 2008, 06:35:25 AM »

very nice tut ,

anybody know how to "enter" a wpa-secured area Grin


thanks in advance
Logged
Admin
Administrator
*****
Offline Offline

Posts: 1,087
18281.00 GoogleCoins

View Inventory
Send Money to Admin


View Profile WWW Email
Re: Cracking WEP Using Backtrack: A Beginners Guide
« Reply #14 on: January 14, 2008, 10:15:27 AM »

Differences

WPA is an encryption algorithm that takes care of a lot of the vunerablities inherent in WEP. WEP is, by design, flawed. No matter how good or crappy, long or short, your WEP key is, it can be cracked. WPA is different. A WPA key can be made good enough to make cracking it unfeasible. WPA is also a little more cracker friendly. By capturing the right type of packets, you can do your cracking offline. This means you only have to be near the AP for a matter of seconds to get what you need. Advantages and disadvantages.

WPA Flavours

WPA basically comes in two flavours RADIUS or PSK. PSK is crackable, RADIUS is not so much.

PSK uses a user defined password to initialize the TKIP, temporal key integrity protocol. There is a password and the user is involved, for the most part that means it is flawed. The TKIP is not really crackable as it is a per-packet key but upon the initialization of the TKIP, like during an authentication, we get the password (well the PMK anyways). A robust dictionary attack will take care of a lot of consumer passwords.

Radius involves physical transferring of the key and encrypted channels blah blah blah, look it up to learn more about it but 90% of commerical APs do not support it, it is more of an enterprise solution then a consumer one.

The Handshake

The WPA handshake was designed to occur over insecure channels and in plaintext so the password is not actually sent across. There are some fancy dancy algorithms in the background that turn it into a primary master key, PMK, and the like but none of that really matters cause the PMK is enough to connect to the network.

The only step we need to do is capture a full authenication handshake from a real client and the AP. This can prove tricky without some packet injection, but if you are lucky to capture a full handshake, then you can leave and do the rest of the cracking at home.

We can force an authenication handshake by launching a Deauthentication Attack, but only if there is a real client already connected (you can tell in airodump). If there are no connected clients, you're outta luck.

Like for WEP, we want to know the channel the WPA is sitting on, but the airodump command is slightly different. We don't want just IVs so we don't specify an IV flag. This will produce "lucid.cap" instead of "lucid.ivs". Assume WPA is on channel 6 and wireless interface is ath0.
 ./airodump ath0 lucid 6

Dictionary Brute Force

The most important part of brute forcing a WPA password is a good dictionary. Check out http://www.openwall.com/wordlists/ for a 'really' good one. It costs money, but its the biggest and best I've ever seen (40 Million words, no duplicates, one .txt file). There is also a free reduced version from the same site but i'm sure resourceful people can figure out where to get a good dictionary from.

When you have a good dictionary the crack is a simple brute force attack:
 ./aircrack -a 2 -b 00:23:1F:55:04:BC -w /path/to/wordlist

Either you'll get it or you won't... depends on the strength of the password and if a dictionary attack can crack it.

Using Aireplay

Aireplay is the fun part. You get to manipulate packets to trick the network into giving you what you want.

WEP Attacks

Attacks used to create more traffic on WEP networks to get more IVs.

ARP Injection

ARP Replay is a classic way of getting more IV traffic from the AP. It is the turtle. Slow but steady and almost always works. We need the BSSID of the AP and the BSSID of an associated client. If there are no clients connected, it is possible to create one with another WEP attack explained below: Fake Authentication Attack.

With airodump listening, we attack:
 ./aireplay -3 -b <AP MAC Address> -h <Client MAC Address> ath0

Note: The -3 specifys the type of attack (3=ARP Replay).

This will continue to run, and airodump, listening fron another terminal, will pick up any reply IVs.

Interactive Packet Replay

Interactive Packet Reply is quite a bit more advanced and requires capturing packets and constructing your own. It can prove more effective then simple ARP requests but I won't get into packet construction here.

A useful attack you might try is the re-send all data attack, basically you are asking the AP to re-send you everything. This only works if the AP re-encrypts the packets before sending them again (and therefore giving you a new IV). Some APs do, some don't.
 aireplay -2 -b <AP MAC> -h <Client MAC> -n 100 -p 0841 -c FF:FF:FF:FF:FF:FF ath0

Fake Authentication Attack

This attack won't generate any more traffic but it does create an associative client MAC Address useful for the above two attacks. Its definately not as good as having a real, connected client, but you gots to do what you gots to do.

This is done easiest with another machine because we need a new MAC address but if you can manually change your MAC then that'll work too. We'll call your new MAC address "Fake MAC".

Now most APs need clients to reassociate every 30 seconds or so or they think they're disconnected. This is pretty arbitrary but I use it and it has worked but if your Fake MAC gets disconnected, reassociate quicker. We need both the essid and bssid and our Fake MAC.
 ./aireplay -1 30 -e '<ESSID>' -a <BSSID> -h <Fake MAC> ath0

If successful, you should see something like this:
 23:47:29  Sending Authentication Request
 23:47:29  Authentication successful
 23:47:30  Sending Association Request
 23:47:30  Association successful :-)

Awesome! Now you can use the above two attacks even though there were no clients connected in the first place! If it fails, there may be MAC Address Filtering on so if you really want to use this, you'll have to sniff around until a client provides you with a registered MAC to fake.

WPA Attacks

So far, the only way to really crack WPA is to force a re-authentication of a valid client. We need a real, actively connected client to break WPA. You might have to wait a while.

Deauthentication Attack

This is a simple and very effective attack. We just force the connected client to disconnect then we capture the re-connect and authentication, saves time so we don't have to wait for the client to do it themselves (a tad less "waiting outside in the car" creepiness as well). With airodump running in another console, your attack will look something like this:
 aireplay -0 5 -a <AP MAC> -c <Client MAC> ath0

After a few seconds the re-authentication should be complete and we can attempt to Dictionary Brute Force the PMK.

Conclusion

Well thats that. APs crack fairly often but sometimes there is just nothing you can do. Obviously you are not allowed to illegally crack other people's wireless connections, this is purely for penetration testing purposes and some fun.
« Last Edit: January 14, 2008, 10:21:48 AM by WEBMASTER » Logged
Pages: [1] 2 3 ... 6
  Send this topic  |  Print  
« previous next »
 
Jump to:  

 

Powered by SMF | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks
Google Mini Games © 2007-2008 Powered By High School Social Network
Loading...