Aircrack-ng
Welcome, Guest. Please login or register.
August 01, 2010, 02:24:28 am

Login with username, password and session length
Search:     Advanced search
34568 Posts in 6337 Topics by 20712 Members
Latest Member: illino87t
* Home Help Search Login Register
+  Aircrack-ng
|-+  General Discussion
| |-+  Newbie
| | |-+  airdecap-ng + wpa problems
« previous next »
Pages: [1] Reply Print
Author Topic: airdecap-ng + wpa problems  (Read 3361 times)
Morlock
Newbie
*
Posts: 8


airdecap-ng + wpa problems
« on: July 22, 2006, 03:41:15 pm »
Reply with quote

Hey there.
Seems like nobody reads "Help" topics, so i past my problem here... I've got a strange problem here with decrypting wpa.cap file with airdecap-ng.. So the thing is: when i'm trying to decrypt wep packets, it works ok and all packets are decrypted. But when wpa, nothing happens, airdecap returns just:

[root@localhost]# airdecap-ng -p titannnn -e wlan wpa-04.cap
Total number of packets read           793
Total number of WEP data packets         0
Total number of WPA data packets       331
Number of plaintext data packets         0
Number of decrypted WEP  packets         0
Number of decrypted WPA  packets         0

The passphrase is really "titannnn", so i just dont realize why no packets are decrypted. Both wep and wpa packets are saving with airodump-ng, on the same wifi cards (dlink g-520), and the same AP.
Please help me solve this little problems.
Logged
Mister_X
Administrator
Hero Member
*****
Posts: 3626


WWW
Re: airdecap-ng + wpa problems
« Reply #1 on: July 22, 2006, 03:49:48 pm »
Reply with quote

Can you send me that file. See AUTHORS file for email address. Next time, don't double post.
Logged
Morlock
Newbie
*
Posts: 8


Re: airdecap-ng + wpa problems
« Reply #2 on: July 25, 2006, 04:02:38 pm »
Reply with quote

I sent it to you today. Sorry for double post Smiley
Logged
akf
Newbie
*
Posts: 2


Re: airdecap-ng + wpa problems
« Reply #3 on: November 02, 2006, 07:52:42 pm »
Reply with quote

Hi,

I've been having the same problem. I catch as many handshakes as you like but airdecap-ng (0.6.2) won't decrypt them. It generates an unreadable file of 24 bytes but nothing more. I've tried with captures from airodump-ng & kismet, in vain. aircrack-ng find the passwd though and mentions the found handshake. Google isn't any help...

card: atheros, madwifi-ng driver, injection works perfect.

any suggestions?
« Last Edit: November 02, 2006, 07:55:55 pm by akf » Logged
akf
Newbie
*
Posts: 2


Re: airdecap-ng + wpa problems
« Reply #4 on: November 02, 2006, 08:33:34 pm »
Reply with quote

Downloaded aircrack 2.4 (old version, pre-aircrack-ng) from following site.
http://www.tuto-fr.com/tutoriaux/crack-wep/fichiers/wlan/aircrack/archives/

ran the old airdecap on my cap file. Behold! It worked.
Conclusion: Something must be broken in the airdecap-ng.
Note: No need to install the whole old package. Just compile
and replace airdecap.

Anyway, thanks to the developers for the great tool!

afk
Logged
reverend carlos
Newbie
*
Posts: 3


Re: airdecap-ng + wpa problems
« Reply #5 on: January 14, 2007, 11:38:00 pm »
Reply with quote

Hello,

I have exactly the same problem with airdecap-ng.
It will not decrypt dump files from airodump-ng or kismet.
I tried both because I found a post that said the problem is kismet.
But it does not work with airodump-ng either.
I found a post that said the problem is in the code for airdecap-ng.

http://www.netstumbler.org/showthread.php?t=17045

The problem is I am not quite up to compiling a new version and building it into my backtrack live cd that I am playing with.
Since akf had success with the v2.4 and I assume that the bug only applies to -ng I tried an old slax live cd with airdecap v2.3 but again no luck.
I am sniffing my own network so I am sure I have the right essid and WPA passphrase.
I'm out of ideas can someone help or suggest a solution?

Thanks in advance,

R. carlos Huh
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: airdecap-ng + wpa problems
« Reply #6 on: January 15, 2007, 01:33:20 am »
Reply with quote

Try the svn development version.  It decrypted files which v0.6.2 would not.

d.
Logged
lostinux
Guest


Email
Re: airdecap-ng + wpa problems
« Reply #7 on: January 15, 2007, 05:11:15 am »
Reply with quote

I had this problem too.  The following change to crc.c fixed it:

Change:

unsigned long crc;

crc = calc_crc(buf, len);

To:

unsigned long crc = 0xFFFFFFFF;

for ( ; len > 0; len--, buf++)
     crc = crc_tbl[(crc ^ *buf) & 0xFF] ^ ( crc >> 8 );

crc = ~crc;

Logged
reverend carlos
Newbie
*
Posts: 3


Re: airdecap-ng + wpa problems
« Reply #8 on: January 15, 2007, 06:26:37 am »
Reply with quote

Thanks for the quick replies.

Just got up and got to leave the country for a couple of days.
I'll try these things when I get back.

I assume that crc.c is a source file?
Looks like I need to learn how to compile a new version.
Nothing worthwhile is easy I guess.

Thanks gentlemen.
Logged
reverend carlos
Newbie
*
Posts: 3


Re: airdecap-ng + wpa problems
« Reply #9 on: January 19, 2007, 01:01:08 pm »
Reply with quote

Hello again,

I'm back but unfortunately not much wiser.
I found what appears to be a modified version of the crc.c source file at this location:

http://trac.aircrack-ng.org/svn/trunk/src/crc.c

I have very little experience in compiling source code (actually only once, apache server) and am not sure where to begin
with the source in the svn directory.
I don't know which files I need to create a complete version of the latest version of aircrack-ng.
Any help to start me off would be appreciated.

Then my next problem is how to create a module for my backtrack security cd.
I have been able to load a module with slax but the module was for a program that was not on the cd. When I try to load a different version
of aircrack I still get the original version. I get the idea that I need to remove the other one before the new module can be loaded.
The problem is that the original is not a module but is in the installation itself.
I'm going to post this question on the backtrack and slax sites also but maybe those guys hang out here too.

The last question is can this problem have something to do with the pcap files made with madwifi-ng drivers. I found a post where someone solved this by using madwifi-old. This is not an option for me as I need madwifi-ng for my card.

Sorry for all the questions but I'm willing to listen and learn.

r.carlos
Logged
S.Shiota
Newbie
*
Posts: 8


Re: airdecap-ng + wpa problems
« Reply #10 on: April 01, 2007, 07:10:31 pm »
Reply with quote

Hi.

I have a question for IEEE802.11 header in capture.
I tried to airdecap-ng but it do not work, using:
1) Atheros chip wireless MiniPCI card
2) madwifi-ng driver from svn with patch
3) aircrack-0.7 or svn version

results:
# (captured wireless packet from STA association using airodump-ng)
# airdecap-ng -p passphrase -b 00:03:2f:77:73:14 -e 'E02SA-WPA' tkip_micerr-03.cap
Total number of packets read          2512
Total number of WEP data packets         0
Total number of WPA data packets        20
Number of plaintext data packets         0
Number of decrypted WEP  packets         0
Number of decrypted WPA  packets        16

 I checked output file, only group key exchange has decrypted successfull,
and 'Total number of WPA data packets        20' tells airdecap does not
detect WPA packets from capture file.

 So I modified IEEE802.11 header offset to airdecap getting bssid from each frame.
It worked well, is that something wrong for capture or decrypt?

diff -cr aircrack-ng-0.7/src/airdecap-ng.c aircrack-ng-0.7-00/src/airdecap-ng.c
*** aircrack-ng-0.7/src/airdecap-ng.c   2007-01-04 06:50:40.000000000 +0900
--- aircrack-ng-0.7-00/src/airdecap-ng.c        2007-04-02 01:19:04.000000000 +0900
***************
*** 941,947 ****

          /* check the BSSID */

!         switch( h80211[0] & 3 )
          {
              case  0: memcpy( bssid, h80211 + 16, 6 ); break;
              case  1: memcpy( bssid, h80211 +  4, 6 ); break;
--- 941,947 ----

          /* check the BSSID */

!         switch( h80211[1] & 3 )
          {
              case  0: memcpy( bssid, h80211 + 16, 6 ); break;
              case  1: memcpy( bssid, h80211 +  4, 6 ); break;

results:
# airdecap-ng -p passphrase -b 00:03:2f:77:73:14 -e 'E02SA-WPA' tkip_micerr-03.cap
Total number of packets read          2512
Total number of WEP data packets         0
Total number of WPA data packets       799
Number of plaintext data packets         0
Number of decrypted WEP  packets         0
Number of decrypted WPA  packets       494
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5905


Re: airdecap-ng + wpa problems
« Reply #11 on: April 01, 2007, 09:07:16 pm »
Reply with quote

S.Shiota,

I have opened a trac ticket to investigate this:

http://trac.aircrack-ng.org/ticket/158

Assuming the data is not sensitive or too large, could you post the file and pre-shared key?

Thanks.

d.
Logged
S.Shiota
Newbie
*
Posts: 8


Re: airdecap-ng + wpa problems
« Reply #12 on: April 02, 2007, 02:36:54 am »
Reply with quote

Quote
I have opened a trac ticket to investigate this:

http://trac.aircrack-ng.org/ticket/158

Assuming the data is not sensitive or too large, could you post the file and pre-shared key?

Thanks.

I posted file and pre-shared key. Thanks.
Logged
Pages: [1] Reply Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Aircrack-ng | Powered by SMF 1.0.10.
© 2005, Simple Machines LLC. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!