BUMP! I am also receiving this error with nmap:[*] Nmap: 'nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference'
Hi all,
unfortunately nmap 5.51 in Metasploit 3.8.0 on BT5 Gnome 64bit running inside VMWare Fusion is not working correctly:
msf > db_status
[*] postgresql connected to msf3
msf > db_nmap -A 192.168.1.0/24
[*] Nmap: Starting Nmap 5.51SVN ( http://nmap.org ) at 2011-05-23 12:44 CEST[*] Nmap: 'nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference'
msf > nmap -A 192.168.1.0/24
[*] exec: nmap -A 192.168.1.0/24
Starting Nmap 5.51SVN ( http://nmap.org ) at 2011-05-23 12:46 CEST
nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
msf > exit
root@bt:~# nmap -A 192.168.178.0/24
Starting Nmap 5.51 ( http://nmap.org ) at 2011-05-23 12:47 CEST
*** Here nmap is working ok! ***
Tried to fix it, but with no success:
root@bt:~# which nmap
/usr/local/bin/nmap
root@bt:~# find / -name nmap -type f
/opt/framework3/bin/nmap
/usr/local/bin/nmap
root@bt:~# cp /opt/framework3/bin/nmap /opt/framework3/bin/nmap.old
root@bt:~# cp /usr/local/bin/nmap /opt/framework3/bin/nmap
msf > db_nmap -A 192.168.178.0/24
[*] Nmap: 'nmap: /opt/framework3/lib/libssl.so.0.9.8: no version information available (required by nmap)'
[*] Nmap: 'nmap: /opt/framework3/lib/libcrypto.so.0.9.8: no version information available (required by nmap)'
[*] Nmap: Starting Nmap 5.51 ( http://nmap.org ) at 2011-05-23 12:55 CEST
[*] Nmap: 'NSE: failed to initialize the script engine:'
[*] Nmap: '/opt/framework3/share/nmap/nse_main.lua:543: attempt to call field 'fetchscript' (a nil value)'
[*] Nmap: 'stack traceback:'
[*] Nmap: '/opt/framework3/share/nmap/nse_main.lua:543: in function 'Entry''
[*] Nmap: '/opt/framework3/share/nmap/scripts/script.db:7: in function 'db_closure''
[*] Nmap: '/opt/framework3/share/nmap/nse_main.lua:566: in function 'get_chosen_scripts''
[*] Nmap: '/opt/framework3/share/nmap/nse_main.lua:1006: in main chunk'
[*] Nmap: '[C]: ?'
[*] Nmap: 'QUITTING!'
msf > nmap -A 192.168.178.0/24[*] exec: nmap -A 192.168.178.0/24
nmap: /opt/framework3/lib/libssl.so.0.9.8: no version information available (required by nmap)
nmap: /opt/framework3/lib/libcrypto.so.0.9.8: no version information available (required by nmap)
Starting Nmap 5.51 ( http://nmap.org ) at 2011-05-23 12:55 CEST
NSE: failed to initialize the script engine:
/opt/framework3/share/nmap/nse_main.lua:543: attempt to call field 'fetchscript' (a nil value)
stack traceback:
/opt/framework3/share/nmap/nse_main.lua:543: in function 'Entry'
/opt/framework3/share/nmap/scripts/script.db:7: in function 'db_closure'
/opt/framework3/share/nmap/nse_main.lua:566: in function 'get_chosen_scripts'
/opt/framework3/share/nmap/nse_main.lua:1006: in main chunk
[C]: ?
QUITTING!
Any ideas?
Cheers & thank you,
Roland
BUMP! I am also receiving this error with nmap:[*] Nmap: 'nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference'
unfortunately i can confirm this also on Gnome 64 hdd install
I fixed this issue by downloading nscd and changing the following line in /etc/nscd.conf:
enable-cache hosts no
to:
enable-cache hosts yes
Same problem here.
Backtrack5 64bit, metasploit v3.7.1-release [core:3.7 api:1.0]
Code:[*] Nmap: 'nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference
Same issue from a freshly downloaded 32-bit GNOME VM before and after msfupdate. Tried replacing /opt/framework3/bin/nmap with /usr/local/bin/nmap but that didn't work. Tried downgrading framework3 but that also didn't do anything.
A solution that worked for me was to install a separate version of msf3. The installation procedure is detailed in https://community.rapid7.com/docs/DOC-1293 but I'll summarize the steps here:
1. Download the UNIX tarball http://www.metasploit.com/download/
As of this post, the version is 3.7.2. I decided to download it into /pentest:
You should now have an alternate metasploit installation on /pentest/msf3Code:cd /pentest wget http://updates.metasploit.com/data/releases/framework-3.7.2.tar.bz2 tar xvjf framework-3.7.2.tar.bz2
2. We don't want this install to blow away the default install from BT5, so we can create our own $HOME/msfbin directory and create symlinks there, and update our PATH accordingly:
If you type msfconsole it should launch the one in $HOME/msfbin now.Code:mkdir $HOME/msfbin ln -sf /pentest/msf3/msf* $HOME/msfbin export PATH=$HOME/msfbin:$PATH
3. When you start msfconsole, you won't be connected to a database, so you'll need to set it up. I followed these instructions to setup Postgres but could not get it to work: http://www.backtrack-linux.org/forum...ostgresql.html So I setup a standalone MySQL database instead using these instructions and was able to get the database working with metasploit: http://www.backtrack-linux.org/forum...ne-server.html
To summarize getting MySQL running with metasploit:
Then run the following and select ruby 1.8:Code:apt-get install libmysqlclient-dev
4. Do an msfudpate if you like before starting msfconsole. After all this, the following command finally works without spitting the nmap relocation error message:Code:update-alternatives --config ruby gem install mysql
Hope this helps someone.Code:db_nmap -sS -A -O 192.168.1.0/24
I have a different error:
[*] Nmap: Starting Nmap 5.51SVN ( http://nmap.org ) at 2011-08-13 03:12 PDT[*] Nmap: 'nmap: relocation error: /lib/libnss_files.so.2: symbol __rawmemchr, version GLIBC_2.2.5 not defined in file libc.so.6 with link time reference'