Author Topic: Problem with ssdp script.  (Read 1605 times)

0 Members and 14 Guests are viewing this topic.

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Problem with ssdp script.
« 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









« Last Edit: March 01, 2015, 02:31:25 am by UndyingHippocracy »

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #1 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. 

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #2 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

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #3 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.
« Last Edit: March 01, 2015, 07:04:31 am by KryDos »

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #4 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?

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #5 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*

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #6 on: March 01, 2015, 07:15:43 am »
This is the result:


Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #7 on: March 01, 2015, 07:18:20 am »
symlink is wrong.

create symlink with source libpcap.so.1

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #8 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

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #9 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
« Last Edit: March 01, 2015, 07:26:32 am by KryDos »

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #10 on: March 01, 2015, 07:26:43 am »
Sure thing:


Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #11 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...

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #12 on: March 01, 2015, 07:29:29 am »
What would you want me to screenshot?

Offline KryDos

  • Serf
  • *
  • Posts: 42
  • Cookies: 8
  • Software Engineer, Emacs uesr
    • View Profile
Re: Problem with ssdp script.
« Reply #13 on: March 01, 2015, 07:30:39 am »
What would you want me to screenshot?

ls -l /usr/lib/libpcap*
./ssdpscan

Offline UndyingHippocracy

  • /dev/null
  • *
  • Posts: 13
  • Cookies: 0
    • View Profile
Re: Problem with ssdp script.
« Reply #14 on: March 01, 2015, 07:33:52 am »
Here ya go: