對於學校項目,我想嘗試掃描網站的漏洞,並在頁面上顯示響應。從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'呢? –
只是爲了看我是否得到任何迴應 –
那麼你期望什麼? –