offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.52k stars 890 forks source link

HID doesn't work inside of Nethunter app, USB Keyboard works #1240

Open ktweed opened 5 years ago

ktweed commented 5 years ago

Device:

Galaxy S4 (jfltexx)

OS version (KitKat/Lollipop/Marshmallow/Nougat):

6.0.1 Marshmallow (Lineage) Root through Magisk 18.0

Built from repo (date and build command) or downloaded from website (links):

Built with Nethunter installer today (January 6th, 2019) with this command: ./build.py -d jfltexx --marshmallow --rootfs full

Output of cat /proc/version in adb shell or NetHunter Terminal:

Linux Version 3.4.112-kali (semsevens@Dark) (gcc version 4.9.4 20150629 (prerelease) (crosstool-NG 1.20.0 - Linaro GCC 2015.06 - Cortex-A15) ) #2 SMP PREEMPT Sun Nov 13 02:34:41 CST 2016

Issue:

With the Nethunter app version 2018.01.01, HID Attacks and DuckHunter HID don't work. With HID Attacks I get the following toasts:

Nethunter was granted Superuser rights

Attack launched...

Attack execution ended.

Nethunter was granted Superuser rights

When I try DuckHunter HID I get these:

Launching Attack

Nethunter was granted Superuser rights

Attack launched!

Nethunter was granted Superuser rights

However, the USB keyboard app works fine, with keyboard and mouse working. USB HID support is enabled in the main screen, and 2 devices show up (/dev/hidg0 and /dev/hidg1). However, the HID toggle turns itself off occasionally. These 2 devices do show up in Device Manager on Windows 10 1809 as 2 separate "USB Input Device" entries.

If anyone knows how I could go about fixing this, that would be awesome.

Thanks! -- ktweed

yesimxev commented 5 years ago

Please paste the result if you have the files in here ls /sdcard/nh_files/modules/

ktweed commented 5 years ago

Thanks for helping, here's what I get

$ ls /sdcard/nh_files/modules
duckconvert.txt duckhunter.py filetohid.py keyseed.py
yesimxev commented 5 years ago

I see, not sure if this causes, but try to compile those .py-s. Hopefully the missing compiled keyseed file is your problem python -m compileall /sdcard/nh_files/modules