[KERNEL] Nethunter for Galaxy S20 FE 5G r8q (Snapdragon)

Search This thread

0ptix

New member
Sep 14, 2016
3
0
Update with more symptoms:
- running lsmod in a kali terminal gets me:
Code:
libkmod: ERROR .../.libkmod/libkmod-module.c1668 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error:  could not get list of modules: No such file or directory
And its true that /proc has no modules subdirectory (even outside the chroot, e.g. in Termux terminal).

Whats going on here... :-(


Update: Fixed 2 things. Progresss on another issue.

1) Solved: Network in kali term restored by adding the user root to group sockets. At least ping and apt work now so i could update packages.

2) Solved: Got the two HID devices (hidg0, hidg1) to show up by switching USB Function to hid and disabling ADB in USB Arsenal.

3) Progress? : I think *mod commands dont work because the kernel wasn't compiled with module support? At least that's the reason i'm seeing for /proc/modules missing which is what those commands complain about.
 
Last edited:
Hey, @Svirusx. Appreciate your work and want to ask something. So how did you get this device working? I'm working on porting NetHunter kernel to Galaxy Tab S7 which is literally the same hardware series (Snap 865 SoC). My installer fails in TWRP saying that "Dynamic device detected. Cannot install NetHunter via recovery on this device. Install it as Magisk module.", but even Magisk module installation fails. Would be grateful for any piece of advice or help.
 

Svirusx

Senior Member
Jun 6, 2015
302
237
Update with more symptoms:
- running lsmod in a kali terminal gets me:
Code:
libkmod: ERROR .../.libkmod/libkmod-module.c1668 kmod_module_new_from_loaded: could not open /proc/modules: No such file or directory
Error:  could not get list of modules: No such file or directory
And its true that /proc has no modules subdirectory (even outside the chroot, e.g. in Termux terminal).

Whats going on here... :-(


Update: Fixed 2 things. Progresss on another issue.

1) Solved: Network in kali term restored by adding the user root to group sockets. At least ping and apt work now so i could update packages.

2) Solved: Got the two HID devices (hidg0, hidg1) to show up by switching USB Function to hid and disabling ADB in USB Arsenal.

3) Progress? : I think *mod commands dont work because the kernel wasn't compiled with module support? At least that's the reason i'm seeing for /proc/modules missing which is what those commands complain about.

What for you need lsmod?
I integrated every module in kernel and disabled loadable module support.
 

Svirusx

Senior Member
Jun 6, 2015
302
237
Hey, @Svirusx. Appreciate your work and want to ask something. So how did you get this device working? I'm working on porting NetHunter kernel to Galaxy Tab S7 which is literally the same hardware series (Snap 865 SoC). My installer fails in TWRP saying that "Dynamic device detected. Cannot install NetHunter via recovery on this device. Install it as Magisk module.", but even Magisk module installation fails. Would be grateful for any piece of advice or help.
In TWRP you need only to flash kernel if you have it made. Nethunter apk you can install from Nethunter Store or from F-droid if you add https://store.nethunter.com/repo
 

kprasadrao

Member
Sep 8, 2021
11
2

Attachments

  • Screenshot_20211229-064038_NetHunter Terminal.jpg
    Screenshot_20211229-064038_NetHunter Terminal.jpg
    234.9 KB · Views: 53

Svirusx

Senior Member
Jun 6, 2015
302
237

EDllT

Member
Oct 2, 2020
19
6
Last edited:

Svirusx

Senior Member
Jun 6, 2015
302
237
@Svirusx Is it possible to install this wifi adapter driver? I'm having some issues trying to install it
Maybe if it is going to be integrated in kernel source than it might be working.
 

kprasadrao

Member
Sep 8, 2021
11
2
2022.04.20 - v3.1
Added rtl88x2bu support


2022.01.18 - v3.0
Initial release for Android 12

2021.09.11 - v2.5
Added kernel module to support Docker

2021.07.14 - v2.4
Update Samsung kernel source to G781BXXU3CUE3

2021.05.24 - v2.3
Update Samsung kernel source to G781BXXU3CUD6

2021.05.13 - v2.2
Update Samsung kernel source to G781BXXU2CUD1

2021.01.27 - v2.1
Back to v2.1 Enabling Samsung MTP break some of usb attacks

Update used llvm toolchain ship to 10.0.

2021.01.20 - v2.1
Update used llvm toolchain ship to 10.0.

2021.01.14 - v2.0
Initial release for Android 11

2021.01.03 - v1.2
Enabled BT_RFCOMM and BT_RFCOMM_TTY

2020.12.23 - v1.1
rtl8188eus integrated in kernel
Disable loadable modules support.

2020.12.21 - v1.0
Initial release
Can you please mention Build Number this version list so confusing bro thanks for your help and supporting features 🙏 ❤️
 
Last edited:

wuyish

New member
Dec 25, 2012
1
0
2. Flash Nethunter Kernel
where i can find Nethunter Kernel? is "nethunter_wirusmod_r8q_v3.1.zip"???
 

kprasadrao

Member
Sep 8, 2021
11
2

draco42

Member
Apr 18, 2006
9
0
This depends which version of driver "Qcacld" is installed in kernel. Qcacld-2.0 support injections, Qcacld-3.0 does not support. Qcacld driver is open source there is possible to get injection with Qcacld-3.0 when someone make patch for it or codeaurora release support for injection.
In your top post you say you're using Qcacld-3.0? Is it possible to change your rom to use Qcacld-2.0 instead?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    Hello 👋, I’m stuck could somebody help me please?
    I’ve the Samsung SE 4g (snapdragon)
    (SM-G780G dual sim)
    Actually I follow this thread because I think (maybe I’m wrong) that is the same procedure.
    I could unlock the oem —> 👍
    I could flash patch the official rom with Magisk —> 👍
    Flash rom, custom recovery, kernel of Kali hunter —> 👍
    But when I download from the store net hunter it simply crash and a pop up message says that the version of net hunter has a bug …do you have any idea ? I’m just wondering if also to you happen
    Thanks
    I found a solution that work for me
    If also you can’t open nethunter because it crashes
    I read that is problem of permission
    I don’t know if I can leave the link here let me know if I can and I’ll post


    UPDATE

    finally everything is working ;)
    If somebody need help I’m at your disposal
  • 14


    WirusMOD Nethunter Kernel for Samsung Galaxy S20 FE 5G (Snapdragon) - Stock Android 10 & 11 & 12
    Code:
    I am not responsible for bricked devices.
    If you going to flash it, you accepted it.
    Of course your warranty is void.

    Nethunter Features:
    • BadUSB
    • HID gadget keyboard/mouse
    • DriveDroid
    • USB WiFi, mac80211 (Monitor mode, packet capture, packet injection) [Compatibility List]
    • support rtl88xxau USB WiFi
    • support rtl8188eus USB WiFi
    • support rtl88x2bu USB WiFi
    • Ethernet
    • Bluetooth HCI USB support
    • RTL-SDR DVB support
    • Monitor mode for buildin wifi card ( Qcacld-3.0 ) (No frame injection)
    • Enabled BT_RFCOMM
    • Support for extra file systems like CIFS, NFS, NTFS, F2FS
    Extra:
    • Boeffla wakelock blocker v1.10
    • Wireguard
    • Docker support

    Download: Android 12 releases start with v3.x
    Latest version SM-G781X here.

    Installation:
    1. TWRP Backup your ROM
    2. Flash Nethunter Kernel
    3. Flash latest Magisk
    4. Install busybox can be one from Magisk repository
    5. Install Nethunter Store
    6. Install NetHunter apk, NetHunter Terminal, NetHunter KeX from Nethunter Store
    7. In NetHunter apk go to Kali Chroot Manager and install chroot.
    7. Extract Nethunter_WirusMOD_r8q_vX.X_binaries.7z and binaries to folders:
    Android 11 = Firmwares: /vendor/firmware_mnt/image/
    Android 10 = Firmwares: /vendor/etc/firmware_mnt/image/
    Firmwares: Give permissions to every file rw-r--r-- (if they aren't set)
    hid-keyboard binary: system/xbin/ and give permissions to it rwxr-xr-x
    8. Reboot


    OLD: Loadable modules only for version 1.0:

    Most of modules are integrated in kernel. Here are only two modules to load. Use they only if you need they.
    Modules_Nethunter_WirusMOD_vX.X.7z

    insmod 8188eu.ko - load module
    rmmod 8188eu.ko - unload module
    lsmod - list loaded modules

    Another way to load modules is Module Loader
    Copy modules to storage and choose modules which you want to load.


    BUGs / Informations:
    -If Safetynet Fix is installed can cause freeze at samsung flashy logo.
    -If USB Arsenal setting HID function doesn't work try set it without ADB.
    -In kernel are added binaries from Nethunter_WirusMOD_r8q_vX.X_binaries.7z(without modules) but they aren't copied automatically.
    -airodump-ng can't self change channels for wlan0.
    -If monitor mode for wlan0 doesn't work. Enable wifi connection > disable it -> enable monitor mode with Nethunter apk and try airodump wlan0
    -Change channel in wlan0 monitor mode and frame capture:
    iwpriv wlan0 setMonChan 36 2 - Setting channel 36
    tcpdump -i wlan0 -w <tcpdump.pcap>

    Docker Installation:

    Every Commando execute in Termux app! More info here

    pkg install root-repo
    pkg install golang make cmake ndk-multilib tsu tmux docker

    mkdir $TMPDIR/docker-build
    cd $TMPDIR/docker-build
    wget https://github.com/krallin/tini/archive/v0.19.0.tar.gz
    tar xf v0.19.0.tar.gz
    cd tini-0.19.0
    mkdir build
    cd build
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$PREFIX ..
    make -j8
    make install
    ln -s $PREFIX/bin/tini-static $PREFIX/bin/docker-init

    1. Run docker server
    sudo dockerd --iptables=false

    2. Test of those two containers work
    sudo docker run hello-world
    sudo docker run --network host --name nginx nginx:latest
    #Go with browser to IP address of your smartphone with port 80. If you get nginx default page it works!

    #Internet in docker containers
    sudo ip route add default via <Gateway> dev wlan0
    sudo ip rule add from all lookup main pref 30000


    BUGs / Informations:
    - option to forward ports from docker network to host does not work ( e.q. -p 0.0.0.0:80:3000) you need to use Host mode "--network host"
    - Not every container for arm64 works with android. e.q official gitea can not bind port 3000. (I made special version of gitea with fix more info here)

    Docker Screens:

    docker containers.jpg
    Gitea.jpg
    Nginx.jpg



    Screens:

    NetHunter.jpg
    NetHunter Terminal.jpg




    Credits:
    Samsung for Kernel Source
    Nethunter creators for the best portable penetration testing tool.
    afaneh92 for TWRP and multidisabler
    jesec for unlock guide



    XDA:DevDB Information
    [KERNEL] Nethunter for Galaxy S20 FE 5G (Snapdragon)

    Contributors

    Svirusx
    Source Code: https://github.com/Svirusx/Nethunter-Kernel-S20_FE_5G

    Kernel Special Features:

    Version Information
    Status:
    Beta

    Created 2020-12-21
    Last Updated 2022-04-20
    3
    2022.04.20 - v3.1
    Added rtl88x2bu support


    2022.01.18 - v3.0
    Initial release for Android 12

    2021.09.11 - v2.5
    Added kernel module to support Docker

    2021.07.14 - v2.4
    Update Samsung kernel source to G781BXXU3CUE3

    2021.05.24 - v2.3
    Update Samsung kernel source to G781BXXU3CUD6

    2021.05.13 - v2.2
    Update Samsung kernel source to G781BXXU2CUD1

    2021.01.27 - v2.1
    Back to v2.1 Enabling Samsung MTP break some of usb attacks

    Update used llvm toolchain ship to 10.0.

    2021.01.20 - v2.1
    Update used llvm toolchain ship to 10.0.

    2021.01.14 - v2.0
    Initial release for Android 11

    2021.01.03 - v1.2
    Enabled BT_RFCOMM and BT_RFCOMM_TTY

    2020.12.23 - v1.1
    rtl8188eus integrated in kernel
    Disable loadable modules support.

    2020.12.21 - v1.0
    Initial release
    2
    How I get official kalifs-arm64-full.tar.xz
    File after download file size take 2.99 gb file downloading time download percentage not showing

    Links to download kalifs are near normal downloading of kali linux isos (choose mobile scroll down to generic images)
    Direct link:
    1
    Hello. Is Qualcomm wifi firmwares supports injections ? (deauth, attacks...) Needs patch for injections ?
    I am using Sony Xperia Z5 Compact and it uses Broadcomm 43455 firmware. I patched via NexMon, and monitor mode injections works well.
    This depends which version of driver "Qcacld" is installed in kernel. Qcacld-2.0 support injections, Qcacld-3.0 does not support. Qcacld driver is open source there is possible to get injection with Qcacld-3.0 when someone make patch for it or codeaurora release support for injection.
    1
    Hello 👋, I’m stuck could somebody help me please?
    I’ve the Samsung SE 4g (snapdragon)
    (SM-G780G dual sim)
    Actually I follow this thread because I think (maybe I’m wrong) that is the same procedure.
    I could unlock the oem —> 👍
    I could flash patch the official rom with Magisk —> 👍
    Flash rom, custom recovery, kernel of Kali hunter —> 👍
    But when I download from the store net hunter it simply crash and a pop up message says that the version of net hunter has a bug …do you have any idea ? I’m just wondering if also to you happen
    Thanks
    I found a solution that work for me
    If also you can’t open nethunter because it crashes
    I read that is problem of permission
    I don’t know if I can leave the link here let me know if I can and I’ll post


    UPDATE

    finally everything is working ;)
    If somebody need help I’m at your disposal