当前位置: 首页 > 工具软件 > Aircrack-ng > 使用案例 >

android运行iwconfig命令,Aircrack-ng For Android

常博裕
2023-12-01

This repository is a port of the Aircrack-ng suite (except scripts) for Android. This port is done by KrisWebDev and is not "afiliated" with the Aircrack-ng.org team.

Aircrack-ng

Aircrack-ng is an 802.11 WEP and WPA-PSK keys cracking program that can recover keys once enough data packets have been captured. It implements the standard FMS attack along with some optimizations like KoreK attacks, as well as the PTW attack, thus making the attack much faster compared to other WEP cracking tools.

Running Aircrack-ng on Android (precompiled)

Pre-requisites

Device with WiFi chipset, firmware & driver that supports monitor-mode

As of mid-2015, only mass-market compatible devices are thoses having dedicated Broadcom 4329 or Broadcom 4330 chipsets (Samsung Galaxy S1, Samsung Galaxy S2, Nexus 7, Huawei Honor). Bcmon team has developed firmware and driver hacks for these chipsets. More recent devices have WiFi digital signal processed by the ARM CPU (Qualcomm or Samsung) and there is no publicily knowed monitor mode hacks for these devices at this time.

Otherwise, go look for USB WiFi stick known to provide WiFi monitor-mode and injection support on Android.

Wireless extensions enabled in Android kernel

That's normally bundled with the loaders/kernels below.

Monitor-mode firmware & driver loader

Broadcom 4329: Bcmon won't load on CyanogenMod > v7 due to the move from bcm4329 driver to bcmdhd. For Galaxy S1, use PwnAir on a KitKat ROM (or port the open source PwnAir kernel to more recent ROM following PwnAir kernel build instructions at the end of the XDA thread).

Broadcom 4330: Use bcmon app (not maintained anymore by their owners) to load the monitor-mode firmware and driver.

Android SDK platform-tools installed

Install

Load the monitor-mode firmware/driver

Automated: Install bcmon app (bcm4330) or PwnAir kernel+app (Samsung Galaxy S1 with KitKat ROM) and load the monitor-mode firmware/driver.

Manual: LD_PRELOAD the driver (bcm4330) or port PwnAir kernel (bcm4329, check XDA thread build instructions section)

adb root

adb remount

adb push some-binary /system/xbin/

Run

Check your wireless interface status (should be in "Mode: Monitor"):

adb root

adb shell iwconfig

Check Airodump is working:

Provided your wireless interface is eth0.

If it is working, then check the Aircrack documentation for HowTo.

Building Aircrack-ng on Android

Pre-requisites

Firmware/driver pre-requisite

Same pre-requisites applies as for Running. You still need to have a monitor-mode WiFi kernel/driver installed on your Android system prior to using Aicrack for Android.

Preparing the build environment

Instructions are made for CyanogenMod platform build system, as it includes all the necessary libraries and tools.

Warning: Compilation has not been tested on Android NDK system build alone, without all the platform tools. Building only with Android NDK instead of CyanogenMod platform build system would require you to have have at least the following sources located in an folder called "external" (check Android.mk):

Aircrack-ng for Android (android_aircrack)

OpenSSL development package (openssl)

SQLite development package >= 3.3.17 (3.6.X version or better is recommended): libsqlite3-devel

zlib (or change the Andorid.mk flags to use -LDLIB)

Follow Cyanogenmod build guide for your device but stop before "brunch".

Copy this Aircrack-ng for Android repository content to a directory named "aircrack-ng" in CyanogenMod source root "external" folder.

For more detail visit Android_aircrack

 类似资料: