PDA

View Full Version : Nexus 5 - Can't get monitor mode to work



pispuso
2020-05-13, 10:29
Hello!

It's a fresh install over LineageOS 14.1 (Nougat) on my Nexus 5. Everything installed without problems so I went to Nethunter Store, downloaded Nexmon and opened it. First thing it asks me for root privileges, which I accept and Nexmon instantly crashes.... Well, let's try opening again, maybe was a fluke. Press again, and crashes... well ****.
Just in case I try to patch the firmware anyway but no luck, it looks like it's working, no errors.I open terminal, type source monstart-nh, seems to work as no errors are given, after that I try wifite, can't put to monitor mode... ok. Airmon-ng, same error... well lets check with nexutil -m... another error "CANNOT LINK EXECUTABLE "nexutil": library "libdl.so.2" not found". After I use monstop-nh I try again and nexutil works... I just don't know.

It's a fresh install so I don't really know what else I can do. Any tips are welcomed.

Thanks!

yesimxev
2020-07-28, 09:09
Hello!

It's a fresh install over LineageOS 14.1 (Nougat) on my Nexus 5. Everything installed without problems so I went to Nethunter Store, downloaded Nexmon and opened it. First thing it asks me for root privileges, which I accept and Nexmon instantly crashes.... Well, let's try opening again, maybe was a fluke. Press again, and crashes... well ****.
Just in case I try to patch the firmware anyway but no luck, it looks like it's working, no errors.I open terminal, type source monstart-nh, seems to work as no errors are given, after that I try wifite, can't put to monitor mode... ok. Airmon-ng, same error... well lets check with nexutil -m... another error "CANNOT LINK EXECUTABLE "nexutil": library "libdl.so.2" not found". After I use monstop-nh I try again and nexutil works... I just don't know.

It's a fresh install so I don't really know what else I can do. Any tips are welcomed.

Thanks!

I also have this on a fresh 6P. So far I've found out that doing
cp /usr/lib/aarch64-linux-gnu/libdl.so.2 /system/lib64/
cp /usr/lib/aarch64-linux-gnu/libc.so.6 /system/lib64/
cp /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 /system/lib64/
helps with that. I have a chan -1 issue though if not connected to any AP before . monstart-nh

Nivelem
2020-08-12, 13:02
try install Hijacker from nethunter store
Nexmon apk crash om many setup when you grand permision
If that didnt help
You may not be able to install nexmon on LineageOS 14.1
if you realy need android 7 please consider flash cfdroid.
But if you like simple flash last stock factory img and zip from offensive-security.
and run apt-get update
apt upgrade
apt-get install kali-tolls-wireless
apt-get install hcxtools
and just run
source monstart-nh && wifite -i wlan0
--- on nexus 6P--
you will also need to install libpcap-dev libc6 libc6-dev

yesimxev
2020-08-20, 23:26
I also have this on a fresh 6P. So far I've found out that doing
cp /usr/lib/aarch64-linux-gnu/libdl.so.2 /system/lib64/
cp /usr/lib/aarch64-linux-gnu/libc.so.6 /system/lib64/
cp /usr/lib/aarch64-linux-gnu/ld-linux-aarch64.so.1 /system/lib64/
helps with that. I have a chan -1 issue though if not connected to any AP before . monstart-nh

Otherwise, if the libnexmonkali is built with -s (stripped), it doesn't ask for the other libs. Anyway, fixed channel -1 is still there for all the time, so have give up for now

yesimxev
2020-08-20, 23:27
try install Hijacker from nethunter store
Nexmon apk crash om many setup when you grand permision
If that didnt help
You may not be able to install nexmon on LineageOS 14.1
if you realy need android 7 please consider flash cfdroid.
But if you like simple flash last stock factory img and zip from offensive-security.
and run apt-get update
apt upgrade
apt-get install kali-tolls-wireless
apt-get install hcxtools
and just run
source monstart-nh && wifite -i wlan0
--- on nexus 6P--
you will also need to install libpcap-dev libc6 libc6-dev

nexmon works properly on Nougat, the problem starts from Oreo 8+ versions

aaronouthier
2020-09-03, 03:15
I’m not sure about the Nexus 5, but on my Nexus 6p running LineageOS 17.1 with Android 10, I find that I don’t need Nexmon. I can put internal WiFi into Monitor mode first thing after installing NetHunter. The option is in the NetHunter app, under custom commands.

KaliWorm
2020-09-20, 17:37
Otherwise, if the libnexmonkali is built with -s (stripped), it doesn't ask for the other libs. Anyway, fixed channel -1 is still there for all the time, so have give up for now

Can you please provide instructions on how you built kalilibnexmon.so? I have been able to build my own libnexmon.so from the nexmon sources just fine, but I can't find instructions on how to build it for the Kali chroot environment.

yesimxev
2020-10-24, 00:09
Can you please provide instructions on how you built kalilibnexmon.so? I have been able to build my own libnexmon.so from the nexmon sources just fine, but I can't find instructions on how to build it for the Kali chroot environment.

Can you try this newly patched repo to build in kali chroot?


git clone https://github.com/dracode/libnexmonkali.git -b libnl-support
cd libnexmonkali
make

see if it works on armhf. After enabled monitor mode with nexutil, then do export LD_PRELOAD=/your_path/libnexmonkali.so in every newly opened kali terminal window before running tools such as airodump