In regards to executing perl scripts which call other libraries.
glitch:/home/brad/Desktop/hackz/wellenrieter# perl Wellenreiter.pl
Can't locate Gtk.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at Wellenreiter.pl line 33.
BEGIN failed--compilation aborted at Wellenreiter.pl line 33.
glitch:/home/brad/Desktop/hackz/wellenrieter#
Reason, the perl gtk library hasnt been installed, this is because it appears in the header section of Wellenreiter.pl, as follows:
use POSIX;
use IO::Socket;
use Net::Pcap;
#-- Non-buffered output --#
$|=1;
# optionshandling
use Getopt::Long;
#-- GTK standart initialisation --#
use Gtk;
set_locale Gtk;
init Gtk;
As you can see, this error could possibly be caused by strick,POSIX,IO::Socket,Net::Pcap,Getopt::Long and Gtk.
Two solutions exist. If solution A fails, then often (well everytime for me) solution B works fine.
A)
This enters you into the MCPAN shell, not 100% exactly the full functions of this shell, but this is where we will install the extra libraries.
During you first run, you'll come across a configurtion screen, most of the defaults are fine, but they're easily understood, so change a couple.... Once your in, to install the Gtk perl library type
If this doesnt work, an error like this may occur, or somehting along the lines of
Package 'gtk' needed but it was not detected on your system.
You may want to force it using --with-gtk-force if you know better than me.
Running make test
Make had some problems, maybe interrupted? Won't test
Running make install
Make had some problems, maybe interrupted? Won't install
This is where option B works.
B)
because, 'apt-cache search lib perl gtk' returns this, or you can figure out the pattern, works for all libraries needed so far...
Setting up libgtk-perl (0.7009-1.1) ...
glitch:/home/brad/Desktop/hackz/wellenrieter# perl Wellenreiter.pl
glitch:/home/brad/Desktop/hackz/wellenrieter#
And that worked for a couple different scripts, including the cisco vulnerability scanner perl script, and im sure ill come across it again.
