Comments (13)
Linux localhost 4.4.78-perf-ge57b3e5 #1 SMP PREEMPT Thu Mar 14 04:05:42 CST 2019 aarch64 Android
android 8.0.0
https://play.google.com/store/apps/details?id=com.termux
https://gitlab.com/st42/termux-sudo
https://github.com/termux/unstable-packages
https://github.com/termux/termux-root-packages
from hcxdumptool.
It looks like your environment doesn't pull Android ifaddrs.h automatically.
Download ifaddrs.h from here:
https://github.com/morristech/android-ifaddrs
copy ifaddrs.h to include/android-ifaddrs/
and try it again.
from hcxdumptool.
I assume that you did a fresh git clone of hcxdumptool:
git clone https://github.com/ZerBea/hcxdumptool
and prepared the clone for Android:
cd hcxdumptool
git submodule init
git submodule update
before you run make
from hcxdumptool.
From the README.md:
Compile for Android
You need:
-
Android NDK installed in your system and in path variable
-
This repository cloned with all submodules (
--recursive
flag ingit clone
orgit submodules update
command run)
Just run ndk-build
- built executables for some architectures should be created inside libs
directory.
Copy it to your phone and enjoy.
from hcxdumptool.
$ make
cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c
In file included from hcxdumptool.c:24:
./include/android-ifaddrs/ifaddrs.c:89:9: warning: unused variable 'l_result'
[-Wunused-variable]
int l_result;
^
./include/android-ifaddrs/ifaddrs.c:291:15: warning: unused variable 'l_rtaData'
[-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
^
./include/android-ifaddrs/ifaddrs.c:376:15: warning: unused variable 'l_rtaData'
[-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
^
hcxdumptool.c:221:20: warning: unused function 'debugprint' [-Wunused-function]
static inline void debugprint(int len, uint8_t *ptr)
^
hcxdumptool.c:233:20: warning: unused function 'debugprint2' [-Wunused-function]
static inline void debugprint2(int len, uint8_t *ptr, int len2, uint8_t *ptr2)
^
5 warnings generated.
$ sudo make install
cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c
In file included from hcxdumptool.c:24:
./include/android-ifaddrs/ifaddrs.c:89:9: warning: unused variable 'l_result' [-Wunused-variable]
int l_result;
^
./include/android-ifaddrs/ifaddrs.c:291:15: warning: unused variable 'l_rtaData' [-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
^
./include/android-ifaddrs/ifaddrs.c:376:15: warning: unused variable 'l_rtaData' [-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
^
hcxdumptool.c:221:20: warning: unused function 'debugprint' [-Wunused-function]
static inline void debugprint(int len, uint8_t *ptr)
^
hcxdumptool.c:233:20: warning: unused function 'debugprint2' [-Wunused-function]
static inline void debugprint2(int len, uint8_t *ptr, int len2, uint8_t *ptr2)
^
5 warnings generated.
install -m 0755 -D hcxdumptool /usr/local/bin/hcxdumptool
install: cannot create directory '/usr': Read-only file system
make: *** [Makefile:38: install] Error 1
from hcxdumptool.
i can't!!... t.t
from hcxdumptool.
/data/data/com.termux/files/usr/bin/
???...
from hcxdumptool.
Ok, now we have several different issues:
- I fixed this 2 warnings by latest commit:
41c4547
hcxdumptool.c:221:20: warning: unused function 'debugprint' [-Wunused-function]
static inline void debugprint(int len, uint8_t *ptr)
^
hcxdumptool.c:233:20: warning: unused function 'debugprint2' [-Wunused-function]
static inline void debugprint2(int len, uint8_t *ptr, int len2, uint8_t *ptr2)
- I can't fix that warnings, because the source code is not part of hcxdumptool. This Android source code is pulled from here: https://github.com/morristech/android-ifaddrs
./include/android-ifaddrs/ifaddrs.c:89:9: warning: unused variable 'l_result'
[-Wunused-variable]
int l_result;
^
./include/android-ifaddrs/ifaddrs.c:291:15: warning: unused variable 'l_rtaData'
[-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
^
./include/android-ifaddrs/ifaddrs.c:376:15: warning: unused variable 'l_rtaData'
[-Wunused-variable]
void *l_rtaData = RTA_DATA(l_rta);
That are just warnings, but you can report that issue here:
https://github.com/morristech/android-ifaddrs
- You are running into a broken Android environment and you have to fix that.
Is Android NDK properly installed on your system and in path variable?
Did you run ndk-build to build the envirnonment?
Running simple "make" without building Android environment before isn't enough!
Get more information here:
https://developer.android.com/ndk/guides/ndk-build
from hcxdumptool.
From the README.md:
Compile for AndroidYou need:
- Android NDK installed in your system and in path variable
- This repository cloned with all submodules (
--recursive
flag ingit clone
orgit submodules update
command run)Just run
ndk-build
- built executables for some architectures should be created insidelibs
directory.
Copy it to your phone and enjoy.
git submodule(s) update
?
from hcxdumptool.
By git submodules update you make sure, that external parts are loaded before you compile the source code. That can be done with git clone recursive flag or if the clone allready exists on your local system, with git submodule init and git submodule update.
At this point you finished the hcxdumtool part.
Next step is to build your Android environment for your phone, so that you are able to compile it:
Make sure, you understand this: https://developer.android.com/ndk/guides/ndk-build
than run ndk-build
Android NDK and ndk-build are not part of hcxtools/hcxdumptool, so you must read all about this here:
https://developer.android.com
I only support Arch Linux!
from hcxdumptool.
Ok, I think we are talking about different things. The make file is for Linux only. It doesn't work on an Android device.
Here are the basic steps you have to do:
-
you need a Linux system
-
do a git clone of hcxdumptool on that Linux system, either with recursive flag
or cd to hcxtools and run git submodule init and git submodule update -
Install Android NDK using the packaging system of your distribution or by hand
Read more here:
https://stackoverflow.com/questions/26967722/how-to-install-android-ndk-in-linux
https://wiki.appcelerator.org/display/guides2/Installing+the+Android+NDK
https://www.xda-developers.com/understanding-cross-compiling-and-how-it-relates-to-android/
do not try to do this on a live system, because that are several GB!
do not try to do this on a penetration testing system like KALI - you will run into dependency trouble
-
cd to hcxdumptool directory and run ndk-build
-
if the make process finished without errors, copy the binary to your phone
from hcxdumptool.
Closed this issue, because it is related to missing Android NDK.
from hcxdumptool.
showing
cc -O3 -Wall -Wextra -std=gnu99 -o hcxpioff hcxpioff.c
cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c
install -m 0755 -D hcxpioff /usr/local/bin/hcxpioff
install -m 0755 -D hcxdumptool /usr/local/bin/hcxdumptool
rm -f hcxpioff
rm -f hcxdumptool
rm -f *.o *~
from hcxdumptool.
Related Issues (20)
- HCXDumpTool & MediaTEK MT7922 / MT7921E (Part 2) HOT 3
- orange pi zero HOT 1
- hcxdumptool: unrecognized option 'enable_status=15' HOT 2
- Is the problem in the driver or in the operating system? HOT 1
- Add a gpiowait.svg alongside gpiowait.odg HOT 2
- attack behaviors rules HOT 65
- openwrt: Issue finding interfaces HOT 44
- Android build instructions HOT 5
- prevent spoofed beacons from transmitting HOT 3
- How can I delete this tool? HOT 2
- hcxdumptool missing options HOT 2
- What to use it in 2024?
- error using option "-o" to write the dump file.
- Older version HOT 1
- undirected proberequest frames. HOT 1
- rds Usage HOT 1
- Atheros chipset (ERRORs caused by misconfigured KALI) HOT 21
- Arrays explained HOT 1
- Documentation about attack vectors and what options affect them HOT 7
- How to filter (skip) certain access points? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcxdumptool.