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

Open
#62 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
build-system

Research direction

Start by tracing the ntlm_create_hash reference from ntlmssp.cc and checking which source file should provide its definition and whether that file is included in the link command shown in the report. Reproduce the build on Raspbian 9 if possible and compare the relevant build configuration. Done when the build links successfully and the reported undefined reference is resolved.

Written by the indexing model from the issue text.

Description

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

Dominant language
C
Stars
1.2k
Forks
275
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nmap/ncrack

All issues in nmap/ncrack

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.