学校プロジェクトでは、Webサイトで脆弱性をスキャンし、そのページに応答を表示します。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;
?>
これは応答している、あなたが見る唯一のものは「1!」コマンドの応答です。
私は誰かが私を助けることができると思います。
それではなぜ 'ls'を実行していますか? –
私は応答があるかどうかを確認するだけです –
それでは、あなたは何を期待していますか? –