|
有人说它有安全漏洞,兄弟们给看看,是怎么回事? 谢谢。:p
#!/usr/bin/perl
print "Content-type: text/html\n\n";
###Find where we are
open(PWD,'pwd|');
$pwd = join('',<WD>);
$pwd =~ s/\n//gi;
close PWD;
### Find the system date
open(DT, 'date "+DATE: %Y-%m-%d%n<br>TIME: %H:%M:%S"|');
$dt = join('', <DT>);
$dt =~ s/\n//gi;
close DT;
print "<body bgcolor='green' text='black'>\n";
print "<b>This is the pwd........ $pwd</b>\n<br>";
$eln = crypt($pwd,time());
print "This is the encryption length: ". length($eln) ."\n <br>";
print "$eln \n<br>";
print "\n <br>data del sistema = \n<br> $dt \n<br>";
print "$ENV{'HTTP_USER_AGENT'} \n";
print "<p>$ENV{'REMOTE_ADDR'} \n</p>";
print "<p>$ENV{'HTTP_USER_AGENT'} $ENV{'REMOTE_ADDR'}</p>"; |
|