-
November 27th, 2001, 08:17 AM
#1
Junior Member
perl5 and Satan
Hi, I'm planning on setting up an Apache web server on my redhat box.
I want to run satan-1.1.1 to see if i have any security holes (honest).
When i run the reconfig script for perl, it bails saying can't find perl5.
I have located the library for perl5.6.0 at /usr/lib. Does this mean I have perl5 or greater installed? If so, how do i edit the reconfig.pl script in satan-1.1.1/perl to locate my perl files?
One more thing, if this means i dont have perl5 or greater installed, where can i get it?
Thanks a bunch in advance.
-
November 27th, 2001, 08:32 AM
#2
Senior Member
You can check if something is installed by typing "which filename". On debian you can use apt-get install perl, if your not using debian then you should be but you can get the perl rpm from http://www.activestate.com/Products/.../download.plex
-
November 27th, 2001, 08:45 AM
#3
Junior Member
ok, i do have perl5.6.0 installed.
Does anyone know how to configure the script for satan to recognize that i have perl installed?
Thanks petemcevoy for your help.
-
November 27th, 2001, 03:05 PM
#4
Member
have you read the README's for SATAN, or gone to the site to read through the docs's there? I have Perl-5.6 and SATAN worked fine for me, but there may be something I picked up in the README's that helped out, but it was a long time ago. Anyway, hope you figure it out, it is a neat little app.
-
November 27th, 2001, 08:29 PM
#5
Senior Member
shebang!
Check the shebang line....
it's the first line in the script and it looks something like this:
#!/usr/bin/perl -w
The shebang may be looking for perl in a directory it isn't installed in. Check this line then type:
whereis perl
or
which perl
to find out where perl is located. If it is in a different directory, such as /usr/local/bin/perl, then change the shebang to reflect this. Hope this helps.
Happy Hacking
-----------------------------------------------------
Warfare is the Way of deception.
-Sun Tzu \"The Art of War\"
-
November 28th, 2001, 02:03 AM
#6
Junior Member
Re: shebang!
Originally posted by gaxprels
Check the shebang line....
"The Man" won't let me give you points! So I'm here to tell you GFP!!!
. . . the majestic equality of the law, which forbids the rich as well as the poor to sleep under bridges, to beg in the streets, and to steal bread. - Anatole France
-
November 28th, 2001, 10:41 AM
#7
Junior Member
ok i dont know how to program in perl but i do have background in C.
I tried the "shebang" method with much enthusiasm but it didn't work. Here is a snippit from the config file that checks for perl.
Perl is located on my box at /usr/bin/perl
..............
# find perl5!
print "Ok, trying to find perl5 now... hand on a bit... \n";
for $dir (all_dirs) {
#first, find where it might be; oftentimes you'll see perl, perl4, perl5,
#etc. in the same dir
while (<$dir/perl5* $dir/perl*>) {
if (-x $_) {
$perl_version='($_ -v 2> /dev/null) |
awk '/This is per, version 5/ {print $NF} ' `;
if ($perl_version) {
$PERL=$_;
$pflag="1";
last;
}
}
last if $pflag;
}
last if $pflag;
}
die "\nCan't find perl5! Bailing out...\n" unless $PERL;
print "\nPerl5 is in $PERL\n";
......
any thoughts on how to redirect this script to my perl directory???
ALL help is greatly appreciated.
-xtomey
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|