Unpublished WPA key algorithms

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
In some cases the serial number is actually captured with the handshake. You can open the cap in a text editor and scroll around and perhaps spot the SN in plain text. strings filename.cap would work, or you could use wireshark.
If the SN is not in the cap, you have still reduced the parameter space from all possible passwords to all possible serial numbers. You'll just need to generate the table of passwords that correspond to each possible serial number. It's not as daunting as you might think, as we think the SN has a production year and week in it, and thus there are only 100million or so possible. This is much less than 36^10.
But that last step requires you to read the discussion in this thread regarding SN ranges and learn a little python.
 

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
You use python and the algorithm to create a dictionary of passwords using the range of serial numbers. Then hashcat will crack it in minutes. (unless the user changed the password and it is no longer default)
 

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
If you want to be a hacker, you will need to learn how to code eventually! Although with the AI boom going on, perhaps learning to code is overrated and you can simply ask chatGPT to write the code for you.
If that is a bridge too far, perhaps just post your cap in https://forum.hashkiller.io/index.php?forums/wpa-packet-cracking.16/
and have the experts there crack it for you.
 

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
If you find it let us know! Most passwords are calculated in the factory and burnt into NVRAM. When you factory reset, it just pulls the data from NVRAM. It does not re-calculate the password.
 

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
There is an algorithm, we just have not found it yet. ZTE's algorithm has not left the factory. No intern has forgotten to delete it from the firmware...
 

wizardhat

Member
Feedback: 0 / 0 / 0
Joined
May 22, 2025
Messages
7
Reaction score
6
Credits
55
Finally managed to get into the Eircom P-660HN-T1A the admin password was "broadband1" not 1234 or admin or the wifi password.
Again /userfs/bin/md5 performed the factory reset but how to get that file off. No USB port, no xxd, hexdump, not even printf. No netscan or busybox nc
ftpput was using a hard coded IP. Really bare OS!
Eventually managed to get tftp to work. After all that work, like the D1000 before, it just pulls the WPA password from NVRAM.
Only the Eircom F1000 left, but hope is dwindling fast.
Yeah seems they all pull it from the NVRAM. Even tried the D2000 before. Really strange compared to all the other zyxel models from that era.
 

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
@wizardhat thanks for the update. Yeah you can see the vestigial remains of the agnahaak algorithm, but sadly any likely combination of Zyxel tricks does not result in the password. Eircom designed something new.

I'll also give an update on the LC-RNG investigation....
What seems critical for the sequence is the multiplier. While there are many (many) increments that will all result in the same (but shifted) sequence of digits.
There is some sort of pattern in the increments. If you look at the difference between increments, they are only 1436, 20484, 63884 or 84368 apart. I'm sure there is some modular maths that will explain that and I'm sure they are dependent on the multiplier. But it does mean that you can try each possible multiplier but only have to scan through a small-ish range of increment, limiting the search space.
1775260325913.png
 

gurgen

Active member
Feedback: 0 / 0 / 0
Joined
Dec 30, 2019
Messages
119
Reaction score
11
Credits
142
tp-link ex530v
is there any chance for this tp-link model?
1.jpg2.jpg
 

Attachments

  • mk2.jpg
    mk2.jpg
    289.4 KB · Views: 20
  • s-l1600.jpg
    s-l1600.jpg
    178.2 KB · Views: 22
  • s-l1600c.jpg
    s-l1600c.jpg
    289.4 KB · Views: 23

drsnooker

Active member
Contributor
VIP Member
Feedback: 0 / 0 / 0
Joined
Aug 1, 2020
Messages
601
Reaction score
915
Credits
5,468
@gurgen see if you can find the firmware for that model. TP-Link has been pretty sloppy before, so there is hope.
 

FiosFiend

Active member
Feedback: 0 / 0 / 0
Joined
Apr 6, 2025
Messages
295
Reaction score
430
Credits
4,117
I looked through the firmware and couldn’t find anything myself. I wasn’t actually able to see how the SSID/Key are set, so I can’t say for sure that the password is pulled from NVRAM.

I found the GPL code for the firmware, but no luck there either.

 

FiosFiend

Active member
Feedback: 0 / 0 / 0
Joined
Apr 6, 2025
Messages
295
Reaction score
430
Credits
4,117
Here’s a mostly useless one, this version of commander only has a single keygen mode. Unfortunately running MAC offset -8 to 0 shows there are none of these hashes in the WPA-SEC database either. :frown:

Model: DWR-118
Firmware (source): https://drivers.softpedia.com/get/R...k/D-Link-DWR-118-Router-Firmware-100b02.shtml
Firmware (extracted): https://limewire.com/d/1w89X#Sk0XjFNwiV
File: DWR-118_A1_V1.00b02.bin.extracted/15DFA3/squashfs-root/usr/sbin/commander

DWR-118.jpg

Enter MAC address: 6c7220a596a1
Generated Key: 3qwg2ywq

DWR-118_2.jpeg

Enter MAC address: 6c7220a5a1b1
Generated Key: fymcewhe
 

Attachments

  • DWR-118.py.txt
    1.2 KB · Views: 16
Top