projectdiscovery / naabu

A fast port scanner written in go with a focus on reliability and simplicity. Designed to be used in combination with other tools for attack surface discovery in bug bounties and pentests

Home Page:https://projectdiscovery.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error while loading shared libraries

sec13b opened this issue · comments

cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
naabu_2.3.0_linux_amd64.zip 
cp naabu /usr/bin/naabu
chmod +x /usr/bin/naabu
naabu
naabu: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory
 locate libpcap
/usr/lib64/libpcap.so
/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.5.3
/usr/share/doc/libpcap-1.5.3
/usr/share/doc/libpcap-1.5.3/CHANGES
/usr/share/doc/libpcap-1.5.3/CREDITS
/usr/share/doc/libpcap-1.5.3/LICENSE
/usr/share/doc/libpcap-1.5.3/README
cd /usr/lib64/
sudo ln -s libpcap.so libpcap.so.0.8
naabu
naabu: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by naabu)
naabu: /lib64/libc.so.6: version `GLIBC_2.32' not found (required by naabu)
again : 
locate libpcap
/usr/lib64/libpcap.so
/usr/lib64/libpcap.so.1
/usr/lib64/libpcap.so.1.5.3
/usr/share/doc/libpcap-1.5.3
/usr/share/doc/libpcap-1.5.3/CHANGES
/usr/share/doc/libpcap-1.5.3/CREDITS
/usr/share/doc/libpcap-1.5.3/LICENSE
/usr/share/doc/libpcap-1.5.3/README
 yum install libpcap
Package 14:libpcap-1.5.3-13.el7_9.x86_64 already installed and latest version

any solution ?

@sec13b I think there is a mismatch between the standard libc library installed on the system and the one used to pre-compile naabu. I'd recommend installing naabu via go install:

$ go install -v github.com/projectdiscovery/naabu/v2/cmd/naabu@latest

This will compile the binary with with the version installed on your system

I'm closing the issue - Feel free to reopen if needed