ncrack icon indicating copy to clipboard operation
ncrack copied to clipboard

Building fails: ntlmssp.cc: undefined reference to `ntlm_create_hash(...`

Open DavHau opened this issue 6 years ago • 2 comments

Build fails on raspbian 9 (stretch) with the followiing error:

ntlmssp.o: In function `ntlmssp_generate_blob(auth_data*, unsigned char*, int, unsigned char**, unsigned short*)':
ntlmssp.cc:(.text+0x19c): undefined reference to `ntlm_create_hash(char const*, unsigned char*)'

Any ideas what could be the problem?

full log:

~/ncrack/ncrack-0.7 $ make
Compiling libnbase
cd nbase && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/nbase'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/nbase'
Compiling libnsock
cd nsock/src && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/nsock/src'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/nsock/src'
Compiling modules
cd modules && make
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7/modules'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7/modules'
make ncrack
make[1]: Entering directory '/home/pi/ncrack/ncrack-0.7'
Compiling Ncrack...
rm -f ncrack
g++ -Lnbase -Lnsock/src   -o ncrack ncrack.o utils.o TargetGroup.o Target.o targets.o NcrackOps.o Service.o ServiceGroup.o Connection.o services.o timing.o ncrack_error.o output.o ncrack_tty.o Buf.o NcrackOutputTable.o ncrack_input.o ncrack_resume.o crypto.o http.o http_digest.o xml.o ntlmssp.o modules/ncrack_ftp.o modules/ncrack_telnet.o modules/ncrack_http.o modules/ncrack_pop3.o modules/ncrack_vnc.o modules/ncrack_redis.o modules/ncrack_owa.o modules/ncrack_imap.o modules/ncrack_cassandra.o modules/ncrack_mssql.o modules/ncrack_cvs.o modules/ncrack_wordpress.o modules/ncrack_joomla.o modules/ncrack_dicom.o modules/ncrack_mqtt.o -lnsock -lnbase   
ntlmssp.o: In function `ntlmssp_generate_blob(auth_data*, unsigned char*, int, unsigned char**, unsigned short*)':
ntlmssp.cc:(.text+0x19c): undefined reference to `ntlm_create_hash(char const*, unsigned char*)'
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'ncrack' failed
make[1]: *** [ncrack] Error 1
make[1]: Leaving directory '/home/pi/ncrack/ncrack-0.7'
Makefile:64: recipe for target 'all' failed
make: *** [all] Error 2

DavHau avatar Sep 12 '19 10:09 DavHau

It should be the libssl-dev missing. Try apt-get install libssl-dev and then recompiling

ithilgore avatar Sep 12 '19 17:09 ithilgore

I have the same problem on Ubuntu 18 Installing libssl-dev did not solve the problem.

frakman1 avatar Mar 16 '21 00:03 frakman1