Giter VIP home page Giter VIP logo

rtl8188eu's Introduction

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

git clone https://github.com/zexceed12300/android_kernel_xiaomi_rosy-3.18
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

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

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

CONFIG_MODULES=y
CONFIG_MODULE_FORCE_LOAD=y
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=y
CONFIG_CFG80211_WEXT=y
CONFIG_MAC80211=y

Compiling kernel

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

cd ../
git clone https://github.com/zexceed12300/rtl8188eus
cd rtl8188eus

Compile all module

export KLIB_BUILD=../out
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

su
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.

$ sudo airmon-ng check-kill
$ sudo ip link set <interface> down
$ 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!)

$ 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.

[device]
wifi.scan-rand-mac-address=no

[ifupdown]
managed=false

[connection]
wifi.powersave=0

[main]
plugins=keyfile

[keyfile]
unmanaged-devices=mac:A7:A7:A7:A7:A7

rtl8188eu's People

Contributors

igorpecovnik avatar kimocoder avatar minhducsun2002 avatar rofl0r avatar zexceed12300 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rtl8188eu's Issues

Please refer to below error

Makefile:1036: *** Recursive variable 'CROSS_COMPILE' references itself (eventually). Stop.
It comes whenever it try to run command make
I have 5.6.0-kali1-amd64 now. Please help me
I have already installed linux headers

ioctl_cfg80211 error

I have successfully compiled this module on two other samsung devices. While trying to compile the driver for a samsung tab 4, i get errors as follows:

CC [M] /home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.o
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:5255:44: warning: 'struct station_del_parameters' declared inside parameter list [enabled by default]
struct station_del_parameters *params)
^
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:5255:44: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: In function 'cfg80211_rtw_del_station':
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:5267:21: error: dereferencing pointer to incomplete type
target_mac = params->mac;
^
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:9361:2: warning: initialization from incompatible pointer type [enabled by default]
.del_station = cfg80211_rtw_del_station,
^
/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.c:9361:2: warning: (near initialization for 'rtw_cfg80211_ops.del_station') [enabled by default]
cc1: warning: unrecognized command line option "-Wno-date-time" [enabled by default]
/home/owner/Downloads/kernel/tab/scripts/Makefile.build:307: recipe for target '/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.o' failed
make[4]: *** [/home/owner/Downloads/kernel/rtl8188eus/os_dep/linux/ioctl_cfg80211.o] Error 1
/home/owner/Downloads/kernel/tab/Makefile:1379: recipe for target 'module/home/owner/Downloads/kernel/rtl8188eus' failed
make[3]: *** [module/home/owner/Downloads/kernel/rtl8188eus] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:26: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/owner/Downloads/kernel/out'
Makefile:2047: recipe for target 'modules' failed
make: *** [modules] Error 2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.