Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexus 5 with Nexmon, but "airodump-ng wlan0" no results #379

Open
Sma11M00n opened this issue Feb 7, 2020 · 2 comments
Open

Nexus 5 with Nexmon, but "airodump-ng wlan0" no results #379

Sma11M00n opened this issue Feb 7, 2020 · 2 comments

Comments

@Sma11M00n
Copy link

hi,
i got a nexus5 with:

Then i built nexmon followed by the procedure "Build patches for bcm4330, bcm4339 and bcm4358 using a x86 computer running Linux"

everything is ok but when i use kali-terminal with "LD_PRELOAD=libfakeioctl.so airodump-ng wlan0", it shows:
ERROR: ld.so: object 'libfakeioctl.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ioctl(SIOCSIWMODE) failed: Operation not supported ioctl(SIOCSIWMODE) failed: Operation not supported Error setting monitor mode on wlan0 Failed initializing wireless card(s): wlan0

Then, i try same command in adb-terminal with root, "LD_PRELOAD=libfakeioctl.so airodump-ng wlan0" is success but no results and no errors.
libfakeioctl.so is in /system/lib and airodump-ng is in /system/bin, both them are built in nexmon/utilities

Also, i try Hijack app in my devices, and it's also the same situation.

So, What I do wrong ?

P.S. maybe i need build nexmon in nethunter, but i can't find any guide,please help me with this. Thanks a lot

@baselsayeh
Copy link
Contributor

baselsayeh commented Feb 18, 2020

(cannot open shared object file) means that you did not install the library file properly.
See this page for how to use the patch correctly.
Also, you may need to compile the utilities manually because the nexmon app is outdated, see This page for how to compile the utilities
Basically:
download and extract ndk 11c
export NDK_ROOT=/path/to/ndk11c
cd utilities
make

@BeeAndL
Copy link

BeeAndL commented Jun 8, 2020

@baselsayeh
sir, I had a similar problem make the nexutil

In file included from ./nexutil.c:39:0:
./../libargp/argp.h:583:3: error: #error "Please include config.h first."
  #error "Please include config.h first."
   ^
./../libargp/argp.h:585:1: error: unknown type name '_GL_INLINE_HEADER_BEGIN'
 _GL_INLINE_HEADER_BEGIN
 ^
./../libargp/argp.h:616:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
 ARGP_EI void
         ^
./../libargp/argp.h:622:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 ARGP_EI int
         ^
./../libargp/argp.h:634:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
 ARGP_EI int
         ^
./../libargp/argp.h:645:1: error: unknown type name '_GL_INLINE_HEADER_END'
 _GL_INLINE_HEADER_END
 ^
In file included from /home/yxy/android-ndk-r11c/platforms/android-21/arch-arm64/usr/include/byteswap.h:31:0,
                 from ./nexutil.c:41:
/home/yxy/android-ndk-r11c/platforms/android-21/arch-arm64/usr/include/sys/endian.h:52:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'htonl'
 uint32_t htonl(uint32_t) __pure2;
          ^
In file included from /home/yxy/nexmon/patches/include/asm/socket.h:19:0,
                 from ./../../patches/include/linux/socket.h:27,
                 from /home/yxy/android-ndk-r11c/platforms/android-21/arch-arm64/usr/include/sys/socket.h:34,
                 from ./nexutil.c:44:
/home/yxy/nexmon/patches/include/asm-generic/socket.h:21:65: fatal error: home/yxy/nexmon/patches/include/asm-generic/sockios.h: No such file or directory
 #include <home/yxy/nexmon/patches/include/asm-generic/sockios.h>
                                                                 ^
compilation terminated.
/home/yxy/android-ndk-r11c/build/core/build-binary.mk:460: recipe for target 'local/arm64-v8a/objs/nexutil/nexutil.o' failed
make[1]: *** [local/arm64-v8a/objs/nexutil/nexutil.o] Error 1
make[1]: Leaving directory '/home/yxy/nexmon/utilities/nexutil'
Makefile:11: recipe for target 'libs/armeabi/nexutil' failed
make: *** [libs/armeabi/nexutil] Error 2

Here are some of my environment

export NDK_ROOT=/home/yxy/android-ndk-r11c/
export PATH=$NDK_ROOT:$PATH

Can you give me some help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants