Advertisement
Cyb3r_h4ck3r

deface page checker

Jan 13th, 2015
2,732
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.22 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. set_time_limit(0);
  4. echo '<html>
  5. <head>
  6. <title>Defaced Site Checker</title>
  7. <style type="text/css">
  8.    * { margin:0;}
  9.    body { background:#000000 ) no-repeat 50% 50%;background-attachment: fixed;color:white;margin:0; font-family: Palatino Linotype;}
  10.    .style1 { color: #FFFFFF;font-family: "Arial Rounded MT Bold";text-align: center;font-size: 50px; }
  11.    .style2 { background: rgba(0,0,0,0.6);color: white;font-size: 13px;width:650px;}
  12.    .main {font-family: Palatino Linotype;font-size: 35pt;text-shadow: 0 0 6px #FF0000, 0 0 5px #FF0000, 0 0 5px #FF0000;color: #FFF}
  13.    h1 span {font-size:45px;}
  14.    .even {background-color: rgba(25, 25, 25, 0.8);} .odd {background-color: rgba(150, 150, 150, 0.8);}
  15.    .green {color:#00FF00;font-weight:bold;} .red {color:#FF0000;font-weight:bold;}
  16.    a{color:#fff;text-decoration:none;}
  17.    .hid {text-align:center;background-color: rgba(150, 150, 150, 0.8);margin:0 auto;width:40%;font-weight:bold;}
  18.    input[type="submit"],.box {padding:10px;background:rgba(0,0,0,0.6);color:grey;font-weight:bold;} input[type="submit"]:hover {color:#fff;}
  19.    .box {width:626px;border:2px solid #fff;margin:0 auto;border-top:none;}
  20. </style>
  21. </head><body>
  22.    <div style="background: rgba(0,0,0,0.5);text-align: center;"><br />
  23.    <div class="main">Team IHC<br /><span>Websites Defaced Or Not Checker</span></div><br/>
  24.    <form method="post" action="">
  25.    <center><table class="style2"><tr><td>Site List: </td><td><textarea name="domain" cols="80" rows="15" class="style2"></textarea></td>
  26. </tr>
  27. <tr><td>Text: </td><td><input name="text" value="3xp1r3" size="20" class="style2"></td>
  28. </tr><tr></table>
  29.        <br />
  30.        <input type="submit" name="submit" value="!!! Check !!!"/>
  31.    </form></center><br />';
  32.     if(isset($_POST['submit'])) {
  33.       $text  = $_POST['text'];
  34.         $items = explode("\n", trim($_POST['domain']));
  35.         $items = array_unique(str_replace('http://','',$items));
  36.         $total = count($items);
  37.         echo '<div class="hid">Total Domains = '.$total.'</div><br />';
  38.             echo '<h3 class="hid">Checking Defaced sites</h3>';
  39.             echo '<table style="width:40%;margin:0 auto;">';
  40.             $j = 1;
  41.             $dc = 0;
  42.             $sites = array();
  43.             foreach($items as $s) {
  44.                 $data = file_get_contents('http://'.trim($s));
  45.                 $cond = strpos($data, $text);
  46.                 $cls = ($j % 2 == 0) ? 'class="even"' : 'class="odd"';
  47.                 if($cond !== false){ echo '<tr '.$cls.'><td><a href="http://'.$s.'" target="_blank">http://'.$s.'</a></td><td><span class="green">DEFACED</span></td></tr>'; $sites[] = trim($s); $dc++;
  48.                 } else { echo '<tr '.$cls.'><td>http://'.$s.'</td><td><span class="red">Failed!</span></td></tr>'; }
  49.                 $j++;
  50.             }
  51.             echo '</table><br />';
  52.             $total = $dc;
  53.             echo '<h3 class="hid">Total Defaced = '.$total.'</h3><br />';
  54.             }
  55. echo '</div><div style="background: rgba(0,0,0,0.5);font-family: Century Gothic;text-align: center;padding: 7px 0;font-size:20px;text-shadow: grey 1px -0px 6px;">CODED By : <b>rEd X</b><br />
  56. &copy; <b>Team IHC.</b>. All rights reserved.</div>
  57. </body></html>';
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement