Skip to content

Geofencing

OMG-MG edited this page Dec 28, 2023 · 5 revisions

Geofencing

With geofencing features, you can trigger or block actions within your O.MG Device. For example, your O.MG Cable can behave like a normal cable until it walks in the front door of the in-scope building. Or if the O.MG Device leaves the building, you can trigger self destruct to clear your payloads and loot. This can be achieved via logic added into your payload, especially the boot payload that runs every time the O.MG powers up.

Examples:

REM Boot Payload that erases & deactivates cable if it powers up outside the AcmeCorp office
IF_NOTPRESENT SSID="AcmeCorpWifi"
SELF-DESTRUCT
REM Boot Payload types "I am in the office!" if plugged in while at the AcmeCorp office
IF_PRESENT SSID="AcmeCorpWifi"
STRINGLN I am in the office! 

IF_PRESENT

Run the payload if a 2.4GHz SSID/BSSID is seen. This only scans once. Optionally, specify SIGNAL for a minimum signal strength, measured in RSSi, with a range from high to low of 00 - 99 (00 being the strongest signal).

IF_PRESENT SSID="SSIDNAME"

IF_PRESENT BSSID="AA:BB:CC:DD:EE:FF"

IF_NOTPRESENT

Run the payload if a 2.4GHz SSID/BSSID is NOT seen. This only scans once. Optionally, specify SIGNAL for a minimum signal strength, measured in RSSi, with a range of 00 - 99 (00 being the strongest signal).

IF_NOTPRESENT SSID="SSIDNAME"

IF_NOTPRESENT BSSID="AA:BB:CC:DD:EE:FF"

WAIT_FOR_PRESENT

Wait for a 2.4GHz SSID/BSSID to be present before continuing the rest of the payload. Specify MINUTES for a timeout, or it will run forever. Specify INTERVAL in seconds for how often the scan will happen. An INTERVAL less than 60sec tends to make it hard for most clients to retain a connection to the Web UI.

WAIT_FOR_PRESENT SSID="MySSID"

WAIT_FOR_PRESENT BSSID="AA:BB:CC:DD:EE:FF"

WAIT_FOR_PRESENT SSID="MySSID" MINUTES="2" INTERVAL="90"

WAIT_FOR_PRESENT BSSID="AA:BB:CC:DD:EE:FF" MINUTES="2" INTERVAL="90"

WAIT_FOR_NOTPRESENT

Wait for a 2.4GHz SSID/BSSID to NOT be present before continuing the rest of the payload. Specify MINUTES for a timeout, or it will run forever. Specify INTERVAL in seconds for how often the scan will happen. An INTERVAL less than 60sec tends to make it hard for most clients to retain a connection to the Web UI.

WAIT_FOR_NOTPRESENT SSID="MySSID"

WAIT_FOR_NOTPRESENT BSSID="AA:BB:CC:DD:EE:FF"

WAIT_FOR_NOTPRESENT SSID="MySSID" MINUTES="2" INTERVAL="90"

WAIT_FOR_NOTPRESENT BSSID="AA:BB:CC:DD:EE:FF" MINUTES="2" INTERVAL="90"