EvilZone

Hacking and Security => Hacking and Security => Topic started by: UndyingHippocracy on March 01, 2015, 02:29:17 AM

Title: Problem with ssdp script.
Post 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









Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 06:21:34 AM
Quote
./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. 
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 06:35:12 AM
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
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 06:52:07 AM
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.
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:10:06 AM
I'm still getting the same error, do you think that this might be
happening because I'm on an OVH VPS?
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:12:45 AM
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*
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:15:43 AM
This is the result:

Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:18:20 AM
symlink is wrong.

create symlink with source libpcap.so.1
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:23:34 AM
I used:
ln -s /usr/lib/libpcap.so.1 /usr/lib/libpcap.so.0.8


and it's giving me the same error still
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:25:10 AM
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
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:26:43 AM
Sure thing:

Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:28:19 AM
Sure thing:

As for me the most interesting things (output of commands) are not available on your screenshot...
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:29:29 AM
What would you want me to screenshot?
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:30:39 AM
What would you want me to screenshot?

ls -l /usr/lib/libpcap*
./ssdpscan
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:33:52 AM
Here ya go:
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:36:36 AM
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.
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:43:54 AM
ok so...



Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:49:07 AM
output seems good...

I don't know... try to copy all libpcap files to the ssdp directory.

cp -R /usr/lib/libpcap* <ssdp directory>
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:54:26 AM
Now by SSDP directory do you mean the directory for the script?
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:55:07 AM
Now by SSDP directory do you mean the directory for the script?

yep.
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 07:57:41 AM
Ok so what would that be, the script is in "cd ~"

Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 07:58:19 AM
Ok so what would that be, the script is in "cd ~"

cp -R /usr/lib/libpcap* ~/
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 08:02:50 AM
And...
Title: Re: Problem with ssdp script.
Post by: KryDos on March 01, 2015, 08:31:09 AM
Now it seems like magic...

I found this in google:
yum install gcc libcap libpcap libpcap-devel

try to execute this command
Title: Re: Problem with ssdp script.
Post by: UndyingHippocracy on March 01, 2015, 06:38:00 PM
Ok: