Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.58 KB | None | 0 0
  1. $ ls -l /usr/local/bin/ | grep airport
  2. lrwxr-xr-x 1 root admin 89 Jul 2 18:05 airport -> /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport
  3.  
  4. Usage: airport <interface> <verb> <options>
  5.  
  6. <interface>
  7. If an interface is not specified, airport will use the first AirPort interface on the system.
  8.  
  9. <verb is one of the following:
  10. prefs If specified with no key value pairs, displays a subset of AirPort preferences for
  11. the specified interface.
  12.  
  13. Preferences may be configured using key=value syntax. Keys and possible values are specified below.
  14. Boolean settings may be configured using 'YES' and 'NO'.
  15.  
  16. DisconnectOnLogout (Boolean)
  17. JoinMode (String)
  18. Automatic
  19. Preferred
  20. Ranked
  21. Recent
  22. Strongest
  23. JoinModeFallback (String)
  24. Prompt
  25. JoinOpen
  26. KeepLooking
  27. DoNothing
  28. RememberRecentNetworks (Boolean)
  29. RequireAdmin (Boolean)
  30. RequireAdminIBSS (Boolean)
  31. RequireAdminNetworkChange (Boolean)
  32. RequireAdminPowerToggle (Boolean)
  33. WoWEnabled (Boolean)
  34.  
  35. logger Monitor the driver's logging facility.
  36.  
  37. sniff If a channel number is specified, airportd will attempt to configure the interface
  38. to use that channel before it begins sniffing 802.11 frames. Captures files are saved to /tmp.
  39. Requires super user privileges.
  40.  
  41. debug Enable debug logging. A debug log setting may be enabled by prefixing it with a '+', and disabled
  42. by prefixing it with a '-'.
  43.  
  44. AirPort Userland Debug Flags
  45. DriverDiscovery
  46. DriverEvent
  47. Info
  48. SystemConfiguration
  49. UserEvent
  50. PreferredNetworks
  51. AutoJoin
  52. IPC
  53. Scan
  54. 802.1x
  55. Assoc
  56. Keychain
  57. RSNAuth
  58. WoW
  59. P2P
  60. Roam
  61. BTCoex
  62. AllUserland - Enable/Disable all userland debug flags
  63.  
  64. AirPort Driver Common Flags
  65. DriverInfo
  66. DriverError
  67. DriverWPA
  68. DriverScan
  69. AllDriver - Enable/Disable all driver debug flags
  70.  
  71. AirPort Driver Vendor Flags
  72. VendorAssoc
  73. VendorConnection
  74. AllVendor - Enable/Disable all vendor debug flags
  75.  
  76. AirPort Global Flags
  77. LogFile - Save all AirPort logs to /var/log/wifi.log
  78.  
  79. <options> is one of the following:
  80. No options currently defined.
  81.  
  82. Examples:
  83.  
  84. Configuring preferences (requires admin privileges)
  85. sudo airport en1 prefs JoinMode=Preferred RememberRecentNetworks=NO RequireAdmin=YES
  86.  
  87. Sniffing on channel 1:
  88. airport en1 sniff 1
  89.  
  90.  
  91. LEGACY COMMANDS:
  92. Supported arguments:
  93. -c[<arg>] --channel=[<arg>] Set arbitrary channel on the card
  94. -z --disassociate Disassociate from any network
  95. -I --getinfo Print current wireless status, e.g. signal info, BSSID, port type etc.
  96. -s[<arg>] --scan=[<arg>] Perform a wireless broadcast scan.
  97. Will perform a directed scan if the optional <arg> is provided
  98. -x --xml Print info as XML
  99. -P --psk Create PSK from specified pass phrase and SSID.
  100. The following additional arguments must be specified with this command:
  101. --password=<arg> Specify a WPA password
  102. --ssid=<arg> Specify SSID when creating a PSK
  103. -h --help Show this help
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement