Table of Contents

Wireless Connections

Benutzte Tools

Erstellen einer Verbindung

Normale Verbindung

$ modprobe ath_pci (or modprobe ipw3945)
$ ip link set ath0 up
$ iwconfig ath0 essid <essid_name>
$ dhcpcd -t 10 -h <hostname> -N -D ath0

Monitoring Verbindung

Dazu muss ein wlan Device im Modus ‘monitor’ erstellt werden. Wenn ein Monitoring Device benutzt wird, sollte kein anderes Device mit einer normalen Verbindug vorhanden sein. Dazu wird das erste Device (ath0) - falls vorhanden - abgeschaltet. (Es kann alternativ auch mit `wlanconfig ath0 destroy` gelöscht werden).

Die folgenden Kommandos erstellen ein neues Device (monitor0) im Monitoring Modus.

$ modprobe ath_pci
$ ip link set ath0 up
$ wlanconfig monitor0 create wlandev wifi0 wlanmode monitor
$ ip link set monitor0 up
$ ip link set ath0 down

(Bei mir funktioniert es am besten, wenn ich ath0 zuerst auf aktiv (set ath0 up) setze. Ansonsten funktioniert das neue device (monitor0) bei mir nicht.

Danach können die Pakete aufgezeichnet werden. Dazu sollte der Kanal zuerst eingestellt werden. Die Kanäle können aufgelistet werden mit

$ wlanconfig monitor0 list scan

Danach kann der Kanal eingestellt werden und mit tcpdump protokolliert werden.

$ iwconfig monitor0 channel <nr>
$ tcpdump -i monitor0 -w /tmp/monitor_output tcp port http

Spezielle Verbindungen

public access an der ETH mit Linux

$ modprobe ath_pci
$ ip link set ath0 up
$ iwconfig ath0 essid public
$ dhcpcd -t 10 -h <hostname> -N -D ath0