Coder Social home page Coder Social logo

Comments (11)

mhzsuraj22 avatar mhzsuraj22 commented on May 18, 2024

While installing hcxtools it says the following error:
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

also icant seem to install any other package required like
libopenssl
openssl-dev
libcurl

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Which distribution do you run?
In case of debian based distribution (KALI, UBUNTU) you must install the dev packages!

If you need more informations, follow this issue here:
#55

or check the README:
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'

Or just do a google search. For example: "debian openssl/sha.h: No such file or directory"
https://unix.stackexchange.com/questions/87458/make-fatal-error-openssl-sha-h-no-such-file-or-directory

BTW:
I closed this issue, because it isn't a hcxtools issue.
Of course, you can comment further questions here, if you need help.

from hcxtools.

mhzsuraj22 avatar mhzsuraj22 commented on May 18, 2024

I am running on kali Linux 2019.2
But I cant seem to install those packages
So would you be kind enough to send me the kali repositories. Bcoz mine doesn't seem to work
As it cant locate those mentioned packages.

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Did you run:
$ apt get update
$ apt-get upgrade
$ apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev

BTW:
I can't send you the KALI repositories, because this is the world of Arch Linux here.

You can find the kali Linux Package Tracker here:
https://pkg.kali.org/

for example search for openssl:
https://pkg.kali.org/pkg/openssl

It is possible that KALI changed the name of the Package:
https://forums.kali.org/showthread.php?35011-Issues-with-libssl-John-the-Ripper

from hcxtools.

mhzsuraj22 avatar mhzsuraj22 commented on May 18, 2024

Yeah I ran all the commnds
All came positive except for that last one
It just cant locate the package
Anyways thanks
I will try more and reply if I found the answer
Thank you so much for the quick response

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Also I recommend to read this here, if you are a Linux beginner:
https://itsfoss.com/kali-linux-review/

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Ok, please post the error message from apt.
It looks like a typical KALI issue, because we have more than one issue report here:
#93
#57
#56

Maybe I need to update the REAME, because KALI change the package names (again).

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Both tools came up with KALI:
https://pkg.kali.org/pkg/hcxtools
https://pkg.kali.org/pkg/hcxdumptool

from hcxtools.

DarioMorariu avatar DarioMorariu commented on May 18, 2024

I'm having the exact same problem. I'm using a pwnagotchi.

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

@DarioMorariu
Provided that you're running the latest release v1.5.5:
https://github.com/evilsocket/pwnagotchi/releases/tag/v1.5.5
You should know that the underlying OS (Raspbian lite - based on Debian) is old (Apr 18, 2021).

Latest Raspbian lite version is Bookworm (Debian 12) with release date: December 11th 2023)
https://www.raspberrypi.com/software/operating-systems/

As mentioned in README.md section requirements, you need libopenssl >= 3.0 to compile hcxtools.
* libopenssl (>= 3.0) and openssl-dev installed

This version is provided by Bookworm:
https://packages.debian.org/bookworm/openssl

Older versions, e.g. Bullseye provide version 1.1.1w only:
https://packages.debian.org/bullseye/openssl
Due to missing functions, you can't compile hcxtools running this old library.

You now have two options:
update to bookworm
or
compile openssl by yourself (I do not recommend this, because you will end up in a dependency hell)
https://www.openssl.org/

BTW:
According to this the pwnagotchi recommended hardware is a Raspberry Pi 0 W:
https://pwnagotchi.org/getting-started/suggested-working-hardware/index.html

I suggest to take a look at OpenWRT:
https://openwrt.org/
https://openwrt.org/packages/pkgdata/hcxtools
https://openwrt.org/packages/pkgdata/hcxdumptool

You can build a test image via the firmware selector:
https://firmware-selector.openwrt.org/?version=23.05.2&target=bcm27xx%2Fbcm2708&id=rpi

from hcxtools.

ZerBea avatar ZerBea commented on May 18, 2024

Also you should know that Debian (and its clones like Raspbain, UBUNTU, KALI, ...) does not install a development environment by default!

If you decide to compile tools, it is mandatory to install the development environment, the development tools, the header files (-dev packages) and the libraries (linked by hcxtools).
If this environment is missing (not installed or incomplete), you'll end up in an ERROR like this one:
fatal error: openssl/sha.h: No such file or directory

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.