Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Did anyone manage to make Nexmon work on a nexus 6p (angler) oreo ? #1172

Closed
TheMMcOfficial opened this issue Jul 24, 2018 · 11 comments
Closed

Comments

@TheMMcOfficial
Copy link

TheMMcOfficial commented Jul 24, 2018

Device:

nexus 6p (angler) oreo

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

Oreo 8.0.0 or 8.1.0

Issue:

I have create an issue on the nexmon git and hijacker git but no one can help me there so I hope someone will be able to help me here.
seemoo-lab/nexmon#195
chrisk44/Hijacker#53

I have try to compile all the lib and the app. But I can't enable the monitor mode. I have read that I must be able to enable it on the Android terminal but not in the kale term. If you can help me with this issue I will be verry grateful. All the detail is in the nexmon issue.

Where i'm stuck:

angler:/ $ LD_PRELOAD=libnexmon.so tcpdump -i wlan0   
CANNOT LINK EXECUTABLE "tcpdump": library "libnexmon.so" is 64-bits instead of 32-bits.

The app was compile with the lastest version with my computer.

@TheMMcOfficial TheMMcOfficial changed the title Is someone succeded to make work nexmon on a nexus 6p (angler) oreo 8.0.0 Did anyone manage to make Nexmon work on a nexus 6p (angler) oreo 8.0.0 ? Aug 6, 2018
@TheMMcOfficial
Copy link
Author

TheMMcOfficial commented Aug 8, 2018

@binkybear Did you succeed to compile and install Nexmon on a Nexus 6P on android 8 to be able to make packets injection with the internal wifi card ?

@TheMMcOfficial TheMMcOfficial changed the title Did anyone manage to make Nexmon work on a nexus 6p (angler) oreo 8.0.0 ? Did anyone manage to make Nexmon work on a nexus 6p (angler) oreo ? Aug 20, 2018
@TheMMcOfficial
Copy link
Author

I think the libnexmon.so need to be 64 bit but I still got an error.

LD_PRELOAD=/system/su/lib64/libnexmon.so /system/su/xbin/airodump-ng wlan0                                                  
CANNOT LINK EXECUTABLE "/system/su/xbin/airodump-ng": "/system/su/lib64/libnexmon.so" is 64-bit instead 

@TheMMcOfficial
Copy link
Author

Ok I have test the whole thing in nethunter and I got this:

root@kali:~# LD_PRELOAD=/system/su/lib64/libnexmon.so airodump-ng wlan0
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/system/su/lib64/libnexmon.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ioctl(SIOCSIWMODE) failed: Operation not supported
ioctl(SIOCSIWMODE) failed: Interrupted system call
Error setting monitor mode on wlan0

@0E800
Copy link

0E800 commented Sep 13, 2018

Maybe its the pot and meth combo I had 2 days ago (or was it 3?) that's making it seem so, but in OP the error says it's expecting a 32 bit ver. but your probably doing something fresh thats making it 64 bit.

'CANNOT LINK EXECUTABLE "tcpdump": library "libnexmon.so" is 64-bits instead of 32-bits.'

Ya.dadamean?

Yeah I see now that I replied before I got to the bottom. Does the device have a built in chipset that supports monitor mode ?

And your still getting 64 bit errors .

I another nexmon thread you even say:

TheMMcOfficial
commented 6 months ago
[quote]
ok I have follow the procedure "Build patches for bcm4330, bcm4339 and bcm4358 using a x86 computer running Linux (e.g. Ubuntu 16.04)" on the github page. What is the next step?
[/quote]

Did you install Ubuntu 64?

@TheMMcOfficial
Copy link
Author

TheMMcOfficial commented Sep 13, 2018

@0E800 thanks to reply!

I have talk with the Nexmon dev And the Hijacker dev and my setup seems ok. I need the libnexmon.so 64 bits (arm64-v8) and the libraries in 32 bits (armeabi-v7a) because we can't built them in 64 bits. If you go on my nexmon issue and my hijacker you will see that I have also try with the 32 bit libnexmon.so but I still got some 32-bit error.

The nexmon patch for the Nexus 6p (bcm4358) was compiled and apply in /vendor/firmware.

I have compiled the Nexmon libs and bin with kali 64 bits and ubuntu 64 bit nothing change. I have no error and the architecture was add like the Nexmon Readme told me to do: sudo dpkg --add-architecture i386

I have test the NethunterOS on Nougat and the app Hijacker work well (I didn't change anything just install the app and ruen the tools). I msut miss something because it suppose to support the frame injection with the latest Nexmon firmware.

The latest error that I posted here was a test with the 64 bits libnexmon.so and the nethunter (kali) airodump-ng tool.

@ozsteyr
Copy link

ozsteyr commented Oct 7, 2018

@TheMMcOfficial would you be OK with posting your patches for 4358?

@TheMMcOfficial
Copy link
Author

fw_bcmdhd.zip
@ozsteyr there you go. Sorry for the delay !

@yweiss0
Copy link

yweiss0 commented Nov 1, 2018

@TheMMcOfficial so it is working for you on the nexus 6p?
I will really appreciate it if you could explain me how to make it work on the 6p

@TheMMcOfficial
Copy link
Author

TheMMcOfficial commented Nov 1, 2018

On oreo I can't manage to make it work... It's why I open this issue but I know it's possible because the NethunterOS is working I tested it.

@yweiss0

@yweiss0
Copy link

yweiss0 commented Nov 1, 2018

So in nethunter you managed to make it work? if i will install nethunter on nugat/oreo it will work with packet injection ?

@TheMMcOfficial
Copy link
Author

TheMMcOfficial commented Nov 1, 2018

It has been a long time when I try it... I don't remember but nethunter os is base on nougat not on oreo. I don't know if you can use it in the chroot or not. The 1st step if to make it work after we will be able to check if it work or why it doesn't.

@Re4son Re4son closed this as completed Feb 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants