Python Forum
scapy wifi scan to get payload \ data
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
scapy wifi scan to get payload \ data
#1
hello ,
I want to scan WiFi and get from "probe request" the information Elements (IEs)

I'm able to get the probe request , and I can read the payload where I think the IEs is

if pkt.haslayer(Dot11):
        dot11_layer = pkt.getlayer(Dot11)
        #print(dot11_layer.encode())
        #if dot11_layer.addr2 and
        if pkt.subtype == 4:
            MAC = dot11_layer.addr2
            PayloadName = dot11_layer.payload.name # just to be sure , can be remove 
            Type = pkt.type
            SubType =  pkt.subtype
            payload = str(bytes(pkt.payload))
            print(payload? "  , payload )
but I get this :
payload? "  b"\x80\x00\x00\x00\xff\xff\xff\xff\xff\xff\x04\xf0!\x9c(s\x04\xf0!\x9c(s\xb0\xb0\x83!s\xd1w\x00\x00\x00d\x001\x04\x00\x06office\x01\x08\x82\x84\x8b\x96\x0c\x12\x18$\x03\x01\x01\x05\x04\x00\x01\x00\x00\x07\x06IL \x01\r\x14*\x01\x002\x040H`l-\x1a\xad\t\x03\xff\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00=\x16\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x7f\x08\x04\x00\x0f\x00\x00\x00\x00@\xbf\x0c\xb2y\x8b3\xaa\xff\x00\x00\xaa\xff\x00 \xc0\x05\x00\x00\x00\xfc\xff\xdd\x18\x00P\xf2\x02\x01\x01\x80\x00\x03\xa4\x00\x00'\xa4\x00\x00BC^\x00b2/\x00\xdd\t\x00\x03\x7f\x01\x01\x00\x00\xff\x7f\xdd\x08\x8c\xfd\xf0\x01\x01\x02\x01\x00\xdd\x16\x8c\xfd\xf0\x04\x00\x00ILQ\x03\x02\tr\x01\x8c\x16\x00\x00F\x00\x00\x000\x14\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x04\x01\x00\x00\x0f\xac\x02\x00\x00\xa0j(Z"
1. am I reading the correct value?
2. how can I decode\encode it so I can see\get the data ?

Thanks,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Scapy Basics Shivi 0 945 Sep-25-2023, 07:37 AM
Last Post: Shivi
  How to send a HTTP response packet using scapy JeffreyStoner 0 2,667 Apr-18-2022, 05:23 AM
Last Post: JeffreyStoner
  How to get every IP found by a Scapy traceroute? jao 0 2,460 Feb-06-2022, 01:00 AM
Last Post: jao
  Check Interenet connection type: 4G or WiFi Pavel_47 1 1,926 Jan-02-2022, 06:45 PM
Last Post: ndc85430
  can I set scan interval for scapy? korenron 0 2,330 Dec-31-2020, 01:43 PM
Last Post: korenron
  scapy trazom 1 2,634 Aug-30-2020, 04:17 PM
Last Post: micseydel
  network and scapy trazom 0 2,067 Aug-16-2020, 03:54 PM
Last Post: trazom
  Acces Wifi router and scan all the available networks through router jenkins43 3 2,766 Mar-21-2020, 09:35 PM
Last Post: jenkins43
  Python module wifi not showing all wireless networks marozsas 3 3,937 Jan-24-2020, 02:59 PM
Last Post: buran
  Doesn't give me the payload of grouped emails when used IMAPClient. pyseeker 0 1,757 Sep-12-2019, 03:19 AM
Last Post: pyseeker

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020