-
-
Notifications
You must be signed in to change notification settings - Fork 311
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
Field simplification for collections (arrays, vectors) #531
Comments
Here is a snip of what the API returns from the {
"kismet.device.base.macaddr": "AA:BB:CC:0F:47:D5",
"dot11.device": {
"dot11.device.last_bssid": "AA:BB:CC:0F:47:D5",
"dot11.device.responded_ssid_map": [
{
"dot11.advertisedssid.wps_device_name": "Xfinity Wireless Gateway",
}
],
"dot11.device.last_beacon_timestamp": 1727982007,
"dot11.device.last_probed_ssid_record": {
"dot11.probedssid.last_time": 1727981980,
"dot11.probedssid.ssid": "MYSSID",
},
"dot11.device.num_associated_clients": 51,
"dot11.device.advertised_ssid_map": [
{
"dot11.advertisedssid.ssidlen": 7,
"dot11.advertisedssid.maxrate": 144.400000,
}
],
"dot11.device.client_disconnects": 1,
},
"kismet.device.base.manuf": "Vantiva USA LLC",
} This works (example): {"fields":["dot11.device/dot11.device.last_probed_ssid_record/dot11.probedssid.ssid"]} This does not work (example): {"fields":["dot11.device/dot11.device.responded_ssid_map/dot11.advertisedssid.wps_device_name"]}
You are trying to drill down into Having tried and tried it seems you have to return Kismet's docs do not seem to address this. All of this is no help to you, just validation that you do not appear to be doing anything wrong. With a little luck, the post after this one will be someone swooping in to dunk on me and say, "No, you just need to do this...". Using the snip above, I can get to every individual value that has a ✅. Everything with a ❌ requires me to get the parent and parse it.
|
Hello @itdojo, thank you for the detailed response. I expected that it is something Kismet wouldn't support, but I wanted to double-check with the community, perhaps, there was some undocumented way of getting these fields. |
I am pulling the JSON of devices using Kismet API and I am trying to extract some fields from the collections objects such as:
"dot11.device": { ....., "dot11.device.advertised_ssid_map: [ { ......, "dot11.advertisedssid.wps_device_name": "Asus Router", ...... } ], ..... }
I have tried using following string in my "fields" array: "dot11.device/dot11.device.responded_ssid_map/dot11.advertisedssid.wps_device_name" and it didn't produce any result.
Expected result
Provided I put following in my "fields" array:
"fields": ["dot11.device/dot11.device.responded_ssid_map/dot11.advertisedssid.wps_device_name"]
I am expecting to get back the following structure:
"dot11.device": { ..... "dot11.device.advertised_ssid_map: [ { "dot11.advertisedssid.wps_device_name": "Asus Router", }, { "dot11.advertisedssid.wps_device_name": "Another Router", }, { "dot11.advertisedssid.wps_device_name": "And another Router", } ] ..... }
Please let me know if that is something Kismet supports. I didn't find any examples or mentions of this functionality in documentation, yet it seems when using regex filtering for fields, something like that would work.
The text was updated successfully, but these errors were encountered: