ZerBea / hcxtools

A small set of tools to convert packets from capture files to hash files for use with Hashcat or John the Ripper.
MIT License
2k stars 392 forks source link

fatal error: openssl/sha.h: No such file or directory #56

Closed yildirimserkan closed 6 years ago

yildirimserkan commented 6 years ago

I tried make and make install but i got this error

cc -O3 -Wall -Wextra -std=gnu99 -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:23: build] Error 1

strasharo commented 6 years ago

Do you guys even bother to read the readme? https://github.com/ZerBea/hcxtools/issues/55

ZerBea commented 6 years ago

Not an issue. Missing dependency: https://github.com/ZerBea/hcxtools/issues/55 and from README.md:

tensigh commented 6 years ago

Yeah, I read the readme here on Github. Didn't list all of the dependent libraries. That would have helped. Having an executable that could be run would be helpful, too.

Thanks for making open source software so appealing, strasharo! I can't imagine why Microsoft stays in business with such warm attitudes towards users! (Sorry, after 2 hours of not being able to install and run this I'm a little cranky)

ZerBea commented 6 years ago

For sure, it lists all dependencies! libpcap-dev is for pcap.h

tensigh commented 6 years ago

You're right, my bad. My apologies. I got hcxtools confused with hcxdumptool, which doesn't list the requirements in the readme. That one installed much easier, tho'.

ZerBea commented 6 years ago

No problem. I'll drop that dependency as soon as I have some more time.

nubbix commented 5 years ago

Cannot install dependencies as it cannot be found. Using latest version of Kali Linux

Ref.

root@kali:~# apt install librt Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package librt root@kali:~# apt install zlib Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package zlib root@kali:~# apt install libcurl Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package libcurl root@kali:~# apt-get install librt Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package librt

Tried everything i can think of, but cannot seem to run make on the package

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
nubbix commented 5 years ago

Never mind, fixed it by installing the missing zlib and libcurl4-dev

qkum commented 5 years ago

I get this error when installing hcxtools on my raspberry pi - running Kali Linux. Even after installing the Full version ( 15 gb ). Need hcxtools for running wifite. Great thread this is. Second time it saves me.

Great work ZerBa, you are your weight wort in gold for the pentesters of the world! Keep up the good work :)

ZerBea commented 5 years ago

Well, the Raspberry Pi is really a great machine:

IMG_20190413_122226

Raspberry Pi Zero WH (hardware modified) + ALLNET ALLWA0150 + INTENSO 7322420 Powerbank, Li-Ion, 5200 mAh (internal WiFi disabled)

ZerBea commented 5 years ago

IMG_20190502_104154

Raspberry Pi Zero WH (hardware modified) + EDIMAX EW-7711UAN + INTENSO 7322420 Powerbank, Li-Ion, 5200 mAh (internal WiFi disabled)

ZerBea commented 5 years ago

Or the heavy duty equipment:

big

Raspberry Pi A+ (hardware modified), TENDA W311U+, FANTEC RBP-132H Powerbank, DELOCK 88806 panel

ZerBea commented 5 years ago

bigger

Raspberry Pi A+ (hardware modified), TENDA W311U+, FANTEC RBP-132H Powerbank, LOGILINK WL0095 panel

ZerBea commented 5 years ago

heavyduty

Raspberry Pi A+ (hardware modified), TENDA W311U+, FANTEC RBP-132H Powerbank, LOGILINK WL0097 dish

ZerBea commented 5 years ago

and always keep in mind: the antenna is the best high frequency amplifier!!!

rogueops commented 5 years ago

On Raspberry Pi Zero WH running kali 2019.3, got the error as I thought it would be installed by default so I popped open the readme and just ran apt-get install libcurl4-openssl-dev libssl-dev zlib1g-dev libpcap-dev from the readme and no more fatal error: openssl/sha.h: No such file or directory, i did issue a make clean before running again.