对于学校项目,我想尝试扫描网站的漏洞,并在页面上显示响应。从PHP调用Perl程序并打印输出
为此,我正在尝试使用Uniscan。
我尝试了很多方法来获得任何响应,但它不工作。
这就是我现在所拥有的:
<?php
echo '<pre>';
// Outputs all the result of shellcommand "ls", and returns
// the last output line into $last_line. Stores the return value
// of the shell command in $retval.
$last_line = system('perl uniscan.pl -u https://domain.nl/ -qweds;ls', $ret$
// Printing additional info
echo '</pre>
<hr />Last line of the output: ' . $last_line . '
<hr />Return value: ' . $retval;
?>
这是响应,你唯一看到的是“ls”的命令的响应。
我希望有人能帮助我。
那你为什么要运行'ls'呢? –
只是为了看我是否得到任何回应 –
那么你期望什么? –