Port Scan

Discussion in 'PHP' started by wizzer, 3 Apr 2010.

  1. wizzer

    wizzer Member

    Joined:
    8 Nov 2008
    Messages:
    113
    Likes Received:
    78
    Reputations:
    3
    PHP:
    <html>
    <head>
    <title>Port Scan</title>
    </head>
    <body>
    <div align="center">
    <?php
    $server 
    $_POST['server'];
    ?>
    <h2>Enter your url and click scan.</h2>
    <table style="border-width: 1px; border-style: solid;" cellpadding="5" cellspacing="6">
    <form action="portscan.php" method="post">
    <tr>
    <td>URL to scan: </td><td><input type="text" value="<?php echo $server?>" name="server" id="server" /></td>
    </tr>
    <tr>
    <td colspan="2"><input type="hidden" value="1" name="submit" /><input type="button" name="submit1" value="Scan" id="submit1" /></td>
    </tr>
    </form>
    </table>



    <?php



    if ($_POST['submit'] == "1"){

    echo 
    "<br><h2>Results</h2><table style=\"border-width: 1px; border-style: solid;\" cellpadding=\"5\" cellspacing=\"5\"><tr><td>";
    echo 
    "<pre>";
    system("/usr/bin/nmap $server");
    echo 
    "</pre>";
    echo 
    "</td></tr></table>";

    system("killall -q nmap");

    }

    ?>
    </div>
    </body>
    </html>
    сохранить как portscan.php. что это? :confused:
     
  2. login999

    login999 Elder - Старейшина

    Joined:
    12 Jun 2008
    Messages:
    491
    Likes Received:
    280
    Reputations:
    92
    Code:
    /usr/bin/nmap
    
    Судя по этому то это просто PHP- лаунчер для nmap (http://nmap.org/download.html)
     
  3. Pashkela

    Pashkela Динозавр

    Joined:
    10 Jan 2008
    Messages:
    2,750
    Likes Received:
    1,044
    Reputations:
    339
    2 wizzer:

    типо GUI для nmap, забей, проще в терминале набрать