If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[PERL]Beginner: /bin/sh on localhost??

I'm a beginner with this but I have had succes a year ago but forgot how it worked.
I want to run a perl script, I have a website with perl installed on it if I put the script in the cgi-bin folder and after that go to:
mydomain.com/cgi-bin/exploit.plI get a 500 internal server error

Now I installed ActivePerl to my pc so I can run perl scripts from the CMD. But when I place a script like here:
C:\exploit.pl

and typ in CMD:
C:\exploit.pl
I get this error:Can't exec /bin/sh at C:\exploit.pl line 1

I wanted to try an exploit from milw0rm

It has something to do with the first line of the exploit which say's:#!/bin/sh

Don't know what it does or is supposed to do... Can anyone help me out here plz??

Futhermore as re@lity said this is a linux forum but since I'm feeling helpful you need to install a perl interpreter in windows or you'll never get it going. Here is one for example.In order to run a bash script which is what you appear to have you would need to install cygwin which creates a bash enviorment in windows.

If you provide the milw0rm reference # we'd be in a much better position to help.

It's probably this one: 344.c

A third party security audit is the IT equivalent of a colonoscopy. It's long, intrusive, very uncomfortable, and when it's done, you'll have seen things you really didn't want to see, and you'll never forget that you've had one.

Hello,
If you got a perl interpreter installed, you should write its name with the full path included on the first line.
On *nix it sometimes looks like this
#!/usr/bin/perl
If your interpreter's name is 'some_perl.exe' in the dir 'c:\Perl\bin\'
i guess you should write on the first line(make sure it's the first one)