You are on page 1of 2

<?php function Visit($url){ $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.

0)";$ch=curl_init(); curl_setopt ($ch, CURLOPT_URL,$url ); curl_setopt($ch, CURLOPT_USERAGENT, $agent); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ch,CURLOPT_VERBOSE,false); curl_setopt($ch, CURLOPT_TIMEOUT, 5); $page=curl_exec($ch); //echo curl_error($ch); $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if($httpcode>=200 && $httpcode<300){ return true; } else { return false; } } if(isset($_POST["submit"])){ $shell = $_POST["shell"]; $shell2 = explode("\n",$shell); $str = ""; foreach($shell2 as $val){ $x = trim($val, "\r"); $x = trim($x, "\n"); if(Visit($x)){ $content = "$x \n"; $str .= "$x \n"; /*if site down*/ } else { echo ""; } } echo "<html><head><link href='style.css' rel='stylesheet'><title>Shell Checker</ title></head><body><center><h2>Online Mass Shell Checker</h2><br><div id='box'>" ; echo "<center><h2>Live Shells</h2><BR><textarea cols='62' rows='24'>"; echo "$str \n"; echo "</textarea>"; echo "</div></Body>"; } else { ?> <head><title>Shell Checker</title> <link href='style.css' rel='stylesheet'> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/j query.min.js"></script> <?php echo "<center><h2>Online Mass Shell Checker</h2><br> <div id='box'><center><form action='' method='POST'><textarea name='shell' placeholder='Paste all your sells here' cols='62' rows='24'></textarea><br

/> <span id='results'></span> <input type='submit' name='submit' value='.Check Shells -' /></form> </center></div></center>". } ?> .