robertdavidgraham / masscan

TCP port scanner, spews SYN packets asynchronously, scanning entire Internet in under 5 minutes.
GNU Affero General Public License v3.0
23.47k stars 3.07k forks source link

libpcap dependency failure #654

Closed lfaoro closed 2 years ago

lfaoro commented 2 years ago
[root@host html]# ./masscan
[-] FAIL: failed to load libpcap shared library
    [hint]: you must install libpcap or WinPcap
[root@host html]# yum install libpcap
Running transaction
  Installing : 14:libpcap-1.5.3-12.el7.x86_64                                                                                                 1/1
  Verifying  : 14:libpcap-1.5.3-12.el7.x86_64                                                                                                 1/1

Installed:
  libpcap.x86_64 14:1.5.3-12.el7

let's try again:

[root@host html]# ./masscan
[-] FAIL: failed to load libpcap shared library
    [hint]: you must install libpcap or WinPcap

@robertdavidgraham what else do we need to do? is it possible to compile masscan statically w/ all libraries in it as it used to be?

slzheng2017 commented 2 years ago

ln -s /usr/lib64/libpcap.so.1 /usr/lib64/libpcap.so

mikehardenize commented 2 years ago

yum install libpcap-devel worked for me

1-1-2 commented 2 years ago

on padavan, I've already do opkg install libpcap.

# ll /opt/lib/libpcap*
lrwxrwxrwx    1 admin    root            12 Sep  5 22:50 /opt/lib/libpcap.so -> libpcap.so.1
lrwxrwxrwx    1 admin    root            17 Sep  5 22:50 /opt/lib/libpcap.so.1 -> libpcap.so.1.10.1
-rw-r--r--    1 admin    root        305940 Jul 22 17:34 /opt/lib/libpcap.so.1.10.1
# ./masscan 
[-] FAIL: failed to load libpcap shared library
    [hint]: you must install libpcap or WinPcap
Segmentation fault

I've tried ln -s /opt/lib/libpcap.so.1.10.1 /opt/usr/lib/libpcap.so but no use.

1-1-2 commented 2 years ago

@lfaoro May I ask if there is any solution? Since this issue was closed

lfaoro commented 2 years ago

I closed it because the author didn't assist us for over 6 months, hence I assume there's no interest in solving this.