Airdriver-ng
Aus Wardriving-Forum.de Enzyklopädie
Inhaltsverzeichnis |
[Bearbeiten] Airdriver-ng
[Bearbeiten] Beschreibung
Treiberinstallationen werden dank airdriver-ng sehr erleichtert. Das Tool kann angeschlossene Adapter erkennen hält eine Installationsroutine für deren Treiber vorrätig. Zusätzlich können die Treiber geladen, entladen und inkl. Patches für Monitor Mode und Injection, installiert und deinstalliert werden.
Hier ist eine komplette Liste von Komandos, die von dem Script unterstützt werden:
* Kein Kommando: Das starten von airdriver-ng ohne Komanos zeigt die Kernel-Nummer und die gültigen airdriver-ng Komandos. * Installed: Dieses Kommando listet die wireless stacks und Treiber auf, die zur zeit instaliert sind. Das sind NICHT die "stacks"/Treiber die zur Zeit geladen sind (laufen). Benutze dieses Komando um zu erfahren, welche Treiber instaliert sind. Dies sind die Treiber, die NICHT Teil des Kernels sind. * Loaded: Dieses Kommando listet die "wireless stacks" und treiber welche gerade geladen (laufen) sind ins memory. * Load: Dieses Kommando läd den angegebenen Treiber in das memory. The driver number is obtained from the output of the "installed" command. Use this command to load the desired driver into memory if it did not load when you plugged in your wireless device or booted up. * Unload: This command removes (unloads) the specified driver from memory. The driver number is obtained from the output of the "loaded" command. This is sometimes required when recompiling or installing a new version of the driver. Normally a reload should be sufficient after installing a new version. * Reload: This command reloads the specified driver by removing it from memory then loading it again. The driver number is obtained from the output of the "loaded" command. Use this after installing a new version of the driver or it can sometimes help if your driver is misbehaving. * Install: This command installs the specified driver on your system and loads it into memory. The driver number is obtained from the output of the "loaded" command. All the required steps are taken care of for you including obtaining the driver sources, obtaining injection patches, applying patches, compiling and then loading it into memory. This is one the simplest and easiest methods of ensuring your driver is capable of injection. You may also need to install a related stack for your driver to be fully functional. * Remove: This command removes the specified driver from your system. This removes the module from memory and the module tree. Use this if you wish to remove the driver from your system permanently. * Install_Stack: This command installs the specified stack on your system and loads it into memory. The driver number is obtained from the output of the "loaded" command. All the required steps are taken care of for you including obtaining the stack sources, obtaining injection patches, applying patches, compiling and then loading it into memory. This is one the simplest and easiest methods of ensuring your system is capable of injection. * Remove_Stack: This command removes the specified stack from your system. This removes the stack from memory and the module tree. * Details: This command lists detailed information about the module. The driver number is obtained from the output of the "installed" command. This especially valuable to confirm you are using the correct version and when it was installed. The install date is located after the file name. This can be used to confirm you are in fact using the the recently compiled module. A common problem is that one of the required modules was compiled on a different date. This normally means you have two different versions of the same modules and the result is that the driver fails. If this happens, delete all the modules and reinstall or recompile. * Detect: This command is used to determine which wireless devices are connect to your system. There is no precise method of doing these types of checks. Consider this more as educated guesses rather then definitive information. Having said that, it will generally provide very useful information.
[Bearbeiten] Praxis Anwendung
airdriver-ng <command> [driver number | driver name]
Optionen:
* supported - listet alle unterstützten Treiber auf * kernel - listet alle "in-kernel" Treiber auf * installed - listet alle installierten Treiber auf * loaded - listet alle geladenen Treiebr auf
* load <drivernum> - läd einen Treiber * unload <drivernum> - unloads a driver * reload <drivernum> - reloads a driver * install <drivernum> - installiert einen Treiber * remove <drivernum> - löscht einen Treiber
* remove_stack <num> - löscht einen stack * install_stack <num> - installiert einen stack
* details <drivernum> - zeigt Treiber Deteils an * detect - spürt wireless karten auf
[Bearbeiten] Supported Befehl
Dieser Befehl listet die aktuell von airdriver-ng unterstützten Stacks und Treiber. Wenn euer Treiber hier nicht auftaucht wird er aktuell von airdriver noch nicht unterstützt.
Nicht verwechseln: Es handelt sich hier nicht um die stacks und Treiber die auf dem System installiert sind.
airdriver-ng supported
Das System antwortet:
Following stacks are supported: 0. IEEE80211 1. IEEE80211 Softmac 2. mac80211 Following drivers are supported: 0. ACX100/111 - IEEE80211 1. ADMtek 8211 - IEEE80211 2. ADMtek 8211 - mac80211 3. Atmel at76c50x - IEEE80211 4. Broadcom 4300 - IEEE80211 5. Broadcom 4300 - mac80211 6. Cisco/Aironet 802.11 - IEEE80211 Softmac 7. HostAP - IEEE80211 8. Intel Pro Wireless 2100 B - IEEE80211 9. Intel Pro Wireless 2200 B/G - IEEE80211 10. Intel Pro Wireless 3945 A/B/G - IEEE80211 11. Intel Pro Wireless 3945 A/B/G - raw mode 12. Intel Pro Wireless 3945 A/B/G - mac80211 13. Intel Pro Wireless 4965 A/B/G/N - mac80211 14. Lucent Hermes and Prism II - IEEE80211 15. Madwifi[-ng] - IEEE80211 16. Prism54 - IEEE80211 17. Prism54 - mac80211 18. Ralink rt2400 (legacy) 19. Ralink rt2400 (rt2x00) - IEEE80211 20. Ralink rt2400 (rt2x00) - mac80211 21. Ralink rt2500 (legacy) 22. Ralink rt2500 (rt2x00) - IEEE80211 23. Ralink rt2500 (rt2x00) - mac80211 24. Ralink rt2570 (legacy) 25. Ralink rt2570 (rt2x00) - IEEE80211 26. Ralink rt2570 (rt2x00) - mac80211 27. Ralink rt61 (legacy) 28. Ralink rt61 (rt2x00) - IEEE80211 29. Ralink rt61 (rt2x00) - mac80211 30. Ralink rt73 (legacy) 31. Ralink rt73 (rt2x00) - IEEE80211 32. Ralink rt73 (rt2x00) - mac80211 33. Realtek rtl8180 - custom 34. Realtek rtl8187 - custom 35. Realtek rtl8187 - mac80211 36. WLAN-NG - IEEE80211 37. Xircom Creditcard Netwave - IEEE80211 38. ZyDAS 1201 - IEEE80211 Softmac 39. ZyDAS 1211 - IEEE80211 Softmac 40. ZyDAS 1211rw - IEEE80211 Softmac 41. ZyDAS 1211rw - mac80211 42. NDIS Wrapper
Merkt euch die passende Nummer vor dem Treiber. Diese benötigen wir zur Installation des gewünschten Treibers.
[Bearbeiten] Kernel Befehl
Der Kernel Befehl zeigt alle wireless stacks und wireless Treiber an, die in den Kernel compiliert wurden. Es können keine Treiber in den Kernel compiliert werden wenn diese schon vorhanden sind. Man muß dann zuerst den Kernel ohne diese Treiber recompilieren.
airdriver-ng kernel
Das System antwortet:
Found following stacks in the Kernel: Found following drivers in the Kernel:
Bei diesem Beispiel sind keine stacks oder Treiber im Kernel implementiert.
[Bearbeiten] Installed Befehl
airdriver-ng installed
Das System antwortet:
Found following stacks installed: 0. IEEE80211 1. IEEE80211 Softmac 2. mac80211 Found following drivers installed: 1. Broadcom 4300 - IEEE80211 2. HostAP - IEEE80211 3. Intel Pro Wireless 2100 B - IEEE80211 4. Intel Pro Wireless 2200 B/G - IEEE80211 6. Madwifi[-ng] - IEEE80211 7. Prism54 - IEEE80211 9. Realtek rtl8187 - custom 13. Ralink rt73 - IEEE80211 Softmac 18. Intel Pro Wireless 3945 A/B/G - raw mode - mac80211
Merkt euch die passende Nummer vor dem Treiber. Diese benötigen wir um den gewünschten Treibers zu laden.
[Bearbeiten] Loaded Befehl
airdriver-ng loaded
Das System antwortet:
Found following stacks loaded (as module): Found following drivers loaded (as module): 15. Madwifi[-ng] - IEEE80211 34. Realtek rtl8187 - custom
Merkt euch die Nummer vor dem Treiber, diese brauchen wir im weiteren Verlauf noch.
[Bearbeiten] Load Befehl
airdriver-ng load 34
Erklärung
* 34 ist die Treiber Nummer, enthalten in den "installed" kommando Ergebnissen.
Das System antwortet:
Driver "Realtek rtl8187" specified for loading. Loaded driver "Realtek rtl8187" successfully
[Bearbeiten] Unload Befehl
airdriver-ng unload 34
Erklärung
* 34 ist die Treiber Nummer, enthalten in den "loaded" kommando Ergebnissen.
Das System antwortet:
Driver "Realtek rtl8187" specified for unloading. Unloaded driver "Realtek rtl8187" successfully
[Bearbeiten] Reload Befehl
airdriver-ng reload 34
Erklärung
* 34 ist die Treiber Nummer, enthalten in den "loaded" kommando Ergebnissen.
Das System antwortet:
Driver "Realtek rtl8187" specified for reloading. Reloaded driver "Realtek rtl8187" successfully
[Bearbeiten] Install Befehl
airdriver-ng install 34
Erklärung
* 34 ist die Treiber Nummer, enthalten in den "supported" kommando Ergebnissen.
Das System antwortet:
Driver "Realtek rtl8187" specified for installation. 1. Getting the source... 2. Extracting the source... 3. Getting the patch... 4. Patching the source... 5. Compiling the source... 6. Installing the modules... Running "depmod -ae"... Installed driver "Realtek rtl8187" successfully Loaded driver "Realtek rtl8187" successfully
[Bearbeiten] Remove Befehl
airdriver-ng remove 34
Erklärung:
* 34 ist die Treiber Nummer, enthalten in den "installed" kommando Ergebnissen.
Das System antwortet:
Driver "Realtek rtl8187" specified for removing. Starting to remove "Realtek rtl8187" driver rm: remove regular file `/lib/modules/2.6.21-1.3228.fc7/kernel/drivers/net/wireless/rtl8187/r8187.ko'? y Running "depmod -ae"... Removed driver "Realtek rtl8187" successfully
[Bearbeiten] Install_Stack Befehl
airdriver-ng install_stack 0
Erklärung:
* 0 is the stack number obtained from the "supported" command results.
Das System antwortet:
Stack "IEEE80211" specified for installation. 1. Getting the source... 2. No extraction needed. 3. Getting the patch... 4. Patching the source... 5. Compiling the source... 6. Installing the modules... Running "depmod -ae"... Installed stack "IEEE80211" successfully You need to reload the complete stack, or just reboot.
[Bearbeiten] Remove_Stack Befehl
airdriver-ng remove_stack 0
Erklärung:
* 0 is the stack number obtained from the "installed" command results.
Das System antwortet:
Stack "IEEE80211" specified for removing. Starting to remove "IEEE80211" driver rm: remove regular file `/lib/modules/2.6.20-1.2962.fc6/kernel/net/ieee80211/ieee80211.ko'? y rm: remove regular file `/lib/modules/2.6.20-1.2962.fc6/kernel/net/ieee80211/ieee80211_crypt.ko'? y rm: remove regular file `/lib/modules/2.6.20-1.2962.fc6/kernel/net/ieee80211/ieee80211_crypt_wep.ko'? y rm: remove regular file `/lib/modules/2.6.20-1.2962.fc6/kernel/net/ieee80211/ieee80211_crypt_tkip.ko'? y rm: remove regular file `/lib/modules/2.6.20-1.2962.fc6/kernel/net/ieee80211/ieee80211_crypt_ccmp.ko'? y Running "depmod -ae"... Removed stack "IEEE80211" successfully
[Bearbeiten] Details Befehl
airdriver-ng details 34
Erklärung:
* 34 ist die Treiber Nummer, enthalten in den "installed" kommando Ergebnissen.
Das System antwortet:
Driver details for: "Realtek rtl8187" Compiled into kernel: No Installed: YES Loaded: YES Modules: r8187 Files: /lib/modules/2.6.21-1.3228.fc7/kernel/drivers/net/wireless/rtl8187/r8187.ko 2007-07-22 12:53 version: V 1.1 depends: ieee80211-rtl vermagic: 2.6.21-prep SMP mod_unload 686 4KSTACKS For more information see: http://www.aircrack-ng.org/doku.php?id=r8187
[Bearbeiten] Detect Befehl
airdriver-ng detect
Das System antwortet:
Found "Realtek rtl8187" device: (r8187) Bus 001 Device 002: ID 0bda:8187 Realtek Semiconductor Corp. Found "Madwifi[-ng]" device: (ath_pci) 01:00.0 Ethernet controller: Atheros Communications, Inc. AR5212 802.11abg NIC (rev 01) USB devices (generic detection): Bus 001 Device 003: ID 148f:2573 Ralink Technology, Corp. Bus 001 Device 002: ID 0bda:8187 Realtek Semiconductor Corp.
[Bearbeiten] Diagnose bei Problemen
Bei anhaltenden Problemen sind folgende Befehle hilfreich.
dmesg
lsusbund
iwconfig