NetStumbler.org Forums

Go Back   NetStumbler.org Forums > Software > Unix/Linux
Register Search Today's Posts Mark Forums Read

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 06-11-2004   #31 (permalink)
firefighter99
Registered Member
 
Join Date: Apr 2004
Posts: 17
Quote:
Originally Posted by topolb
3 millions is enough of course.
try with --fcs

also post here what messages you get if you use --debug 1 --debugkey AA:BB:CCD:EE:

change AA:BB:CC:... with your REAL key (I guess you are trying with your own wireless lan, so you know the real key) and finish with ':'. Post here the lines you get, and we will see why the key does not get cracked
i sent you a pm about it. the output is long, that"s why i thought it's better due pm. let me know what u think... it didnt work with my real key
firefighter99 is offline  
Old 06-11-2004   #32 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
selvanou: based on the output posted in the other thread, it seems to be based on the same general optimizations. Anyway without testing it myself, I cannot tell you for sure.
topolb is offline  
Old 06-11-2004   #33 (permalink)
peekitty
Macaca
 
peekitty's Avatar
 
Join Date: Sep 2002
Location: S. Florida
Posts: 1,056
Quote:
Originally Posted by topolb
Weplab should work with any wireless card that supports monitor mode. The problem is that I just have a prism2 based card so I don't know if other card's drivers adds some special header or tail to the packets, or sniffs over another DATALINK. I'll do my best to make weplab work with any card with to your feedback
You might like to ask for hardware donations, I think people would be willing to contribute to a project like this.
peekitty is offline  
Old 06-11-2004   #34 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
Example of use

For those who haven't yet succeed cracked the wep key just 2 tips:

1) First you must know if you need --fcs or not. It depends on the chipset of the card that was used to capture the packets and the drivers used. To most simple way to know if you need --fcs or not is just trying both ways with --debug key.
Supose that your real key is 00:11:22:33:44:55:66:77:88:99:00:AA.BB:CC

Then just do this:
./weplab --debug 1 --debugkey 00:11:22:33:44:55:66:77:88:99:00:AA.BB:CC: -r ./pcap.log ./pcap.log
and this:
./weplab --debug 1 --debugkey 00:11:22:33:44:55:66:77:88:99:00:AA.BB:CC: --fcs -r ./pcap.log ./pcap.log

You will see KeyCracked in the right command.
Please note that you must not write the last byte of the key in --debugkey due to a programming error.
You can try decreasing the number of bytes in --debugkey and see if the key gets cracked finally.

2) Increase the default probability for candidate bytes selection (v0.0.2-alpha). By default 40% probability is used. In the output that weplabs gives you when using --debugkey, you will see the candidate keys selected for each keybyte, together with the probability of each one.
BYTE-SELECTED (PROBAB.), BYTE-SELECTED (PROBAB.)
You can check if your real keybytes are the first ones. If in one keybyte is the second one, and the probability of the first one is greater than 40% the second one (the real one in this example) will never be tested.
Thats why if your key does not get cracked with the default probability you can increase it to 70% (for example) with --perc 70
Of course if you are doing a real test and you dont know the real key you must use the try-error method. A good tip is trying first with the default one and then trying with 65%.
If you know the key and it is not cracked with 40% you can inspect the output given by --debugkey and see what was the keybyte that failed and calculate how much do you have to increase the default probability to crack the key.

Hope that this helps.
topolb is offline  
Old 06-11-2004   #35 (permalink)
firefighter99
Registered Member
 
Join Date: Apr 2004
Posts: 17
short question: why do we add the captured file twice as a parameter?
firefighter99 is offline  
Old 06-11-2004   #36 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
why do we put the file twice?

To help you to save disk space. The file parameter next to the -r is the one that has the weak packets. For this file only the bytes until the end of the IV (Initival Vector= first 4 bytes after de 80.11 header) must be present. So in order to save space you can use --caplen for the capture session, to just save a custom number of bytes for each packet.
The other file parameter is the one that has at least 10 wep data encrypted packets for key testing purposes. All the bytes of these packets must be logged, because the CRC is at the end of the payload and is needed for the key testing procedure.

But if you dont mind the diskspace you can just use --caplen 0, so all packet's bytes will be saved. Then you specify the packets twice for the FMS attack, one for the weak packets and another one for the verifications packets.

That's why in the example we put the file twice I thinks it is a good idea
topolb is offline  
Old 06-11-2004   #37 (permalink)
kleptophobiac
Registered Member
 
Join Date: Sep 2002
Posts: 310
No matter what combination of --prismheader, --fcs, and --perc xx.... I still haven't managed to crack my own wep.

I guess my network is über secure with FF:AA:FF:AA:FF
kleptophobiac is offline  
Old 06-12-2004   #38 (permalink)
firefighter99
Registered Member
 
Join Date: Apr 2004
Posts: 17
Quote:
Originally Posted by topolb
To help you to save disk space. The file parameter next to the -r is the one that has the weak packets. For this file only the bytes until the end of the IV (Initival Vector= first 4 bytes after de 80.11 header) must be present. So in order to save space you can use --caplen for the capture session, to just save a custom number of bytes for each packet.
The other file parameter is the one that has at least 10 wep data encrypted packets for key testing purposes. All the bytes of these packets must be logged, because the CRC is at the end of the payload and is needed for the key testing procedure.

But if you dont mind the diskspace you can just use --caplen 0, so all packet's bytes will be saved. Then you specify the packets twice for the FMS attack, one for the weak packets and another one for the verifications packets.

That's why in the example we put the file twice I thinks it is a good idea
Oh so caplen x means it only captures x bit of the packet? I thought it means only capture packets smaller than x. that's interesting, but even if you cut it down to 80 there will be more than 10 packets that also include the crc, simply because some arp packets came along. what's the shortest caplen you can use? 24 (24bit of the IV)?
firefighter99 is offline  
Old 06-12-2004   #39 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
kleptophobiac: send me a pm. with all the output of the command
./weplab --debug 1 --debugkey FF:AA:FF:AA:FF: --prismheader -r ./pcap.log ./pcap.log

I guess that the problem you have is related to the format you have captured the packets. Could you leave an small (5 MB) pcap capture file somewhere (website, ftp or something) so I can download it and check that the hell is happening x)

firefighter99: that's right --caplen truncates all the packets to this size maximun. To calcule the minimun size to capture the IV you have to take into account also the 802.11 headers.
topolb is offline  
Old 06-13-2004   #40 (permalink)
kleptophobiac
Registered Member
 
Join Date: Sep 2002
Posts: 310
I don't have the big file available at the moment to run the command on... but here's the small file.

http://home.insightbb.com/~kleptophobiac/small.tar.bz2
kleptophobiac is offline  
Old 06-14-2004   #41 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
Weplab 0.0.2 does not work for you because it seems to have a bug in --prismheader code.
I will try to release version 0.0.3 this night, with this (and other little bugs) fixed.
topolb is offline  
Old 06-14-2004   #42 (permalink)
kleptophobiac
Registered Member
 
Join Date: Sep 2002
Posts: 310
Quote:
Originally Posted by topolb
Weplab 0.0.2 does not work for you because it seems to have a bug in --prismheader code.
I will try to release version 0.0.3 this night, with this (and other little bugs) fixed.
Yay!! I helped somebody find a bug!
kleptophobiac is offline  
Old 06-14-2004   #43 (permalink)
firefighter99
Registered Member
 
Join Date: Apr 2004
Posts: 17
used a Netgear MA401RA (prism 2/2.5), hostap drivers to collect data without --fcs.

My 128 Bit WEP was cracked after 1.7 million unique IV's, 1.2 GB Traffic within 1h 25min (802.11). Nice work
firefighter99 is offline  
Old 06-14-2004   #44 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
New version

New alpha version 0.0.3 available in www.sourceforge.net/projects/weplab

It fixes problems with --prismheader, among other things (see Changelog)

Enjoy it
topolb is offline  
Old 06-14-2004   #45 (permalink)
topolb
Registered Member
 
Join Date: Jun 2004
Posts: 67
Stupid error in 0.0.3

I'm sorry, I made an stupid mistake in release 0.0.3-alpha, so prismheader still does not work.

Version 0.0.4-alpha that fixes the error is available
I tested kleptophobiac's file with this new version and it works fine (finally!)

Last edited by topolb : 06-15-2004 at 02:52 AM.
topolb is offline  
Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 04:37 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.