Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- set_time_limit(0);
- ini_set('error_log',NULL);
- ini_set('max_execution_time',0);
- ini_set('log_errors',0);
- ?>
- <html>
- <center>
- <title>0b0xed PORT SCANNER</title>
- <h1>Simple Port Scanner</h1>
- <table border=1>
- <form method=post>
- <tr>
- <td>Target IP (without range):</td>
- <td><input type=text value='127.0.0.' name=ip></td>
- </tr>
- <tr>
- <td>First Range : </td>
- <td><input type=number min=1 max=255 name=rangefirst></td>
- </tr>
- <tr>
- <td>Last Range : </td>
- <td><input type=number min=1 max=255 name=rangeakhir></td>
- <tr>
- <td>List PORT : </td>
- <td>
- <!--PORT 80--!>
- <input type=radio name=port value=80>PORT :80</br>
- <!--PORT 32--!>
- <input type=radio name=port value=32>PORT :32</br>
- <!--PORT 8080--!>
- <input type=radio name=port value=8080>PORT :8080</br>
- <!--PORT 3306--!>
- <input type=radio name=port value=3306>PORT :3306</br>
- <!--PORT 21--!>
- <input type=radio name=port value=21>PORT :21</br>
- </td>
- <tr>
- <td colspan=2 align=center><input type=submit value=Scan></td>
- </tr>
- </form>
- </table>
- <p>.php?tuto=rial for tutorial</p>
- <?php
- /*
- Don't Be A Skiddies
- Change The Code And Claim Self !!
- Simple Port Scanner
- Can Setup The Range
- Because some site cant support if scan ip range 1-255
- Greets : Shahril :)
- Contact Me : https://www.facebook.com/0b0xed
- */
- if ( !empty($_POST['ip']) ) {
- $rangefirst = $_POST['rangefirst'];
- $rangeakhir = $_POST['rangeakhir'];
- $inputport = $_POST['port'];
- $lastrange = $rangeakhir + 1; // kadang2 tersilap,die akan tertolak 1 :)
- $ip = $_POST['ip'];
- echo "Scanning Port $rangefirst - $rangeakhir : </br>";
- echo " <br> ";
- for ( $i = $rangefirst; $i < $lastrange; $i++ ) {
- if ($fp = @fsockopen($ip.$i, $inputport,$errCode,$errStr, 1)) {
- ?>
- <center>
- <table border=1>
- <tr>
- <td>OK : </td>
- <td><? echo $ip.$i; ?></td>
- </tr>
- </table>
- <marquee><font color=green>--OK--</font></marquee>
- </center>
- <?
- }
- fclose($fp);
- }
- }
- //tutorial
- if(isset($_REQUEST['tuto'])) {
- switch ($_REQUEST['tuto']) {
- case 'rial';
- echo "
- <center>
- <h1>Welcome To Tutorial</h1>
- </center>
- <br>
- <br>
- <br>
- <p>1.Choose Your Target IP</p>
- <p>2.Put At Target With Your IP Without RANGE.</p>
- <p>Example : 127.0.0.1 , Put At Target IP = 127.0.0. (with dot)</p>
- <p>3.Choose Your Range</p>
- <p>4.Scan And Save Your Result</p>
- <p>Greets : /.Shahril</p>
- ";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement