项目作者: zexceed12300

项目描述 :
RTL8188EUS/EU/ETV Wifi driver support monitor mode & frame injection for build kernel nethunter
高级语言: C
项目地址: git://github.com/zexceed12300/rtl8188eus.git
创建时间: 2019-09-24T03:23:01Z
项目社区:https://github.com/zexceed12300/rtl8188eus

开源协议:GNU General Public License v3.0

下载


RTL8188EUS Driver

Monitor mode Frame injection MESH Mode aircrack-ng android NetHUNTER LICENSE-GPL

This is Forked From https://github.com/aircrack-ng/rtl8188eus, no changes only bug fixes, this must be the newest, most stable and effective one.

How To Build For Android/Nethunter

1. Compile your own kernel

Download your device source kernel. (example for Redmi 5: https://github.com/zexceed12300/android_kernel_xiaomi_rosy-3.18) & Download gcc toolchains

  1. git clone https://github.com/zexceed12300/android_kernel_xiaomi_rosy-3.18
  2. git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 -b ndk-release-r16

Prepare for compiling kernel

  1. cd android_kernel_xiaomi_rosy-3.18
  2. export ARCH=arm64
  3. export CROSS_COMPILE=../aarch64-linux-android-4.9/bin/aarch64-linux-android-
  4. mkdir ../out
  5. make O=../out someone_defconfig

edit ../out/.config and make sure below has already there. if not there, you can add it

  1. CONFIG_MODULES=y
  2. CONFIG_MODULE_FORCE_LOAD=y
  3. CONFIG_MODULE_UNLOAD=y
  4. CONFIG_MODULE_FORCE_UNLOAD=y
  5. CONFIG_CFG80211_WEXT=y
  6. CONFIG_MAC80211=y

Compiling kernel

  1. make O=../out -j$(nproc)

now your kernel(Image.gz-dtb) is in android_kernel_xiaomi_rosy-3.18/arch/arm64/boot/ and flash it to your device

2. Build RTL8188EUS driver/modules

Download driver RTL8188EUS

  1. cd ../
  2. git clone https://github.com/zexceed12300/rtl8188eus
  3. cd rtl8188eus

Compile all module

  1. export KLIB_BUILD=../out
  2. make

if there is no error or success you will see a file named 8188eu.ko in this driver directory.

3. Load the Driver

move 8188eu.ko to your device. open terminal and type

  1. su
  2. insmod 8188eu.ko

Enjoy!! the driver has been loaded in your device, now you can plugged your wifi adapter(like TP-LINK TL-WN722N v2/v3) now.

HowTo Monitor mode

Use these steps to enter monitor mode.

  1. $ sudo airmon-ng check-kill
  2. $ sudo ip link set <interface> down
  3. $ sudo iw dev <interface> set type monitor

Frame injection test may be performed with
(after kernel v5.2 scanning is slow, run a scan or simply an airodump-ng first!)

  1. $ aireplay -9 <interface>

Network Manager Configuration

Add these lines below to “NetworkManager.conf” and ADD YOUR ADAPTER MAC below [keyfile] This will make the Network-Manager ignore the device, and therefor don’t cause problems.

  1. [device]
  2. wifi.scan-rand-mac-address=no
  3. [ifupdown]
  4. managed=false
  5. [connection]
  6. wifi.powersave=0
  7. [main]
  8. plugins=keyfile
  9. [keyfile]
  10. unmanaged-devices=mac:A7:A7:A7:A7:A7