| Posted by Markus L. on 06/18/52 11:22 
Am Tue, 26 Jul 2005 01:10:37 -0700 schrieb jzz:
 > I have the following HTML code, which executes a PHP script.
 > =============================================================================
 > <!--HTML CODE-->
 > <html><head><title>Vulneraility Scan</title></head>
 >
 > <body><form method="POST" action="n2.php">
 > Host<input name="address" type="text" value="IP Address">
 >     <input type="submit" name="Submit" value="SCAN">
 > </form></body>
 >                                                        </html>
 > <!--END OF HTML CODE-->
 > ==============================================================================
 > The PHP script is
 > ================================================================================
 > <?php
 >         $ip = $_POST['address'];
 >         $com2="echo $ip > targets.txt";
 >         exec($com2);
 >
 >                                                 $com3="rm -rf
 > results.html";
 >         exec($com3);
 >         echo "<br>This May Take Time";
 >         $com4="nessus -q -T html localhost 1241 j1 abcd targets.txt
 > results.html";
 >         exec($com4);
 >         echo "<br>Finished";
 >
 >                                                     ?>
 > ===========================================================================
 >
 > I only see "This May Take Time " and "Finished" words on the screen,
 > the exec() commands do not execute.
 >
 > Please Help
 > jZZ
 
 Is this nessus executeable available in your PATH?
 Try it with absolute path names.
 
 --
 -------------------------------------------------------
 Try this: SCA the Smart Class Archive for PHP
 http://www.project-sca.org
 -------------------------------------------------------
 [Back to original message] |