Aircrack-ng
Welcome, Guest. Please login or register.
September 02, 2010, 10:34:57 pm

Login with username, password and session length
Search:     Advanced search
Read forum rules, "Read this before posting". Post that do not respect them will be trashed.
35273 Posts in 6560 Topics by 22190 Members
Latest Member: MareckyPadanfooz
* Home Help Search Login Register
+  Aircrack-ng
|-+  General Discussion
| |-+  Newbie
| | |-+  No packets, no ARPs...
« previous next »
Pages: [1] Reply Print
Author Topic: No packets, no ARPs...  (Read 1009 times)
T
Newbie
*
Posts: 1


No packets, no ARPs...
« on: October 22, 2009, 02:54:51 am »
Reply with quote

So I have problem with Aircrack-ng...

I'm using Aircrack-ng 1.0 rc4 r1623 on Kubuntu Karmic with kernel 2.6.31.14.
Wireless card is Atheros, driver in use ath5k.

From Aircrack-ng website i found out that I will need those patches:
ath5k-injection-2.6.27-rc2.patch
mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch
Now, I have to state that I'm just getting familiar with Linux. So I got
'compat-wireless-2009-10-21' and applied patches to it. Of coure i did have to
modify patches slightly to point to right files in compat-wireless instead of
kernel.

Attempt in using mac80211_2.6.28-rc4-wl_frag+ack_v3.patch gave me:

patching file net/mac80211/tx.c
Hunk #1 FAILED at 611.
1 out of 1 hunk FAILED -- saving rejects to file net/mac80211/tx.c.rej

and the content of tx.c.rej:

*************** ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
*** 611,621 ****
 
     /*
      * Packet injection may want to control the sequence
-     * number, if we have no matching interface then we
-     * neither assign one ourselves nor ask the driver to.
      */
-    if (unlikely(!info->control.vif))
        return TX_CONTINUE;
 
     if (unlikely(ieee80211_is_ctl(hdr->frame_control)))
        return TX_CONTINUE;
--- 611,629 ----
 
     /*
      * Packet injection may want to control the sequence
+     * number, so if an injected packet is found, skip
+     * renumbering it. Also make the packet NO_ACK to avoid
+     * excessive retries (ACKing and retrying should be
+     * handled by the injecting application).
+     * FIXME This may break hostapd and some other injectors.
+     * This should be done using a radiotap flag.
      */
+    if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) &&
+       !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES))) {
+       if (!ieee80211_has_morefrags(hdr->frame_control))
+          info->flags |= IEEE80211_TX_CTL_NO_ACK;
        return TX_CONTINUE;
+    }
 
     if (unlikely(ieee80211_is_ctl(hdr->frame_control)))
        return TX_CONTINUE;

Patch mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch did applied correctly.
Same goes for ath5k-injection-2.6.27-rc2.patch.
Next step was make / make install / reboot.

After reboot I followed steps from 'Tutorial: Simple WEP Crack' and...
nothing...
Output of 'sudo airodump-ng -c 1 --bssid XX:XX:XX:XX:XX:XX -w output mon0'

BSSID              PWR RXQ  Beacons    #Data, #/s  CH  MB   ENC  CIPHER AUTH
ESSID
XX:XX:XX:XX:XX:XX  -76  96    10331        0    0   1  63e. WEP  WEP    OPN
XXXX
BSSID              STATION            PWR   Rate    Lost  Packets  Probes
XX:XX:XX:XX:XX:XX  XX:XX:XX:XX:XX:X    0    0 - 1      0      220

Next command was 'sudo aireplay-ng -1 6000 -o 1 -q 10 -e XXXXX -a
XX:XX:XX:XX:XX:XX -h XX:XX:XX:XX:XX:XX mon'
and the output:
Sending Authentication Request (Open System)
Sending Authentication Request (Open System)
Sending Authentication Request (Open System) [ACK]
Authentication successful                         
Sending Association Request [ACK]                 
Association successful :-) (AID: 1)               
Sending keep-alive packet [ACK]   
[...]
Sending keep-alive packet [ACK]


And the last command 'sudo aireplay-ng -3 -b XX:XX:XX:XX:XX:XX -h
XX:XX:XX:XX:XX:XX mon0
output being:
Waiting for beacon frame (BSSID: XX:XX:XX:XX:XX) on channel 1
Saving ARP requests in replay_arp-1022-011844.cap
You should also start airodump-ng to capture replies.
Read 20004 packets (got 0 ARP requests and 118 ACKs), sent 0 packets...(0 pps)

My guess is that i messed up patching part. As well, when I'm putting card in
monitor mode i got those interfering processes:
NetworkManager
wpa_supplicant
avahi-daemon
avahi-daemon
which I cant kill. I tried 'airmon-ng check kill' and 'kill -9' but none of them
seems to be doing the trick....

Can anyone point me in the right direction? Please?

And yes, I tested injection and its working....
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5921


Re: No packets, no ARPs...
« Reply #1 on: October 22, 2009, 02:47:24 pm »
Reply with quote

T,

With that kernel, you should only need the frag patch.  If it does not apply cleanly then manually apply it.

Install and use the aircrack-ng v1.0 final version.

You will need to use the linux "kill" command to kill off NetworkManager and wpa_supplicant.

d.
Logged
Joker
Guest


Email
Re: No packets, no ARPs...
« Reply #2 on: November 01, 2009, 04:20:27 pm »
Reply with quote

For Kernel 2.6.31 do we need these patches?

mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
mac80211-2.6.29-fix-tx-ctl-no-ack-retry-count.patch

or just
mac80211_2.6.28-rc4-wl_frag+ack_v3.patch

Huh
Logged
darkAudax
Administrator
Hero Member
*****
Posts: 5921


Re: No packets, no ARPs...
« Reply #3 on: November 01, 2009, 06:28:58 pm »
Reply with quote

Joker,

I think you only need mac80211_2.6.28-rc4-wl_frag+ack_v3.patch.  However, since I am not running .31, I can't be absolutely sure.  Try it and let us know.

d.
Logged
Joker
Guest


Email
Re: No packets, no ARPs...
« Reply #4 on: November 08, 2009, 08:40:28 pm »
Reply with quote

I got everything to work in Ubuntu 9.10  Smiley
I just applied mac80211_2.6.28-rc4-wl_frag+ack_v3.patch to ubuntu's linux-source 2.6.31

injection speed is 1024pps stable, and fragmentation also works

also i am using a netbook, the Aspire One from Acer

which comes with the Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)

I also have modded the netbook to have a external SMA connector, which has a high gain antenna attached.

I got to say netbooks are great for Wardriving 
« Last Edit: November 08, 2009, 08:42:48 pm by JOKER » Logged
joe212
Guest


Email
Re: No packets, no ARPs...
« Reply #5 on: April 11, 2010, 12:29:27 pm »
Reply with quote

Hi,
I am using the same OS, how did you fix Hunk issue?

# uname -a
Linux xxxx 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux

# patch -p1 < mac80211_2.6.28-rc4-wl_frag+ack_v3.patch
patching file net/mac80211/tx.c
Hunk #1 FAILED at 611.
1 out of 1 hunk FAILED -- saving rejects to file net/mac80211/tx.c.rej

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!