Related
Hi,
i have the last nightly CM 10.1 directly from cyanogen site (so old bootloader)
My usb tether dont work, i try with the 4.2.2 native application and my windows 7 32bit (i have also try in a 7 64bit) install the adb interfaces, but dont install (dont prompt nothing) the network interfaces.. I try the same method on a i9000 galaxy s and it install all the device "on the air".
I try also driver adb from pdanet, tethering with clockwork app, nothing happen..
i try also this driver http://forum.xda-developers.com/showthread.php?t=1752074&highlight=tethering
With pdanet my installation breaks when try to install the app on the phone (so i think is something wronk between the adb driver and the phone)
with clockwork he find the phone but dont work
with the native android app it install the driver adb but nothing more..
Please help!
nedo85 said:
Hi,
i have the last nightly CM 10.1 directly from cyanogen site (so old bootloader)
My usb tether dont work, i try with the 4.2.2 native application and my windows 7 32bit (i have also try in a 7 64bit) install the adb interfaces, but dont install (dont prompt nothing) the network interfaces.. I try the same method on a i9000 galaxy s and it install all the device "on the air".
I try also driver adb from pdanet, tethering with clockwork app, nothing happen..
i try also this driver http://forum.xda-developers.com/showthread.php?t=1752074&highlight=tethering
With pdanet my installation breaks when try to install the app on the phone (so i think is something wronk between the adb driver and the phone)
with clockwork he find the phone but dont work
with the native android app it install the driver adb but nothing more..
Please help!
Click to expand...
Click to collapse
Hi, i finally got it:
i unistall all lg driver crap on my computer (lg suite, all the drivers ecc) I unistall also the portable device p990 in Device Manager and the adb device, i reboot my system, install last driver from lg site driver 3.8.1 and the tethering usb "jellybem" style works on the air..
Still dont work with pdanet and tethering clockwork, but i dont care XD
Bye
Anybody have a kernel with the RTL8187 module drivers already loaded? Not sure how PCAP is able to detect through the OTG cable, but it works, but I'd like to add a second network wlan1 to my HTC One running Ubuntu with LinuxonAndroid.
Regards,
--tj
Hello, guys! Advance sorry for my english. Need help. Recently, I tried build cm kernel for Oneplus One with ath9k drivers support to connect external wifi adapter via OTG (in my case it's TL-WN722N). But it turned out that this option is enabled. "lsusb" says that adapter connected. "dmesg" says that "new usb device" connected. "iwconfig" from installed kali (linux deploy) doesn't see any wlan interface (only built-in wlan0). I don't understand what I'm doing wrong. I know Kali NetHunter, but I can't install it with nightlies (I don't want install cyanogen 12.1, because it's a "heavy"). Can anyone give me a hint?
Wrong place....
Please an admin delete my post and move thread to Oneplus One...
ty
##I DO NOT ACCEPT FOR BRICKED DEVICES, AND ILLEGAL WORKS##
!!!USE WITH CAUTION!!!
Device: Sony Xperia Z5 Compact
OS: LineageOS 14.1 / Android 7.1.2
Thanks for helps to: @Joeisgood99
1.Take a full backup or only Boot partition
2.Flash Nethunter zip
3. Reboot
4. Open FDroid Nethunter, Upgrade Nethunter apps
5. Open Nethunter app, give permissions
6. Open Nethunter Terminal, give permissions and: apt-get update
7. Open Nethunter app,Navigate to Chroot (metapackages) manager, select Nethunter and press install/upgrade
Unofficial Download Link: https://drive.google.com/file/d/1iFDtMelkcDjOgiNnS90GsHdaWTmeap6l/view
EDIT: Dear @Re4son built OFFICIAL NETHUNTER for Suzuran . It includes; patched wlan0 firmware, HID support and many RTL wlan1 drivers
INSTRUCTIONS FOR BUILD YOURSELF OFFICIALLY (RECOMMENDED):
1- clone this https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project
Code:
git clone https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project
2-
Code:
cd nethunter-installer
3-
Code:
./bootstrap.sh
4- press Y to download devices list.
5-
Code:
python build.py -d suzuran --nougat --rootfs full
(if you prefer lower storage usage, then change rootfs full to rootfs minimal.)
(press Y to download latest rootfs chroot.)
(This will create about 1,2GB of flashable ZIP file and after flash this, it will take 10 GB of internal storage)
6- connect your Z5 Compact to your PC and move zip to your internal storage.
(if you arent have PC, then flash my UNOFFICIAL zip and start KeX in Kali Nethunter menu (Desktop Enviroment) and run that commands in Nethunter)
(if your PC doesnt know your device, press this commands:
Code:
adb push CreatedNethunterFlashableZip /sdcard
7- after, go to TWRP and press backup your BOOT partition for any bootloop causes.
8- in TWRP, press install and choose created Nethunter Zip then press flash.
9- Reboot device and go to FDroid Nethunter version and upgrade Nethunter to latest apk.
10- go to Nethunter app and grant permissions.
11- press Kali chroot manager and then press Add metapackage. Select Kali-linux-nethunter
12- after install procces, go to KeX menu and press Setup local server and write custom password for Kex VNC login. after write, press n
13- In KeX menu, press start server and wait.
14- go to KeX app and write ip to your local ip ( in Nethunter app, go to Home menu and check wlan0 inet without /24 (example 192.168.1.101))
(if you arent connect wifi, press 127.0.0.1 in ip section.
15- write your preconfigured custom password
16- in front of ip section, press 5901 and hit connect.
INSTRUCTIONS FOR WLAN0 (INTERNAL WIFI) MONITOR MODE AND INJECTIONS TEST
INSTRUCTIONS FOR EASILY SET MONITOR MODE:
1. Download Prepatched Firmware:
nougat/suzuran/nexmon-fw/fw_bcmdhd.bin.nexmon · master · Kali Linux / NetHunter / build-scripts / kali-nethunter-devices · GitLab
Devices https://stats.nethunter.com/ https://nethunter.kali.org/
gitlab.com
(rename to fw_bcmdhd.bin)
2. Go to TWRP, select mount and system.
3. Go to main, file manager.
4. Navigate to /system/etc/firmware/wlan/bcmdhd/
5. Move fw_bcmdhd.bin file to your /sdcard/ (for backup)
6. Move into prepatched firmware
/system/etc/firmware/wlan/bcmdhd/
7. reboot system and done.
PATCH YOURSELF:
PART 1:
IN YOUR PC:
1. git clone https://github.com/seemoo-lab/nexmon.git
2. sudo apt-get install git gawk qpdf adb flex bison
3. sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
4. cd nexmon
5. source setup_env.sh
6. make (enter in terminal, like that up)
7. cd patches/bcm43455/7_45_59_16/nexmon
8. make
9. Generate a backup of your original firmware file: make backup-firmware
Install the patched firmware on your smartphone: make install-firmware (make sure your smartphone is connected to your machine beforehand)
https://github.com/seemoo-lab/nexmon...ster/README.md
PART 2 TEST WLAN0 MONITOR MODE:
IN YOUR PHONE:
1- open your wifi and go terminal app.
2-
Code:
. monstart-nh
3- and lets test monitor and injections:
Code:
airodump-ng wlan0
Code:
aireplay-ng -9 wlan0
4- if monitor mode shows any AP's, injection test says injections works, and some AP's reach %1 or upper, then monitor support works good, enjoy
thanks to @Re4son ..
Source Code: https://github.com/Re4son/android_kernel_sony_msm8994/tree/nethunter-14.1
NV modding
Are you able to modify Modem NV Registers with this kernel (assuming it's custom). Can you give it a try via vi or vim? I would prefer to do the modifications on device and simply update ramfs, if possible let me know.
nice
good job, do you know if encryption is working ?
No wlan 1
Thank you so much for making Nethunter for the Z5 compact.
Im on LOS 14.1 / Android 7.1.2 unoffical-suzuran.
I flash the zip from twrp, Restart and update Kali Chroot.
Everything works, Except kali can not find my wifi adapter.
I use the TP Link TL-WN722N-V1 have tried different otg cables,
But no Luck. "i also turn on usb otg"
I have tried many different wifi adapters, im not shore
what wifi drivers that this kernel suport.
im a newbie, So hope someone could help me make this work.
Thank you and regards from Michael.
@NetRoot bro. How to enable monitor mode?
Monstart-nh?
aggunawan said:
@NetRoot bro. How to enable monitor mode?
Monstart-nh?
Click to expand...
Click to collapse
yes bro
source monstart-nh
@NetRoot whats wrong bro with this?
And what is external wireless card support to the kernel? I use tp-link 722n v-1. Chipset atheros ath9k.
NetRoot said:
yes bro
source monstart-nh
Click to expand...
Click to collapse
What's wrong ?
@NetRoot and no module installed
@aggunawan Oops bro i forget.
You must patch wifi:https://github.com/seemoo-lab/nexmon
Our phone uses BCM43455 .
I added broadcom wifi and bluetooth modules but it isnt correctly installed.
NetRoot said:
@aggunawan Oops bro i forget.
You must patch wifi:https://github.com/seemoo-lab/nexmon
Our phone uses BCM43455 .
Click to expand...
Click to collapse
thanks bro @NetRoot. But I have tried compile nexmon https://github.com/seemoo-lab/nexmon many many time, but i always failure. Please help me to compile step by step? Please bro
aggunawan said:
@NetRoot bro. How to enable monitor mode?
Monstart-nh?
Click to expand...
Click to collapse
aggunawan said:
thanks bro @NetRoot. But I have tried compile nexmon https://github.com/seemoo-lab/nexmon many many time, but i always failure. Please help me to compile step by step? Please bro
Click to expand...
Click to collapse
1. git clone https://github.com/seemoo-lab/nexmon.git
2. sudo apt-get install git gawk qpdf adb flex bison
3. sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
4. cd nexmon
5. source setup_env.sh
6. make (enter in terminal, like that up)
7. cd patches/bcm43455/7_45_59_16/nexmon
8. make
9. Generate a backup of your original firmware file: make backup-firmware
Install the patched firmware on your smartphone: make install-firmware (make sure your smartphone is connected to your machine beforehand)
https://github.com/seemoo-lab/nexmon/blob/master/README.md
4.
NetRoot said:
1. git clone https://github.com/seemoo-lab/nexmon.git
2. sudo apt-get install git gawk qpdf adb flex bison
3. sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
4. cd nexmon
5. source setup_env.sh
6. make (enter in terminal, like that up)
7. cd patches/bcm43455/7_45_59_16/nexmon
8. make
9. Generate a backup of your original firmware file: make backup-firmware
Install the patched firmware on your smartphone: make install-firmware (make sure your smartphone is connected to your machine beforehand)
https://github.com/seemoo-lab/nexmon/blob/master/README.md
4.
Click to expand...
Click to collapse
Have you @NetRoot succesfully compiled it bro ?
@aggunawan yes bro.
NetRoot said:
@aggunawan yes bro.
Click to expand...
Click to collapse
@NetRoot. does it have to compile Android-NDK? How to compile it?
Failure to compile nexmon
Bro @NetRoot
@aggunawan bro use Kali amd (pc) not use compiling procces in nethunter.
NetRoot said:
@aggunawan bro use Kali amd (pc) not use compiling procces in nethunter.
Click to expand...
Click to collapse
Is there another way to compile it bro @NetRoot?
And please make kernel support external wireless adapter bro? Please
aggunawan said:
Is there another way to compile it bro @NetRoot?
And please make kernel support external wireless adapter bro? Please
Click to expand...
Click to collapse
No bro you must patch bcm43455 wifi.
Yeah that kernel already compiled for rtlwifi drivers.
You can see in: /system/etc/firmware/rtlwifi/
Installing Nethunter
1. Download and install magisk module called KaliNethunter
2. Go to offensive security website and download generic arm64 nethunter image
3. Extract and install following apps from downloaded archive: NetHunter.apk, NetHunterTerminal.apk.
4. Extract kalifs-arm64-full.tar.xz on your phone.
5. Open NetHunter app and grant permissions and root permission
6. Open hamburger menu, select Kali Chroot Manager, select location where you had extracted kalifs-arm64-full.tar.xz and start installing chroot
7. Wait some time (~10 minutes)
8. Start chroot. Now you can use nethunter app and nethunter terminal app.
Enabling monitor mode on built-in wifi module
0. I could not enable it on custom roms. On stock 082 it worked, but there are some problems. Contact me if you have any info about enabling monitor mode on roms except stock.
1. Open nethunter app, go to custom commands
2. Click run on "Start wlan0 in monitor mode"
3. Now wlan0 is in monitor mode. I've tried capturing handshakes using airodump-ng, it worked. However, when I tried deauth attack using aireplay-ng, wlan0 was stuck on channel 0.
4. Note that if you turn wifi on/off or try to disable monitor mode, your phone will turn off.
5. Alternative way: you can enable monitor mode using other apps, like penmon. However, your phone will still turn off if you do anything to wlan0 while it is in monitor mode.
Using external wifi adapter
0. Your wifi adapter must support monitor mode. External adapter won't work without a kernel that supports it. I've built one based on darkonah (many thaks to @travarilo ). Atheros HTC based adpaters are not supported!
1. Flash the attached kernel (the latest version is NH_kernel_v2.zip).
2. Now you can use your exernal adapter.
Enabling monitor mode on external adapter
0. I only tested it with Alfa AWUS036NH (chipset ralink3070), but the instruction may be similar for other adapters
1. First, let's install firmware for your wireless adapter
Code:
apt update
apt upgrade
apt install firmware-ralink
2. Execute command iwconfig and check if your adapter is present there. For me it was displayed as wlan1
3. Turn your adapter off and put it into monitor mode
Code:
ifconfig wlan1 down
airmon-ng start wlan1
4. Check airmon-ng output. It will say you that your adapter is now in monitor mode and will give you new adapter's name (for me it was wlan1mon)
5. Now you can use monitor mode on your adapter (for example, to run airodump-ng)
P.S.: Do it at your own risk and don't use this info in illegal purposes. Only you are responsible for your actions.
Thank you very much sir! Really appreciate your work time and efforts!
Just one small query about what rom and firmware are you using?
Heven11 said:
Thank you very much sir! Really appreciate your work time and efforts!
Just one small query about what rom and firmware are you using?
Click to expand...
Click to collapse
Right now I'm using stock rom 082 (and fw 082, respectively), but it would be great if you tested this guide on any custom rom (if you are not going to use built-in wifi module. If you are, I recommend you to use stock rom)
Ok thank you!
tutaf said:
Installing Nethunter
1. Download and install magisk module called KaliNethunter
2. Go to offensive security website and download generic arm64 nethunter image
3. Extract and install following apps from downloaded archive: NetHunter.apk, NetHunterTerminal.apk.
4. Extract kalifs-arm64-full.tar.xz on your phone.
5. Open NetHunter app and grant permissions and root permission
6. Open hamburger menu, select Kali Chroot Manager, select location where you had extracted kalifs-arm64-full.tar.xz and start installing chroot
7. Wait some time (~10 minutes)
8. Start chroot. Now you can use nethunter app and nethunter terminal app.
Enabling monitor mode on built-in wifi module
0. I could not enable it on custom roms. On stock 082 it worked, but there are some problems. Contact me if you have any info about enabling monitor mode on roms except stock.
1. Open nethunter app, go to custom commands
2. Click run on "Start wlan0 in monitor mode"
3. Now wlan0 is in monitor mode. I've tried capturing handshakes using airodump-ng, it worked. However, when I tried deauth attack using aireplay-ng, wlan0 was stuck on channel 0.
4. Note that if you turn wifi on/off or try to disable monitor mode, your phone will turn off.
5. Alternative way: you can enable monitor mode using other apps, like penmon. However, your phone will still turn off if you do anything to wlan0 while it is in monitor mode.
Using external wifi adapter
0. Your wifi adapter must support monitor mode. External adapter won't work without a kernel that supports it. I've built one based on darkonah (many thaks to @travarilo ). Later I'll update this post to list adapters that should be supported by tis kernel.
1. Flash the attached kernel.
2. Now you can use your exernal adapter.
Enabling monitor mode on external adapter
0. I only tested it with Alfa AWUS036NH (chipset ralink3070), but the instruction may be similar for other adapters
1. First, let's install firmware for your wireless adapter
Code:
apt update
apt upgrade
apt install firmware-ralink
2. Execute command iwconfig and check if your adapter is present there. For me it was displayed as wlan1
3. Turn your adapter off and put it into monitor mode
Code:
ifconfig wlan1 down
airmon-ng start wlan1
4. Check airmon-ng output. It will say you that your adapter is now in monitor mode and will give you new adapter's name (for me it was wlan1mon)
5. Now you can use monitor mode on your adapter (for example, to run airodump-ng)
P.S.: Do it at your own risk and don't use this info in illegal purposes. Only you are responsible for your actions.
Click to expand...
Click to collapse
I love it when you put 0 first instead of 1. A true caffeine blooded being. Btw im on .087 fw ver (X00TDB var.). Gonna try the image out and see if internal wifi module works. Im running BT5 on my xp era machine.
ImperialNuggets said:
I love it when you put 0 first instead of 1. A true caffeine blooded being. Btw im on .087 fw ver (X00TDB var.). Gonna try the image out and see if internal wifi module works. Im running BT5 on my xp era machine.
Click to expand...
Click to collapse
What is BT5? I got it
does the kernel support atheros chipset: TL-WN722N v1?
ive done everything i could but my device still dont detect my adapter
...
apt update
apt upgrade
apt install firmware-atheros
airmon-ng... nothing..
xda_u$er said:
does the kernel support atheros chipset: TL-WN722N v1?
ive done everything i could but my device still dont detect my adapter
...
apt update
apt upgrade
apt install firmware-atheros
airmon-ng... nothing..
Click to expand...
Click to collapse
I had some problems building kernel, so I had to disable support for Atheros HTC based cards. You can try to add it as a loadable kernel module.
0. Flash the attached kernel, download and extract module file (ath9k_htc.ko) from zip
1. Go to NetHunter Terminal app and start androidsu shell
2. Go to the folder where you had extracted ath9k_htc.ko. For example:
Code:
cd /storage/emulated/0/Download
3. Install the module
Code:
insmod ath9k_htc.ko
If it throws error like "no such file or directory", check dmesg
4. Check if the module is installed
Code:
lsmod
You should see the name of the module (ath9k_htc) and its size (check attached screenshot)
5. Now try executing airmon-ng in kali terminal.
Module doesn't persist between reboots. Let me know if it works for you, I'll try to automate module installation process.
Throws me error..
xda_u$er said:
Throws me error..
Click to expand...
Click to collapse
Could you please execute dmesg command right after getting this error and show me the output?
its huge, so I put it in notepad
xda_u$er said:
its huge, so I put it in notepad
Click to expand...
Click to collapse
Sorry, my bad, I gave you the module for the previous kernel build (it has different name, that is why insmod throws error). Please try installing the attached module. If anything goes wrong, send me dmesg again.
@xda_u$er did it work?
Well, the installation went ok, but the external adapter its not working, it is not recognized by the device.
xda_u$er said:
Well, the installation went ok, but the external adapter its not working, it is not recognized by the device.
Click to expand...
Click to collapse
Sorry, I don't know what to do with that. You may try to find an old version (~2019) of TRB kernel, I've heard that its developer tried to enable Atheros HTC based adapters support.
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Heven11 said:
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Click to expand...
Click to collapse
As far as I know, it does. I haven't tried any usb attacks, but I'm going to.
Heven11 said:
Hii again! Your kernel is working amazingly good!and thanks to your guidance nethunter is working fine for me!
But I am unable to perform hid attacks are you able to do them? Like using our phone as a bad usb ! Does this also need kernel modification?
Click to expand...
Click to collapse
I've enabled everything that should be enabled to make bluetooth attacks work, but they don't. The adapter is recognized by the system, but nethunter app doesn't see it. I would be very thankful if you tested bluetooth with new kernel. Btw, usb attacks work with new kernel too. I've tried launching firefox on my PC, it worked. This is a really cool thing
Firstly sorry for late reply! I had to reset my device since I was testing some android 11 rom and Thank you sooooo much for V2 of this kernel,usb/hid is working like a charm but I haven't tried bluetooth yet but will definitely try it soon since I don't know how to do it!
Please continue the development of this kerneland remember you are a legend!
Thank you again!
Hii! I want to try Kali nethunter on my device but there are many bugs that I am facing my internet is not working in Kali not monitor mode is working!
Can you please make a nethunter ROM!please
Or give me a backup of your ROM KERNEL AND FIRMWARE THAT I can flash through TWRP !
Please!
PS. Currently I am using Android 10 corvus os and nethunter is not working!