EvilZone
Hacking and Security => Hacking and Security => Topic started by: UndyingHippocracy on March 01, 2015, 02:29:17 AM
-
(OS: CentOS 6)
Recently I've been trying to run my ssdp scanner off of my VPS and this has been the result everytime:
./ssdpscan: error while loading shared libraries: libpcap.so.0.8: cannot open shared
object file: No such file or directory.
I uploaded the file from my VM to the VPS through the FTP and used "sudo chmod +x ./ssdpscan" to make he application.
I don't know what the issue is because I checked to see if libpcap needed to be updated
and it is currently on the latest version. (I'm on an ssh terminal btw) please if anyone has a solution to this tell me.
-Bill
-
./ssdpscan: error while loading shared libraries: libpcap.so.0.8: cannot open shared
object file: No such file or directory.
Which is means "libpcap is not installed". Try yum install libpcap to install the library.
-
It reads:
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirror.rafal.ca
* extras: centos.mirror.rafal.ca
* updates: centos.mirror.rafal.ca
Package 14:libpcap-1.4.0-1.20130826git2dbcaa1.e16.x86_64 already installed and
latest version
Nothing to do
-
Then you have different version of libpcap in your system, I guess newer version.
You can create a symlink from your existing version to the new one using ln -s <source> <target> command.
usage something like:
ln -s /usr/lib/libpcap<your_version> /usr/lib/libpcap.so.0.8
You can check libpcap version by ls /usr/bin/libpcap*
Obviously, you have 1.4.0-1 version but your libpcap file can be named differently.
-
I'm still getting the same error, do you think that this might be
happening because I'm on an OVH VPS?
-
do you think that this might be
happening because I'm on an OVH VPS?
No.
Could you please show me output of ls -l /usr/lib/libpcap*
-
This is the result:
-
symlink is wrong.
create symlink with source libpcap.so.1
-
I used:
ln -s /usr/lib/libpcap.so.1 /usr/lib/libpcap.so.0.8
and it's giving me the same error still
-
Could you show me output of previous (ls -l ...) command? Just to be sure that you did symlink right.
And if symlink was created without errors then I guess it's not possible to see "No such file or directory" error
-
Sure thing:
-
Sure thing:
As for me the most interesting things (output of commands) are not available on your screenshot...
-
What would you want me to screenshot?
-
What would you want me to screenshot?
ls -l /usr/lib/libpcap*
./ssdpscan
-
Here ya go:
-
do you see this awesome RED line? It means that symlink is wrong.
How you didn't notice error that symlink already exist when you executed ln -s command?
You need to:
- remove wrong symlink
- create new one again.
-
ok so...
-
output seems good...
I don't know... try to copy all libpcap files to the ssdp directory.
cp -R /usr/lib/libpcap* <ssdp directory>
-
Now by SSDP directory do you mean the directory for the script?
-
Now by SSDP directory do you mean the directory for the script?
yep.
-
Ok so what would that be, the script is in "cd ~"
-
Ok so what would that be, the script is in "cd ~"
cp -R /usr/lib/libpcap* ~/
-
And...
-
Now it seems like magic...
I found this in google:
yum install gcc libcap libpcap libpcap-devel
try to execute this command
-
Ok: