-
Notifications
You must be signed in to change notification settings - Fork 15
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
What is the correct way of comparing the signature against the DB? #2
Comments
#1: How to lookup a signature The lookup of the text signature to find the type of device happens in the Python code. This bash function is a snippet showing a minimal implementation:
This is where history gets in the way: the taxonomy feature as published here was extracted from a larger Wi-Fi AP project which I worked on. Back then we had modified hostapd to export signatures to files in the filesystem, and the Python code was written to work in this environment. The hostapd maintainers noted that nothing else in hostapd exports information to files, and asked that we add a hostapd_cli command instead. They are quite correct, but the result right now is that the signature database needs some glue code to get signatures from the rest of the system. The bash function shown above is one possible way to glue it together. What I'd like to do, if the taxonomy idea gets traction, is to integrate it more naturally into systems using hostapd_cli. #2: Xiaomi Mi5
If you'd like to pursue this, I'd ask you to capture a pcap while your Xiaomi devices are joining the Wi-Fi network. We'd trim the pcap to the essential packets for the signature, add the signatures to the DB, and add the pcap to testdata/pcaps as a unit test to make sure we don't break it in the future. |
To capture those two mi5 phones I'd like to request your sample hostapd config you've used for your captures (or in your defcon video?), I think the issue lays here. |
Hello.
Sorry if I'm missing something, but I wasn't able to correctly use the tool.
I've compiled hostapd with a taxonomy option to get the device string, but wasn't able to get the devices names.
Since there is no manual - what is the correct way of comparing the string + mac with the gperf database (or the wifi.py itself)? I guess there should be a tool exactly for this?
Looks like compiled wifi_signature only accept .pcap files as source.
Comparing just the string from hostapd_cli via simple manual search did not succeed, sadly. I've tried it on 2 xiaomi mi5 phones (they had different signatures, I guess because of different firmwares) and 1 nexus 5 phone.
Maybe I need to setup the hostapd with certain parameters to capture all the needed frames?
Thank you in advance for this amazing idea and database!
The text was updated successfully, but these errors were encountered: