Skip to content

Instantly share code, notes, and snippets.

@aquaxp
Last active May 22, 2017 00:47
Show Gist options
  • Select an option

  • Save aquaxp/5236218 to your computer and use it in GitHub Desktop.

Select an option

Save aquaxp/5236218 to your computer and use it in GitHub Desktop.

Revisions

  1. aquaxp renamed this gist Sep 27, 2016. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions OsxAirport.md → macOS_Airport.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    #OS X Airport
    ##Mac OS X WiFi Wireless Scanner
    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    # macOS Airport
    ## macOS WiFi Wireless Scanner
    If you are looking for a basic WiFi scanner for macOS then the command line airport utility may fit your needs.
    The utility is located at:
    `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport`

  2. aquaxp revised this gist Mar 25, 2013. 1 changed file with 5 additions and 13 deletions.
    18 changes: 5 additions & 13 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,7 @@ Typing the above command path can be avoided by creating a symbolic link to the
    This will allow you to simply type `airport` in the terminal window to execute the command.

    ##Display Current Status of Wireless
    `airport -I`

    Will provide information about the current wireless connection.
    `airport -I` Will provide information about the current wireless connection.

    $ airport -I
    agrCtlRSSI: -64
    @@ -32,9 +30,7 @@ Will provide information about the current wireless connection.
    channel: 1

    ##Display All Nearby Access Points
    `airport -s`

    Will perform a wireless broadcast scan of nearby wireless devices.
    `airport -s` Will perform a wireless broadcast scan of nearby wireless devices.

    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    @@ -45,9 +41,7 @@ Will perform a wireless broadcast scan of nearby wireless devices.
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    `airport -s -r 99`

    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.
    `airport -s -r 99` Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.

    $ airport -s -r 99

    @@ -66,10 +60,8 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    ##Disassociate From A Wireless Network
    `airport -z`

    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.
    `airport -z` Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X
    1. use `airport -z` to disconnect from the wireless network (required to change the MAC address)
    2. `sudo ifconfig en1 lladdr 00:00:00:00:00:00:01` (will require root password)
    2. next `sudo ifconfig en1 lladdr 00:00:00:00:00:00:01` (will require root password)
  3. aquaxp revised this gist Mar 25, 2013. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,15 @@
    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport`
    Typing the above command path can be avoided by creating a symbolic link to the command in /user/sbin/ by copying and pasting below into a terminal window.

    Typing the above command path can be avoided by creating a symbolic link to the command in `/user/sbin/` by copying and pasting below into a terminal window.

    `sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport`
    This will allow you to simply type `airport` in the terminal window to execute the command.

    ##Display Current Status of Wireless
    `airport -I`

    Will provide information about the current wireless connection.

    $ airport -I
    @@ -30,6 +33,7 @@ Will provide information about the current wireless connection.

    ##Display All Nearby Access Points
    `airport -s`

    Will perform a wireless broadcast scan of nearby wireless devices.

    $ airport -s
    @@ -42,6 +46,7 @@ Will perform a wireless broadcast scan of nearby wireless devices.

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    `airport -s -r 99`

    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.

    $ airport -s -r 99
    @@ -62,6 +67,7 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point

    ##Disassociate From A Wireless Network
    `airport -z`

    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X
  4. aquaxp revised this gist Mar 25, 2013. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -2,13 +2,13 @@
    ##Mac OS X WiFi Wireless Scanner
    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
    `/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport`
    Typing the above command path can be avoided by creating a symbolic link to the command in /user/sbin/ by copying and pasting below into a terminal window.
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    This will allow you to simply type airport in the terminal window to execute the command.
    `sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport`
    This will allow you to simply type `airport` in the terminal window to execute the command.

    ##Display Current Status of Wireless
    airport -I
    `airport -I`
    Will provide information about the current wireless connection.

    $ airport -I
    @@ -29,7 +29,7 @@ Will provide information about the current wireless connection.
    channel: 1

    ##Display All Nearby Access Points
    airport -s
    `airport -s`
    Will perform a wireless broadcast scan of nearby wireless devices.

    $ airport -s
    @@ -41,7 +41,7 @@ Will perform a wireless broadcast scan of nearby wireless devices.
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    airport -s -r 99
    `airport -s -r 99`
    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.

    $ airport -s -r 99
    @@ -61,7 +61,7 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    ##Disassociate From A Wireless Network
    airport -z
    `airport -z`
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X
  5. aquaxp revised this gist Mar 25, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -65,5 +65,5 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X
    * use `airport -z` to disconnect from the wireless network (required to change the MAC address)
    * `sudo ifconfig en1 lladdr 00:00:00:00:00:00:01` (will require root password)
    1. use `airport -z` to disconnect from the wireless network (required to change the MAC address)
    2. `sudo ifconfig en1 lladdr 00:00:00:00:00:00:01` (will require root password)
  6. aquaxp revised this gist Mar 25, 2013. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -16,16 +16,16 @@ Will provide information about the current wireless connection.
    agrExtRSSI: 0
    agrCtlNoise: -91
    agrExtNoise: 0
    state: running
    op mode: station
    state: running
    op mode: station
    lastTxRate: 48
    maxRate: 54
    lastAssocStatus: 0
    802.11 auth: open
    link auth: wpa-psk
    BSSID: 0:b:55:6:6f:2f
    SSID: SSID
    MCS: -1
    BSSID: 0:b:55:6:6f:2f
    SSID: SSID
    MCS: -1
    channel: 1

    ##Display All Nearby Access Points
    @@ -65,5 +65,5 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X
    1) use airport -z to disconnect from the wireless network (required to change the MAC address)
    2) sudo ifconfig en1 lladdr 00:00:00:00:00:00:01 (will require root password)
    * use `airport -z` to disconnect from the wireless network (required to change the MAC address)
    * `sudo ifconfig en1 lladdr 00:00:00:00:00:00:01` (will require root password)
  7. aquaxp revised this gist Mar 25, 2013. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # OS X Airport
    #OS X Airport
    ##Mac OS X WiFi Wireless Scanner
    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    @@ -60,10 +60,10 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Fairfield_Inn 00:22:7f:0c:75:29 -70 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    ##Disassociate From A Wireless Network**
    ##Disassociate From A Wireless Network
    airport -z
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X**
    ##How To Spoof A MAC Address On Mac OS X
    1) use airport -z to disconnect from the wireless network (required to change the MAC address)
    2) sudo ifconfig en1 lladdr 00:00:00:00:00:00:01 (will require root password)
  8. aquaxp revised this gist Mar 25, 2013. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -10,6 +10,7 @@ This will allow you to simply type “airport” in the terminal window to execu
    ##Display Current Status of Wireless
    airport -I
    Will provide information about the current wireless connection.

    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    @@ -30,6 +31,7 @@ Will provide information about the current wireless connection.
    ##Display All Nearby Access Points
    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.

    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    @@ -39,8 +41,9 @@ Will perform a wireless broadcast scan of nearby wireless devices.
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    ~$ airport -s -r 99
    airport -s -r 99
    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.

    $ airport -s -r 99

    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
  9. aquaxp revised this gist Mar 25, 2013. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,6 @@ This will allow you to simply type “airport” in the terminal window to execu
    ##Display Current Status of Wireless
    airport -I
    Will provide information about the current wireless connection.

    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    @@ -32,17 +31,18 @@ Will provide information about the current wireless connection.
    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.
    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    ~$ airport -s -r 99
    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.
    $ airport -s -r 99

    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
  10. aquaxp revised this gist Mar 25, 2013. No changes.
  11. aquaxp revised this gist Mar 25, 2013. No changes.
  12. aquaxp revised this gist Mar 25, 2013. 1 changed file with 6 additions and 5 deletions.
    11 changes: 6 additions & 5 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -2,14 +2,15 @@
    ##Mac OS X WiFi Wireless Scanner
    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
    Typing the above command path can be avoided by creating a symbolic link to the command in /user/sbin/ by copying and pasting below into a terminal window.
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    This will allow you to simply type “airport” in the terminal window to execute the command.

    ##Display Current Status of Wireless
    airport -I
    airport -I
    Will provide information about the current wireless connection.

    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    @@ -28,7 +29,7 @@ Will provide information about the current wireless connection.
    channel: 1

    ##Display All Nearby Access Points
    airport -s
    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.
    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    @@ -57,7 +58,7 @@ Will repeat the scan 99 times and is a quick way to scan for nearby access point
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    ##Disassociate From A Wireless Network**
    airport -z
    airport -z
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    ##How To Spoof A MAC Address On Mac OS X**
  13. aquaxp revised this gist Mar 25, 2013. 1 changed file with 38 additions and 40 deletions.
    78 changes: 38 additions & 40 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -7,61 +7,59 @@ Typing the above command path can be avoided by creating a symbolic link to the
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    This will allow you to simply type “airport” in the terminal window to execute the command.

    **Display Current Status of Wireless**
    ##Display Current Status of Wireless
    airport -I
    Will provide information about the current wireless connection.
    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    agrCtlNoise: -91
    agrExtNoise: 0
    state: running
    op mode: station
    lastTxRate: 48
    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    agrCtlNoise: -91
    agrExtNoise: 0
    state: running
    op mode: station
    lastTxRate: 48
    maxRate: 54
    lastAssocStatus: 0
    802.11 auth: open
    link auth: wpa-psk
    lastAssocStatus: 0
    802.11 auth: open
    link auth: wpa-psk
    BSSID: 0:b:55:6:6f:2f
    SSID: SSID
    MCS: -1
    channel: 1

    **Display All Nearby Access Points**

    ##Display All Nearby Access Points
    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.
    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE
    Poor Man’s Mac OS X Wireless Site Survey Software
    ~$ airport -s -r 99
    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    ##Poor Man’s Mac OS X Wireless Site Survey Software
    ~$ airport -s -r 99
    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.
    $ airport -s -r 99
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -75 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -78 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -70 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE
    $ airport -s -r 99
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    **Disassociate From A Wireless Network**
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -75 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -78 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -70 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    ##Disassociate From A Wireless Network**
    airport -z
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    **How To Spoof A MAC Address On Mac OS X**

    ##How To Spoof A MAC Address On Mac OS X**
    1) use airport -z to disconnect from the wireless network (required to change the MAC address)
    2) sudo ifconfig en1 lladdr 00:00:00:00:00:00:01 (will require root password)
  14. aquaxp revised this gist Mar 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # OS X Airport
    ##Mac OS X WiFi Wireless Scanner

    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
  15. aquaxp revised this gist Mar 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    **Mac OS X WiFi Wireless Scanner**
    ##Mac OS X WiFi Wireless Scanner

    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
  16. aquaxp revised this gist Mar 25, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,6 @@ sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Curre
    This will allow you to simply type “airport” in the terminal window to execute the command.

    **Display Current Status of Wireless**

    airport -I
    Will provide information about the current wireless connection.
    $ airport -I
  17. aquaxp revised this gist Mar 25, 2013. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ Typing the above command path can be avoided by creating a symbolic link to the
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    This will allow you to simply type “airport” in the terminal window to execute the command.

    *Display Current Status of Wireless*
    **Display Current Status of Wireless**

    airport -I
    Will provide information about the current wireless connection.
    @@ -28,7 +28,7 @@ lastAssocStatus: 0
    MCS: -1
    channel: 1

    *Display All Nearby Access Points*
    **Display All Nearby Access Points**

    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.
    @@ -57,12 +57,12 @@ Fairfield_Inn 00:22:7f:0c:75:79 -78 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -70 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    *Disassociate From A Wireless Network*
    **Disassociate From A Wireless Network**

    airport -z
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    *How To Spoof A MAC Address On Mac OS X*
    **How To Spoof A MAC Address On Mac OS X**

    1) use airport -z to disconnect from the wireless network (required to change the MAC address)
    2) sudo ifconfig en1 lladdr 00:00:00:00:00:00:01 (will require root password)
  18. aquaxp revised this gist Mar 25, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion OsxAirport.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    *Mac OS X WiFi Wireless Scanner*
    **Mac OS X WiFi Wireless Scanner**

    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
  19. aquaxp renamed this gist Mar 25, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  20. aquaxp created this gist Mar 25, 2013.
    68 changes: 68 additions & 0 deletions OsxAirport
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,68 @@
    *Mac OS X WiFi Wireless Scanner*

    If you are looking for a basic WiFi scanner for Mac OS X then the command line airport utility may fit your needs.
    The utility is located at:
    /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
    Typing the above command path can be avoided by creating a symbolic link to the command in /user/sbin/ by copying and pasting below into a terminal window.
    sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/sbin/airport
    This will allow you to simply type “airport” in the terminal window to execute the command.

    *Display Current Status of Wireless*

    airport -I
    Will provide information about the current wireless connection.
    $ airport -I
    agrCtlRSSI: -64
    agrExtRSSI: 0
    agrCtlNoise: -91
    agrExtNoise: 0
    state: running
    op mode: station
    lastTxRate: 48
    maxRate: 54
    lastAssocStatus: 0
    802.11 auth: open
    link auth: wpa-psk
    BSSID: 0:b:55:6:6f:2f
    SSID: SSID
    MCS: -1
    channel: 1

    *Display All Nearby Access Points*

    airport -s
    Will perform a wireless broadcast scan of nearby wireless devices.
    $ airport -s
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE
    Poor Man’s Mac OS X Wireless Site Survey Software
    ~$ airport -s -r 99
    Will repeat the scan 99 times and is a quick way to scan for nearby access points without having to retype the command while walking.
    $ airport -s -r 99
    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -76 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -81 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -69 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -54 1 NONE

    SSID BSSID RSSI CHANNEL SECURITY (auth/unicast/group)
    Fairfield_Inn 00:22:7f:0c:75:99 -75 11 NONE
    Fairfield_Inn 00:22:7f:0c:71:59 -62 11 NONE
    Fairfield_Inn 00:22:7f:0c:75:79 -78 1 NONE
    Fairfield_Inn 00:22:7f:0c:75:29 -70 1 NONE
    Fairfield_Inn 00:22:7f:0c:74:c9 -62 1 NONE

    *Disassociate From A Wireless Network*

    airport -z
    Will disassociate (disconnect) from the wireless network without having to disable AirPort using the “Turn AirPort Off” feature via the MAC OS X graphical interface.

    *How To Spoof A MAC Address On Mac OS X*

    1) use airport -z to disconnect from the wireless network (required to change the MAC address)
    2) sudo ifconfig en1 lladdr 00:00:00:00:00:00:01 (will require root password)