Natas32:
Natas32 Writeup(Perl 远程代码执行)

打开后和natas31相似的界面,并且提示,这次您需要证明可以远程代码执行,Webroot中有一个二进制文件可以执行。

my $cgi = CGI->new;
if ($cgi->upload('file')) {
    my $file = $cgi->param('file');
    print '<table class="sortable table table-hover table-striped">';
    $i=0;
    while (<$file>) {
        my @elements=split /,/, $_;

        if($i==0){ # header
            print "<tr>";
            foreach(@elements){
                print "<th>".$cgi->escapeHTML($_)."</th>";   
            }
            print "</tr>";
        }
        else{ # table content
            print "<tr>";
            foreach(@elements){
                print "<td>".$cgi->escapeHTML($_)."</td>";   
            }
            print "</tr>";
        }
        $i+=1;
    }
    print '</table>';
}
else{
print <<END;
natas32-sourcecode.html

相关文章:

  • 2021-05-14
  • 2021-10-26
  • 2021-12-16
  • 2021-07-02
  • 2021-07-15
  • 2021-08-22
猜你喜欢
  • 2022-01-04
  • 2021-12-18
  • 2021-12-23
  • 2022-12-23
  • 2021-05-12
  • 2021-04-22
  • 2021-04-17
相关资源
相似解决方案