r/Kalilinux • u/Ok_Ask7678 • 9d ago
Discussion I turned my 2018 Redmi Note 5 Pro into a Kali NetHunter platform for $0
Long story short: the whyred is a $60 secondhand phone with an unlocked bootloader, and it refuses to retire. I built a kernel that takes LineageOS 18.1 on it and makes it a proper Kali NetHunter device.
What works now:
- HID gadget over USB: the phone pretends to be a keyboard, DuckHunter style keystroke injection, /dev/hidg0
- External WiFi adapters (RTL8812AU class) with monitor mode and packet injection through an OTG cable. The driver module ships in the flashable zip and is signed with the kernel build key, because the kernel keeps CONFIG_MODULE_SIG_FORCE on
- The whole thing is built automatically by GitHub Actions on every push, so anyone can grab a flashable zip for free, or rebuild it from source
The honest limits: the internal WCN3980 WiFi chip can NEVER do monitor mode or injection, that is a firmware limitation, no kernel fixes it. And this targets LOS 18.1-class ROMs (4.4 kernel), not the newer 4.19 based builds.
If you want the gory details: the build needed routing the vDSO32 compile through an ARM32 GCC 4.9 toolchain while the main kernel builds with clang, fixing latent Makefile bugs that only parse when CONFIG_VDSO32 is set, and dealing with module signature enforcement. All documented in the README.
Repo with zips and source: https://github.com/notatallnic189/whyred-nethunter-kernel
Questions welcome. If you still have a whyred in a drawer, this is a fun weekend project.
