ascii’sche Airport Erkenntnisse von der Kommandozeile by crux
21 08 2007Ich bin ja hier fuer den non-fancy stuff zustaendig und mit W-LAN Instabilitaeten muss ich mich ja leider schon aus sportlich/beruflichen Gruenden beschaeftigen. So war es mir natuerlich eine grosze Freude, als mein alter Kumpel Pavel mich auf das kleine airport Kommandozeilenprogramm aus dem Apple 802.11 Framework hinwies.
Das airport tool scheint einfach nur ein mehr oder weniger vollstaendiges Interface zu den implementierten airport features zu sein. Man kann sich damit mal die aktuelle Feldstaerke anzeigen lassen, eine Netzwerkscan anstossen oder aber sich auch dezidiert in ein Netz einbuchen. Mal mit einer anderen MAC rumschnueffeln geht natuerlich auch. Wie ueblich bekommt man mit airport -h eine schoenes help listing:
-a --autojoin Join first available, trusted network from list
-p --applyprefs Apply settings as currently configured via System Preferences
-u --updateprefs Examine network preferences and repair if necessary
-z --disassociate Disassociate from any network
-i[<arg>] --ibss=[<arg>] Create IBSS
-f<arg> --file=<arg> Use <arg> as airport preference file instead of
/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
-m<arg> --mac=<arg> Use <arg> instead of current AirPort MAC Address
-x --xml Print info as XML
-o<arg> --oldencrypt=<arg> Encrypt string <arg> with Panther-style encryption
-s[<arg>] --scan=[<arg>] Perform a wireless broadcast scan.
Will perform a directed scan if the optional <arg> is provided
-r<arg> --repeats=<arg> Repeat the command the specified number of times
-A[<arg>] --associate=[<arg>] Associate to network.
Will prompt for network name if arg is not specified
and if necessary, for a password if the network is using WEP or WPA.
The following additional arguments may be specified with this command:
--bssid=<arg> Specify BSSID to associate with
--password=<arg> Specify a WEP key or WPA password
-I --getinfo Print current wireless status, e.g. signal info, BSSID, port type etc.
-P<arg> --psk=<arg> Create PSK from specified pass phrase and SSID.
The following additional arguments must be specified with this command:
--ssid=<arg> Specify SSID when creating a PSK
-S --showstack Print the current list of known networks
-c[<arg>] --channel=[<arg>] Set arbitrary channel on the card
-h --help Show this help
Bei mir findet sich das Programm tief im System vergraben, aber mit einem einfachen alias laesst sich das ja kommpensieren:
$ alias airport=/System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport
have fun and off you go








Issn Hackertool.
Bitte Beitrag löschen und site schliessen.
Der Innen-Fuzzi
hi…
wonderful post…