Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WPS: Full PIN information revealed and negotiation failed #240

Open
ghost opened this issue Jun 2, 2018 · 14 comments
Open

WPS: Full PIN information revealed and negotiation failed #240

ghost opened this issue Jun 2, 2018 · 14 comments

Comments

@ghost
Copy link

ghost commented Jun 2, 2018

Hello pin crackers!

For the last few days I tried to crack this PIN running on a router RealtekS 2.0 WPS. I am using latest 1.65 reaver. Wash -i wlan1mon shows that WPS is not locked. It seems like the full PIN has been found, please see description below:

WPS: Unsupported attribute type 0x1049 len=6
WPS: Parsed WSC_MSG
WPS: Received M5
WPS: Unexpected state (18) for receiving M5
WPS: Incorrect Authenticator
WPS: Processing decrypted Encrypted Settings attribute
WPS: E-SNonce1 - hexdump(len=16): 2e 19 9d 89 d8 17 22 6c c5 74 16 40 55 c5 ad 04
WPS: Enrollee proved knowledge of the first half of the device password
WPS: WPS_CONTINUE, Freeing Last Message
WPS: WPS_CONTINUE, Saving Last Message
WPS: returning
[+] Received M5 message
WPS: Processing received message (len=120 op_code=4)
WPS: Received WSC_MSG
WPS: Unsupported attribute type 0x1049 len=6
WPS: Parsed WSC_MSG
WPS: Received M5
WPS: Unexpected state (18) for receiving M5
WPS: Incorrect Authenticator
WPS: Processing decrypted Encrypted Settings attribute
WPS: E-SNonce1 - hexdump(len=16): 2e 19 9d 89 d8 17 22 6c c5 74 16 40 55 c5 ad 04
WPS: Enrollee proved knowledge of the first half of the device password
WPS: WPS_CONTINUE, Freeing Last Message
WPS: WPS_CONTINUE, Saving Last Message
WPS: returning
[+] Received M5 message
WPS: Processing received message (len=66 op_code=3)
WPS: Received WSC_NACK
WPS: Unsupported attribute type 0x1049 len=6
WPS: Enrollee terminated negotiation with Configuration Error 18
[+] Received WSC NACK
WPS: Building Message WSC_NACK
WPS: * Version
WPS: * Message Type (14)
WPS: * Enrollee Nonce
WPS: * Registrar Nonce
WPS: * Configuration Error (0)
[+] Sending WSC NACK
send_packet called from send_msg() send.c:116
WPS: Full PIN information revealed and negotiation failed
WPS: Invalidated PIN for UUID - hexdump(len=16): 63 04 12 53 10 19 20 06 12 28 48 3c 0c 92 43 50

I am running a command:

./reaver -b xx:xx:xx:xx:xx:xx -p 97423171 -c 6 -i wlan1mon -vvv -N -T 2.00 -r 1:5 -w

without N option the transaction would just fail, I can only reproduce this result above by adding -N. I tried using this method to connect with the router to get the PSK:
https://miloserdov.org/?p=138
But It would not allow me to connect either.

I am out of ideas at the moment, any suggestions ?

@rofl0r
Copy link
Collaborator

rofl0r commented Jun 2, 2018

can you try earlier versions, 1.6.4, 1.6.3 etc and report back ? you should also capture what happens with wireshark/tcpdump/airmon-ng and send it to @kcdtv : [email protected] so we can analyze why tehre's no progress after M5.

@ghost
Copy link
Author

ghost commented Jun 3, 2018

Done, email sent. Please do let me know if you need anything else. I have tried 1.6.4, same situation.

@kcdtv
Copy link
Collaborator

kcdtv commented Jun 3, 2018

Your packet does not contain the recieved message. Could you send me the original *cap, without any filtering, i promise we erase them when we solve the issue (and we do not solve it) ;)
cheers

@ghost
Copy link
Author

ghost commented Jun 3, 2018

capture updated, check your email. thanks for looking into that.

@kcdtv
Copy link
Collaborator

kcdtv commented Jun 3, 2018

Got it! Thanks to you 😺
Mmmm... the behaviour of this PA is weird... it send a bunch of M3 ater the M4, than, suddenly, it finally sends the M5. You send the M6, it sends back a bunch of M5, than it cut the shit off by sending a lot of NACK... wtf?

@ghost
Copy link
Author

ghost commented Jun 3, 2018

Any suggestions of what can I try to do with that ?

@soxrok2212
Copy link
Collaborator

soxrok2212 commented Jun 3, 2018

RX errors on the AP end :) Move closer, or maybe try increasing your TX power.

@ghost
Copy link
Author

ghost commented Jun 3, 2018

Maybe you are right, will sneak up closer tommorow;p as from my flat I have only 34db signal away from the said router.

@ghost
Copy link
Author

ghost commented Jun 4, 2018

No go gentlemen, I got close enough to get 47db and still have the same situation. What the duce ?

@soxrok2212
Copy link
Collaborator

FYI, the signal strength you are talking about is how well you hear the router. You don’t know how well the router hears you.

Perform an injection test with aircrack to check if the AP can actually hear you.

What is the model of the AP and what wireless adapter are you using?

@ghost
Copy link
Author

ghost commented Jun 4, 2018

aireplay-ng -a xx:xx:xx:xx:xx:xx -9 wlan0
06:43:38 Waiting for beacon frame (BSSID: xx:xx:xx:xx:xx:xx) on channel 6
06:43:47 Trying broadcast probe requests...
06:43:47 Injection is working!
06:43:49 Found 1 AP

06:43:49 Trying directed probe requests...
06:43:49 xx:xx:xx:xx:xx:xx - channel: 0 - 'TALKTALK924348'
06:43:54 Ping (min/avg/max): 2.652ms/4.201ms/8.298ms Power: -57.40
06:43:54 5/30: 16%

hmm a bit low...

FYI I also specified the pin with bully but it said the pin was bad and it went to try out next one.

I will work on the way to increase the quality of injection...

========================================

No go, got

06:52:28 Ping (min/avg/max): 2.061ms/11.801ms/51.181ms Power: -77.52
06:52:28 27/30: 90%

and still the same.
Adapter I am using
Alfa Long-Range Dual-Band AC1200
Realtek Semiconductor Corp. RTL8812AU 802.11a/b/g/n/ac WLAN Adapter

Reaver displayed this information about the router:

WPS: Manufacturer - hexdump_ascii(len=27):
52 65 61 6c 74 65 6b 20 53 65 6d 69 63 6f 6e 64 Realtek Semiconductor Corp.
75 63 74 6f 72 20 43 6f 72 70 2e
WPS: Model Name - hexdump_ascii(len=7):
52 54 4c 38 78 78 78 RTL8xxx
WPS: Model Number - hexdump_ascii(len=13):
45 56 2d 32 30 31 30 2d 30 39 2d 32 30 EV-2010-09-20
WPS: Serial Number - hexdump_ascii(len=15):
31 32 33 34 35 36 37 38 39 30 31 32 33 34 37 123456789012347
WPS: Primary Device Type: 6-0050F204-1
WPS: Device Name - hexdump_ascii(len=17):
41 44 53 4c 20 4d 6f 64 65 6d 2f 52 6f 75 74 65 ADSL Modem/Router
72

airodump-ng --manufacturer : HUAWEI TECHNOLOGIES CO.,LTD

==========================

I even tried with this Alfa: ath9k_htc Atheros Communications, Inc. AR9271 802.11n same result even thought I got 07:15:17 Ping (min/avg/max): 5.537ms/27.685ms/195.019ms Power: -91.93
07:15:17 30/30: 100%
.

@ghost
Copy link
Author

ghost commented Jun 4, 2018

But still wouldn't injection test indicate how well I can send the packets to the router which is what TX - transmit - stands for? RX - recieve would indicate a communication back to me, which is something I try to test.. Please do correct me if I am wrong.

@kcdtv
Copy link
Collaborator

kcdtv commented Jun 4, 2018

Injection test is probe answer-probe response (i am pretty sure but not 100%) If you get 30/30 - 100% it means that you are in correct TX & RX conditions
16% is definitely too low, 90% should be enough,

FYI I also specified the pin with bully but it said the pin was bad and it went to try out next one.

That not surprising as you never get to M7... if you get the M5 it means the first half is correct. You need to get the M7 to know if the second half is correct. reaver was desined to test a single pin when you use the -p option (which i personally do not like at all and always found a very bad approach, but that was the conception from craig heffner). A good habit is to use -g 1 (stop after one PIN checked) when you use -p, in order to not enter in a stupid loop when reaver keep on trying the same PIN even if it is not correct. Notice that the use of -p option does not allow to keep a record from the session neither... That also something i do not like at all. what i do in this case is to redact my own wpc file and use the -s option to launch it. like this you can keep record of the session and can bruteforce the second part puting the good first half first in the wpc file. issues with session (*.wpc files) using the -p option

@nuncan
Copy link

nuncan commented Nov 23, 2018

Never liked AC1200 (trust me I wanted to). Get yourself a AWUS036NHR and a Yagi. And if law allows, adjust regdb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants