Git Product home page Git Product logo

Comments (59)

RealEnder avatar RealEnder commented on June 4, 2024 5

Hi, you're missing libpcap dependency. Install it with
sudo apt install libpcap-dev

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024 4

Pushed an update of hcxdumptool. Now we're using pkg-config, too. Please try.

from hcxtools.

Samir7885 avatar Samir7885 commented on June 4, 2024 3

I had the same problem but, here's the solution. Use command :
apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev libpcap-dev

And the "make install"

from hcxtools.

strasharo avatar strasharo commented on June 4, 2024 1

You need to install the libpcap-dev package. Check the readme:
To install requirements on Kali use the following 'apt-get install libpcap-dev libcurl4-openssl-dev libssl-dev'

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024 1

As of todays update (v 5.1.1), libpcap-dev is no longer needed. I got rid of that dependency.
From new README.md:
Requirements

  • Linux (recommended Arch Linux, but other distros should work, too (no support for other distributions).
  • libopenssl and openssl-dev installed
  • librt and librt-dev installed (should be installed by default)
  • zlib and zlib-dev installed (for gzip compressed cap/pcap/pcapng files)
  • libcurl and curl-dev installed (used by whoismac and wlancap2wpasec)
  • libpthread and pthread-dev installed (used by hcxhashcattool)
    To install requirements on Kali use the following 'apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev'

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024 1

Please comment output of
$ uname -a
to see what version you are using.
Make sure, your system is updated to latest version.
Read more here:
https://linuxconfig.org/how-to-update-kali-linux
If that doesn't work, your KALI is broken and you have to install it again. I assume your system is broken!

Now Clean up your folders:
rm -r hcxtools
rm -r hcxdumptool

Than do a fresh git clone:
git clone https://github.com/ZerBea/hcxtools
git clone https://github.com/ZerBea/hcxdumptool

Install dependencies as mentioned in README.md
$ apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev

Now you're ready to compile the tools:
cd hcxtools
$ sudo make
$ sudo make install
$ cd ../hcxdumptool
$ sudo make
$ sudo make install
$ cd ..

After this, you are ready to use hcxtools.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024 1

Give me some minutes to try something.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Consider also to install hcxdumptool from here:
https://github.com/ZerBea/hcxdumptool
hcxdumptool doesn't require libpcap and is the successor of wlandump-ng.
Please close issue, if everything's working and if the installation was successful,

from hcxtools.

Aspect9 avatar Aspect9 commented on June 4, 2024

- cant seem to initiate hcxtools gui thingy - mmmm - ?

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

That is correct, because hcxtools are commandline tools.
There is no GUI.

from hcxtools.

Mohammadkhalil92 avatar Mohammadkhalil92 commented on June 4, 2024

i have also this problem to install hcxtools
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcaptool.d -o hcxpcaptool hcxpcaptool.c -lz -lcrypto
In file included from hcxpcaptool.c:35:
include/gzops.c:1:10: fatal error: zlib.h: No such file or directory
#include <zlib.h>
^~~~~~~~
compilation terminated.
make: *** [Makefile:81: hcxpcaptool] Error 1

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

You must install zlib devel.
https://stackoverflow.com/questions/36374267/how-to-fix-fatal-error-zlib-h-no-such-file-or-directory?rq=1
and from the README.md:
To install requirements on Kali use the following 'apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev libpcap-dev'

from hcxtools.

InterCeptor0748 avatar InterCeptor0748 commented on June 4, 2024

Ehhhh, i had sorta the same problem. I was trying to broadcast my school's network, to view all connected devices. I was using wifite to try and capture the packet with the password, or, pmkid, and i needed these tools - i tried to use " git clone" yet the repository wasn't found... i also tried sudo apt-get install hcxpcaptool and things alike.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

git clone https://github.com/ZerBea/hcxtools
git clone https://github.com/ZerBea/hcxdumptool

Read more how to use git here:
https://git-scm.com/docs/git-clone

sudo apt-get .... is dependent on your distribution. Please ask the maintainer of your distribution.

from hcxtools.

chawwk53 avatar chawwk53 commented on June 4, 2024

If you install all the libraries everything will work fine.... I just did it

from hcxtools.

chawwk53 avatar chawwk53 commented on June 4, 2024

I used WiFi tell to crack a password... if pixiedust doesn't do it it goes next to pmkid attack... And uses a default dict..or wordlist

from hcxtools.

Emirdeg avatar Emirdeg commented on June 4, 2024

It cant localise the packages when I try to download the requirements

from hcxtools.

Emirdeg avatar Emirdeg commented on June 4, 2024

I changed the source list from which kali dowwnloads from to kali-rolling then it worked. Here is how to do it:

https://www.youtube.com/watch?v=jcFqvze2xJU

from hcxtools.

 avatar commented on June 4, 2024

apakah hcxtools hanya berjalan di kali linux saja?

from hcxtools.

shash95wat avatar shash95wat commented on June 4, 2024

sudo apt install libpcap-dev

it is showing unabel to locate package
k

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

libpcap-dev is no longer needed!

from hcxtools.

buddhimariner avatar buddhimariner commented on June 4, 2024

my operating system details
Static hostname: kali
Icon name: computer-laptop
Chassis: laptop
Machine ID: 17db5868fefe4c2096b430af45dc642f
Boot ID: fd1db360ad824801b4fe6932e70b132a
Operating System: Kali GNU/Linux Rolling
Kernel: Linux 4.18.0-kali2-amd64
Architecture: x86-64
Every one please help me I tried to install hcxpcaptool its not installing.It shows this error,please help me solve this error
root@kali:# git clone https://github.com/ZerBea/hcxtools.git
fatal: destination path 'hcxtools' already exists and is not an empty directory.
root@kali:
# cd hcxtools
root@kali:/hcxtools# make
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcaptool.d -o hcxpcaptool hcxpcaptool.c -lz -lcrypto
hcxpcaptool.c:16:10: fatal error: openssl/sha.h: No such file or directory
#include <openssl/sha.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:79: hcxpcaptool] Error 1
root@kali:
/hcxtools# sudo make install
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcaptool.d -o hcxpcaptool hcxpcaptool.c -lz -lcrypto
hcxpcaptool.c:16:10: fatal error: openssl/sha.h: No such file or directory
#include <openssl/sha.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:79: hcxpcaptool] Error 1

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Probably you are missing the openssl header files. Depending on your distribution (KALI) this package might have a different name, mostly it's something like openssl-dev or libcurl4-openssl-dev. After you installed the openssl header files, the compiler should be able to find openssl/sha.h.

Get more information about KALI packages here:
https://pkg.kali.org/pkg/openssl

from hcxtools.

buddhimariner avatar buddhimariner commented on June 4, 2024

Sir I`m new to kali linux and need your help please guide me how to install openssl files
apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version (1.1.0h-4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I tried to update and install openssl header files it was unsucessful

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

apt-get install openssl
is not enough.
You must install the corespondending header files, too. Usually they have an extension like -dev.
for example:
apt-get install libssl-dev
or what ever the package name is on KALI....
I don't use KALI.

from hcxtools.

wdccomhckr84 avatar wdccomhckr84 commented on June 4, 2024

root@atrophy:~/hcxtools# make
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcaptool.d -o hcxpcaptool hcxpcaptool.c -lz -lcrypto
hcxpcaptool.c:16:10: fatal error: openssl/sha.h: No existe el fichero o el directorio
#include <openssl/sha.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:79: hcxpcaptool] Error 1

from hcxtools.

wdccomhckr84 avatar wdccomhckr84 commented on June 4, 2024

tengo problema para instalar este software

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Cual sistema operativo?
KALI, Debian, Ubunut, Mint: apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev

from hcxtools.

kartik2502 avatar kartik2502 commented on June 4, 2024

root@Rosen:# cd hcxtools
root@Rosen:
/hcxtools# make
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcaptool.d -o hcxpcaptool hcxpcaptool.c -lz -lcrypto
hcxpcaptool.c:16:10: fatal error: openssl/sha.h: Tidak ada berkas atau direktori seperti itu
#include <openssl/sha.h>
^~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:79: hcxpcaptool] Error 1
root@Rosen:~/hcxtools#
??
help me please

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Missing dependency. You must(!) install the dev files to compile hcxtools:

  • libopenssl and openssl-dev installed
  • librt and librt-dev installed (should be installed by default)
  • zlib and zlib-dev installed (for gzip compressed cap/pcap/pcapng files)
  • libcurl and curl-dev installed (used by whoismac and wlancap2wpasec)
  • libpthread and pthread-dev installed (used by hcxhashcattool)

For example:
To install requirements on Kali use the following 'apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev'

from hcxtools.

Goldleman avatar Goldleman commented on June 4, 2024

No such file or directory

amnesia@amnesia:~/hcxtools$ Make
mkdir -p .deps
cc -03 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool
hcxpcapngtool.c -lz -lcrypto -lssl -DIVERSION_TAG="6.0.2-56-gcda28f5" -DIVERSION_YEAR="2020"
In file included from from hcxpcapngtool.c:41:
include/gzops.c:1:10: fatal error: zlib.h No such file or diretory
#include <zlib.h>
Compilation terminated.
make: *** [Makefile: 112: hcxpcapngtool] Error 1

from hcxtools.

strasharo avatar strasharo commented on June 4, 2024

install zlib-dev

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

As @strasharo mentioned: Solve the dependencies - in your case install zlib development files.

From README.md:

Requirements
--------------
* Linux (recommended Arch Linux, but other distros should work, too (no support for other distributions).
* libopenssl and openssl-dev installed
* librt and librt-dev installed (should be installed by default)
* zlib and zlib-dev installed (for gzip compressed cap/pcap/pcapng files)
* libcurl and curl-dev installed (used by whoismac and wlancap2wpasec)
* libpthread and pthread-dev installed (used by hcxhashcattool)

Use your package manager (depending on your distribution: apt, synaptic, yum, ... - or what ever) to solve the dependencies.
Please read more here:
#69

BTW:
I never understood, why some distributions need to install the development files separately. Unfortunately, it looks like you're running one of this distributions.

zlib is an integral part of every distribution:
https://www.zlib.net/

from hcxtools.

Goldleman avatar Goldleman commented on June 4, 2024

Permission Denied

amnesia@amnesia:~/hcxtools$ make install
install -D -m 0644 manpages/hcxpcapngtool.1 /usr/local/share/man/man1/hcxpcapngtool.1
install: cannot create regular file '/usr/local/share/man/man1/hcxpcapngtool.1': Permission Denied
make: *** [Makefile:112: hcxpcapngtool.man-install] Error 1

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

As a normal user, you don't have the permission to install files.
sudo should do the trick:
Do the following steps:
$ make
$ sudo make install

From README.md:

make
make install (as super user)

from hcxtools.

jhonnycalmurself avatar jhonnycalmurself commented on June 4, 2024

unable to install hcxtools in kali linux

please help me.

┌──(kali㉿kali)-[~]
└─$ sudo su
[sudo] password for kali:
┌──(root💀kali)-[/home/kali]
└─# git clone https://github.com/ZerBea/hcxtools.git
fatal: destination path 'hcxtools' already exists and is not an empty directory.

┌──(root💀kali)-[/home/kali]
└─# cd hcxtools 128 ⨯

┌──(root💀kali)-[/home/kali/hcxtools]
└─# sudo make && sudo make install
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -DVERSION_TAG="6.1.4-16-gcc3bff5" -DVERSION_YEAR="2020"
/usr/bin/ld: /tmp/ccO0B8GT.o: in function getpmkid': hcxpcapngtool.c:(.text+0x1ab7): undefined reference to PKCS5_PBKDF2_HMAC_SHA1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1b0d): undefined reference to EVP_sha1' /usr/bin/ld: hcxpcapngtool.c:(.text+0x1b37): undefined reference to HMAC'
/usr/bin/ld: /tmp/ccO0B8GT.o: in function initlists': hcxpcapngtool.c:(.text+0x2e25): undefined reference to OpenSSL_version_num'
/usr/bin/ld: /tmp/ccO0B8GT.o: in function outputeapmschapv2hashlist': hcxpcapngtool.c:(.text+0x4755): undefined reference to SHA1_Init'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x476a): undefined reference to SHA1_Update' /usr/bin/ld: hcxpcapngtool.c:(.text+0x477f): undefined reference to SHA1_Update'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x4795): undefined reference to SHA1_Update' /usr/bin/ld: hcxpcapngtool.c:(.text+0x47a8): undefined reference to SHA1_Final'
/usr/bin/ld: /tmp/ccO0B8GT.o: in function addpmkid': hcxpcapngtool.c:(.text+0x4c11): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x4c3f): undefined reference to HMAC' /usr/bin/ld: /tmp/ccO0B8GT.o: in function decompressgz':
hcxpcapngtool.c:(.text+0x61f0): undefined reference to inflateInit2_' /usr/bin/ld: hcxpcapngtool.c:(.text+0x62b4): undefined reference to inflate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x62c6): undefined reference to inflateEnd' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6304): undefined reference to inflateEnd'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6339): undefined reference to inflateEnd' /usr/bin/ld: /tmp/ccO0B8GT.o: in function omac1_aes_128_vector':
hcxpcapngtool.c:(.text+0x64b8): undefined reference to CMAC_CTX_new' /usr/bin/ld: hcxpcapngtool.c:(.text+0x64cd): undefined reference to EVP_aes_128_cbc'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x64e7): undefined reference to CMAC_Init' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6530): undefined reference to CMAC_Update'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6540): undefined reference to CMAC_CTX_free' /usr/bin/ld: hcxpcapngtool.c:(.text+0x656a): undefined reference to CMAC_Final'
/usr/bin/ld: /tmp/ccO0B8GT.o: in function testeapolpmk': hcxpcapngtool.c:(.text+0x678f): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x67bb): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x67e1): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x680c): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x69cb): undefined reference to EVP_sha256'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x69f5): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6a71): undefined reference to EVP_md5'
/usr/bin/ld: /tmp/ccO0B8GT.o: in function gethandshake': hcxpcapngtool.c:(.text+0x82ae): undefined reference to PKCS5_PBKDF2_HMAC_SHA1'
collect2: error: ld returned 1 exit status
make: *** No rule to make target 'hcxpcapngtool', needed by 'build'. Stop.

from hcxtools.

jhonnycalmurself avatar jhonnycalmurself commented on June 4, 2024

┌──(kali㉿kali)-[~]
└─$ uname -a 127 ⨯
Linux kali 5.9.0-kali1-amd64 #1 SMP Debian 5.9.1-1kali2 (2020-10-29) x86_64 GNU/Linux

from hcxtools.

jhonnycalmurself avatar jhonnycalmurself commented on June 4, 2024

when I tried to update it says permission denied

┌──(root💀kali)-[/home/kali]
└─# /etc/apt/sources.list 126 ⨯
zsh: permission denied: /etc/apt/sources.list

┌──(root💀kali)-[/home/kali]
└─# sudo apt uptdate 126 ⨯
E: Invalid operation uptdate

from hcxtools.

jhonnycalmurself avatar jhonnycalmurself commented on June 4, 2024

now I tried with different command

┌──(root💀kali)-[/home/kali]
└─# cat /etc/apt/sources.list

See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/

deb http://http.kali.org/kali kali-rolling main contrib non-free

Additional line for source packages

deb-src http://http.kali.org/kali kali-rolling main contrib non-free

┌──(root💀kali)-[/home/kali]
└─# sudo apt uptdate
E: Invalid operation uptdate

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

As assumed, your KALI installation is broken. You have to fix it or to install KALI new!

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

That is typical for KALI:
https://kalitut.com/how-to-update-kali-linux-and-fix-update/

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Running a not broken KALI, installation is working fine:
Dependencies not installed:
https://www.youtube.com/watch?v=qwqaLLY07tI

Dependencies already installed:
https://www.youtube.com/watch?v=ntDnnOG1K78

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

I am running into some issues installing...
Any idea what I might be missing? I believe all dependencies are installed.

uname -a
Linux 08012061 4.15.0-64-generic #73~16.04.1-Ubuntu SMP Fri Sep 13 09:56:18 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

/hcxtools# make
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -lssl -lcrypto -lz -DVERSION_TAG="6.1.4-16-gcc3bff5" -DVERSION_YEAR="2020"
hcxpcapngtool.c: In function ‘initlists’:
hcxpcapngtool.c:366:18: warning: implicit declaration of function ‘OpenSSL_version_num’ [-Wimplicit-function-declaration]
opensslversion = OpenSSL_version_num();
^
/tmp/ccbahBSu.o: In function initlists': hcxpcapngtool.c:(.text+0x3dbc): undefined reference to OpenSSL_version_num'
collect2: error: ld returned 1 exit status
make: *** No rule to make target 'hcxpcapngtool', needed by 'build'. Stop.

hcxdumptool# make install
cc -O3 -Wall -Wextra -std=gnu99 -o hcxpioff hcxpioff.c -DVERSION_TAG="6.1.4-1-g9c03887" -DVERSION_YEAR="2020"
cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -lcrypto -lssl -DVERSION_TAG="6.1.4-1-g9c03887" -DVERSION_YEAR="2020"
hcxdumptool.c: In function ‘globalinit’:
hcxdumptool.c:6936:18: warning: implicit declaration of function ‘OpenSSL_version_num’ [-Wimplicit-function-declaration]
opensslversion = OpenSSL_version_num();
^
/tmp/ccFVUsAe.o: In function globalinit': hcxdumptool.c:(.text+0x43be): undefined reference to OpenSSL_version_num'
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'build' failed
make: *** [build] Error 1

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

You are running an ancient Linux kernel. The kernel (4.15.0-64-) is EOL and no longer supported:
https://www.kernel.org/
Additional, Ubuntu 16.04. will reach EOL in a few month.
https://phoenixnap.com/kb/ubuntu-16-04-end-of-life

I recommend to update your system.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

BTW:
Have you installed OpenSSL as described in README.md?
$ sudo apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev

I assume, your OpenSSL version is ancient, too.
Please comment output of
$ openssl version

This is the latest version:

$ openssl version
OpenSSL 1.1.1h  22 Sep 2020

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

Thank you for your response. Openssl was definitely the issue for hxctools
I updated manually and the install worked

openssl version
OpenSSL 1.1.1h 22 Sep 2020

However, hcsdumptool is still having some issues with the OpenSSL version.
Do you see anything I might be missing here?

hcxdumptool# make install
cc -O3 -Wall -Wextra -std=gnu99 -o hcxpioff hcxpioff.c -DVERSION_TAG="6.1.4-1-g9c03887" -DVERSION_YEAR="2020"
cc -O3 -Wall -Wextra -std=gnu99 -o hcxdumptool hcxdumptool.c -lcrypto -lssl -DVERSION_TAG="6.1.4-1-g9c03887" -DVERSION_YEAR="2020"
/tmp/ccLk2Z9y.o: In function globalinit': hcxdumptool.c:(.text+0x43b7): undefined reference to OpenSSL_version_num'
hcxdumptool.c:(.text+0x4843): undefined reference to OPENSSL_init_ssl' hcxdumptool.c:(.text+0x484c): undefined reference to OPENSSL_init_ssl'
hcxdumptool.c:(.text+0x4851): undefined reference to TLS_server_method' /tmp/ccLk2Z9y.o: In function process80211eap':
hcxdumptool.c:(.text.unlikely+0x2c76): undefined reference to SSL_is_init_finished' hcxdumptool.c:(.text.unlikely+0x2db6): undefined reference to SSL_in_init'
hcxdumptool.c:(.text.unlikely+0x2dc9): undefined reference to SSL_is_init_finished' hcxdumptool.c:(.text.unlikely+0x2fc8): undefined reference to SSL_is_init_finished'
collect2: error: ld returned 1 exit status
Makefile:31: recipe for target 'build' failed
make: *** [build] Error 1

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Correct, you are missing the development files (includes). You have to install them ,too.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

gcc told you that the header files are missing by this error message:
undefined reference to ...

Read more here:
https://techoverflow.net/2019/10/13/how-to-install-openssl-development-headers-on-ubuntu/

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

Thanks again for your response.

So I do have the development headers installed, but it looks like they are the wrong version (1.0.2g) which might be the issue?

sudo apt -y install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version (1.0.2g-1ubuntu4.18).
The following packages were automatically installed and are no longer required:
libevent-core-2.0-5 libgoogle-perftools4 libtcmalloc-minimal4
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

Even though I manually installed openssl 1.1.1h, the development headers didn't update?
Do you know what else I might be doing wrong?
I appreciate your support.

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

ldd $(which openssl)
linux-vdso.so.1 => (0x00007ffd810f4000)
libssl.so.1.1 => /usr/local/lib/libssl.so.1.1 (0x00007f7e28dd8000)
libcrypto.so.1.1 => /usr/local/lib/libcrypto.so.1.1 (0x00007f7e288e5000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7e286c8000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7e282fe000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7e280fa000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7e2906c000)

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

You're running into a versioning conflict, by installing libraries manually and that will end up in a dependency hell!
16.04. doesn't provide the new dev files (that is UBUNTU policy) and you have to install them manually, too.
I can't recommend this, because it will destroy the package system, sooner or later.
Even if you are able to manage this, you'll run into the next dependency. This time it will be gcc:

$ gcc --version
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.

Which version do you have installed?

According to UBUNTU:
https://packages.ubuntu.com/xenial/gcc
the installed version of gcc (4:5.3.1-1ubuntu1) is ancient and reached EOL:
https://gcc.gnu.org/gcc-5/
(This release series is no longer supported.)
October 10, 2017

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

gcc --version
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.12) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Unfortunately, starting fresh with a new version of Ubuntu is not an option, as the device I'm trying to run hcxdumptool on is physical at a remote location.
What's weird is that hxctools was getting the same error, but updating openssl to v1.1.1h fixed it. For some reason, hcxdumptool is not working the same

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

hcxdumptool doesn't use pkg-config. Maybe this could be the problem.

from hcxtools.

RedTeamMagic avatar RedTeamMagic commented on June 4, 2024

Dude, you're incredible!
Thanks for being so responsive!!
I owe you big time

make
mkdir -p .deps
cc -O3 -Wall -Wextra -std=gnu99 -I/usr/local/include -MMD -MF .deps/hcxdumptool.d -o hcxdumptool hcxdumptool.c -L/usr/local/lib -lssl -lcrypto -DVERSION_TAG="6.1.4-3-g55b5135" -DVERSION_YEAR="2020"
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpioff.d -o hcxpioff hcxpioff.c -DVERSION_TAG="6.1.4-3-g55b5135" -DVERSION_YEAR="2020"

make install
install -D -m 0755 hcxdumptool /usr/local/bin/hcxdumptool
install -D -m 0755 hcxpioff /usr/local/bin/hcxpioff

hcxdumptool --help
hcxdumptool 6.1.4-3-g55b5135 (C) 2020 ZeroBeat
usage : hcxdumptool

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Glad to hear that it is working, now. Moving to pkgconf did the trick.

from hcxtools.

MorphinesSupreme avatar MorphinesSupreme commented on June 4, 2024

Hello I'm relatively new to KALI but I've been having what I think could be a similar issue? I'm not very sure but I've installed and updated all required dependencies and still get this issue.

└─$ sudo uname -a
Linux KALIMK2 5.9.0-kali4-amd64 #1 SMP Debian 5.9.11-1kali1 (2020-12-01) x86_64 GNU/Linux

└─$ sudo rm -r hcxdumptool

└─$ sudo rm -r hcxtools

└─$ sudo git clone https://github.com/ZerBea/hcxdumptool.git
Cloning into 'hcxdumptool'...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (23/23), done.
remote: Total 2932 (delta 16), reused 24 (delta 9), pack-reused 2900
Receiving objects: 100% (2932/2932), 1.04 MiB | 1.78 MiB/s, done.
Resolving deltas: 100% (1996/1996), done.

└─$ sudo git clone https://github.com/ZerBea/hcxtools.git
Cloning into 'hcxtools'...
remote: Enumerating objects: 62, done.
remote: Counting objects: 100% (62/62), done.
remote: Compressing objects: 100% (41/41), done.
remote: Total 7511 (delta 32), reused 41 (delta 21), pack-reused 7449
Receiving objects: 100% (7511/7511), 2.30 MiB | 2.65 MiB/s, done.
Resolving deltas: 100% (5216/5216), done.

└─$ sudo apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libcurl4-openssl-dev is already the newest version (7.72.0-1).
libssl-dev is already the newest version (1.1.1h-1).
zlib1g-dev is already the newest version (1:1.2.11.dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

└─$ cd hcxtools

└─$ sudo make
mkdir -p .deps
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
make: pkg-config: No such file or directory
cc -O3 -Wall -Wextra -std=gnu99 -MMD -MF .deps/hcxpcapngtool.d -o hcxpcapngtool hcxpcapngtool.c -DVERSION_TAG="6.1.4-17-g4a09689" -DVERSION_YEAR="2020"
/usr/bin/ld: /tmp/ccIK485K.o: in function getpmkid': hcxpcapngtool.c:(.text+0x1ab7): undefined reference to PKCS5_PBKDF2_HMAC_SHA1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x1b0d): undefined reference to EVP_sha1' /usr/bin/ld: hcxpcapngtool.c:(.text+0x1b37): undefined reference to HMAC'
/usr/bin/ld: /tmp/ccIK485K.o: in function initlists': hcxpcapngtool.c:(.text+0x2e25): undefined reference to OpenSSL_version_num'
/usr/bin/ld: /tmp/ccIK485K.o: in function outputeapmschapv2hashlist': hcxpcapngtool.c:(.text+0x4755): undefined reference to SHA1_Init'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x476a): undefined reference to SHA1_Update' /usr/bin/ld: hcxpcapngtool.c:(.text+0x477f): undefined reference to SHA1_Update'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x4795): undefined reference to SHA1_Update' /usr/bin/ld: hcxpcapngtool.c:(.text+0x47a8): undefined reference to SHA1_Final'
/usr/bin/ld: /tmp/ccIK485K.o: in function addpmkid': hcxpcapngtool.c:(.text+0x4c11): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x4c3f): undefined reference to HMAC' /usr/bin/ld: /tmp/ccIK485K.o: in function decompressgz':
hcxpcapngtool.c:(.text+0x61f0): undefined reference to inflateInit2_' /usr/bin/ld: hcxpcapngtool.c:(.text+0x62b4): undefined reference to inflate'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x62c6): undefined reference to inflateEnd' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6304): undefined reference to inflateEnd'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6339): undefined reference to inflateEnd' /usr/bin/ld: /tmp/ccIK485K.o: in function omac1_aes_128_vector':
hcxpcapngtool.c:(.text+0x64b8): undefined reference to CMAC_CTX_new' /usr/bin/ld: hcxpcapngtool.c:(.text+0x64cd): undefined reference to EVP_aes_128_cbc'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x64e7): undefined reference to CMAC_Init' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6530): undefined reference to CMAC_Update'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x6540): undefined reference to CMAC_CTX_free' /usr/bin/ld: hcxpcapngtool.c:(.text+0x656a): undefined reference to CMAC_Final'
/usr/bin/ld: /tmp/ccIK485K.o: in function testeapolpmk': hcxpcapngtool.c:(.text+0x678f): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x67bb): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x67e1): undefined reference to EVP_sha1'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x680c): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x69cb): undefined reference to EVP_sha256'
/usr/bin/ld: hcxpcapngtool.c:(.text+0x69f5): undefined reference to HMAC' /usr/bin/ld: hcxpcapngtool.c:(.text+0x6a71): undefined reference to EVP_md5'
/usr/bin/ld: /tmp/ccIK485K.o: in function gethandshake': hcxpcapngtool.c:(.text+0x82ae): undefined reference to PKCS5_PBKDF2_HMAC_SHA1'
collect2: error: ld returned 1 exit status
make: *** [Makefile:113: hcxpcapngtool] Error 1

Any help or insight would be greatly appreciated.

***EDIT - FIXED ***

Sorry to have wasted your time but I was missing pkg-config, simply running :

$ sudo apt-get install pkg-config

This solved the issue after trying a fresh build of both hcxtools and hcxdumptool.

Thank you

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

Using pkg-config makes compiling process a little bit more easy. So I decided to use it for both (hcxtools and hcxdumptool). I'll add a small note to README.md.

from hcxtools.

MorphinesSupreme avatar MorphinesSupreme commented on June 4, 2024

Thank you very much. You are an absolute legend for being this responsive.

from hcxtools.

ZerBea avatar ZerBea commented on June 4, 2024

No problem, you're welcome.

from hcxtools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.