这个脚本是邪恶的吗?

bin*_*nic 0 security perl cgi cgi-bin

这是坐在我网站的 cgi-bin 中。我应该担心吗?

    #!/usr/bin/perl

print <<HTML;
Content-type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html">
<link rel="stylesheet" type="text/css" href="../../css/style.css">
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0">
<tr class="subhead" align="Left"><th>Name</th><th>Value</th></tr>
HTML

my $class;

foreach (sort keys %ENV) {
    next unless /^HTTP_|^REQUEST_/;
    $class = ($class ne 'normal')? 'normal': 'alt';
    print <<HTML;
<tr class="$class"><td valign="top">$_</td><td>$ENV{$_}</td></tr>
HTML
}

print <<HTML;
</table>
</body>
</html>
HTML
Run Code Online (Sandbox Code Playgroud)

MDM*_*rra 9

看起来它通过并从您的所有环境变量中生成了一个 HTML 表。

你会认为那是邪恶的吗?我会认为我没有放在我自己的服务器上的任何东西都是邪恶的,但这就是我。