masscan icon indicating copy to clipboard operation
masscan copied to clipboard

libpcap dependency failure

Open lfaoro opened this issue 2 years ago • 2 comments

[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?

lfaoro avatar Mar 07 '22 09:03 lfaoro

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

slzheng2017 avatar May 03 '22 00:05 slzheng2017

yum install libpcap-devel worked for me

mikehardenize avatar May 31 '22 15:05 mikehardenize

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 avatar Sep 05 '22 15:09 1-1-2

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

1-1-2 avatar Sep 07 '22 03:09 1-1-2

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

lfaoro avatar Sep 08 '22 14:09 lfaoro