Results 1 to 2 of 2

Thread: using .pl scripts in metasploit

  1. #1
    Junior Member
    Join Date
    May 2007
    Posts
    82

    Default using .pl scripts in metasploit

    How do u use .pl scripts in metaploit? all i can get to work is .pm scripts but alot of exploits are writen save saved in perl but are saved as .pl. Can some one help me.... I'm thinking that i use .pl scripts un conjuction with an script in metasploit. i dunno.lol. thanks peeps

  2. #2
    Just burned his ISO
    Join Date
    May 2007
    Posts
    1

    Default

    Generally, files ending in .pl are the actual perl script. Files ending in .pm are perl modules--like libraries of subroutines and pre-made code snippits made to serve a specific purpose and to be incorporated in your program (Crypt::Blowfish is blowfish encryption, Tk is for making GUIs, and etc.) But remember, in Unix-like OS's the file extension is not critical like in Windows. You could write yourself a program in perl and give it no extension at all, or write a module and give it your initials as an extension, or what ever you want.

    As for using perl scripts in metasploit, I've only ever looked at metasploit, never actually used it. If I remember right, once you tell the framework to do the exploit, it should execute the perl script for you. Maybe thats not totally right, but I think that is how it is. Otherwise, to execute a perl script outside of metasploit, remember to concatinate the 'perl' before the name if the file (unless you 'chmod +x filename.pl', then use ./filename.pl)

    Sorry if I didn't answer your question, hopefully it helps.

Posting Permissions

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