Skip to content

Analyses IEEE802.11 probe request frames to approximate crowd size

Notifications You must be signed in to change notification settings

litmus-yhack/monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Litmus: monitor

Analyses IEEE802.11 probe request frames to approximate attendance

Installing dependencies

This project is written in Python 3 and depends on the following:

  • requests

Running monitor on macOS

  1. Use the Airport CLI, found at /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
  2. Dissociate interface from any AP with airport -z
  3. Capture link-level 802.11 frames with airport en0 sniff (where en0 is most likely your wireless interface - check with ifconfig)
  4. Analyse captured binary frames for Probe Request packets using tcpdump -s 24 -e -r /tmp/airportSniffxxxxx.cap type mgt subtype probe-req

Alternately, once dissociated from an AP, run tcpdump -s 256 -e -p -Ini en0 type mgt subtype probe-req and it will dump captured frames to stdout.

Running monitor on Linux

It's important to first confirm both the physical device layer and driver support monitor mode (specifically capturing management probe request frames). Something like iw list should do it.

  1. Create a new wireless interface in monitor mode and delete the managed mode interface
  2. Bring the new monitor interface up and select a channel (or cycle through channels)
  3. Run tcpdump to capture Probe Request Management frames

Putting this together

Once we've established which OS the monitor is to be deployed on, it's a matter of having a Python script run a data frame capture in monitor mode for some interval of time, parse the results of tcpdump, set the interface back up to managed mode on an AP, and push a data update to the Litmus API server.

Sources:

A related project: schollz/find-lf

About

Analyses IEEE802.11 probe request frames to approximate crowd size

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages