Results 1 to 7 of 7

Thread: perl5 and Satan

  1. #1
    Junior Member xtomey is on a distinguished road
    Join Date
    Nov 2001
    Posts
    9

    Exclamation 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.

  2. #2
    Senior Member petemcevoy can only hope to improve
    Join Date
    Sep 2001
    Posts
    412
    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

  3. #3
    Junior Member xtomey is on a distinguished road
    Join Date
    Nov 2001
    Posts
    9
    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.

  4. #4
    Member psi0nic is on a distinguished road
    Join Date
    Oct 2001
    Posts
    88
    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.

  5. #5
    Senior Member gaxprels is on a distinguished road
    Join Date
    Jul 2001
    Posts
    138

    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\"

  6. #6
    Junior Member Mutant is on a distinguished road
    Join Date
    Nov 2001
    Posts
    18

    Thumbs up 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

  7. #7
    Junior Member xtomey is on a distinguished road
    Join Date
    Nov 2001
    Posts
    9
    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

 Security News

     Patches

       Security Trends

         How-To

           Buying Guides