Skip to content

Instantly share code, notes, and snippets.

@solus-hq
Forked from scottstanfield/wifiping
Created February 26, 2021 18:03
Show Gist options
  • Select an option

  • Save solus-hq/1a8f7ec3711d7840756da1cc3e5f9927 to your computer and use it in GitHub Desktop.

Select an option

Save solus-hq/1a8f7ec3711d7840756da1cc3e5f9927 to your computer and use it in GitHub Desktop.

Revisions

  1. @scottstanfield scottstanfield created this gist Aug 18, 2019.
    18 changes: 18 additions & 0 deletions wifiping
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    #!/usr/bin/env bash

    set -o errexit
    set -o pipefail

    # BSSID
    # CHANNEL
    # SSID
    # CtlRSSI

    cmd="/System/Library/PrivateFrameworks/Apple*.framework/Versions/Current/Resources/airport -I"

    printf 'RSI\tAP MAC\t\t\tSSID\n'
    while true; do
    $cmd | sed 's/:/|/' | grep -e 'BSSID' -e 'SSID' -e 'CtlRSSI' | cut -f2 -d '|' | paste -s
    sleep 0.5
    done