albertynos Posted August 7, 2013 Report Posted August 7, 2013 <html> <head> <title>1337 Exploit Searcher</title> <style> body{background-color:#808080;color:#FFF;align:center;font: 12pt Verdana;} input[type=text],textarea,select,input[type=password],button,submit{border: 5px #404040 solid;background: #141414; color: #FFF;font: 12pt Verdana;outline: none;border-radius: 5px;opacity:0.7;} textarea{width: 525px; height: 301px;} input[type=submit], .button, input[type=reset], button {background: #404040;color: #FFF;font: 10pt Verdana;outline: none; opacity:1;filter:alpha(opacity=90); padding: 5px 8px !important;border: none !important;border-radius: 5px;} .banner{color: #FFFFFF;background-color: #000000;font: 25pt Verdana;} </style> </head> <body> <center> <div class="banner">1337 Exploit Searcher By DamaneDz</div></br> <p> </p> <form method="POST"> <font size="4">Search:</font> <input type="text" name="key" value=""/> <input type="submit" name="search" value="Search"/> </form> <p> </p> <?php /* File Writed By DamaneDz Email: Damane-Dz@hotmail.com Twitter: @DamaneDz Writed In: 07/06/2013 at 22:17 */ set_time_limit(0); if($_POST["search"]){ #Create a Session $curl = curl_init(); curl_setopt($curl,CURLOPT_URL,"http://www.1337day.com/"); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"); curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl,CURLOPT_COOKIEJAR,dirname(__FILE__)."/1337.txt"); curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/1337.txt"); curl_setopt($curl,CURLOPT_POST,1); curl_setopt($curl,CURLOPT_POSTFIELDS,"agree=Ok"); curl_exec($curl); curl_close($curl); #The Keyword To Search $keyword=trim($_POST["key"]); #CurL $curl = curl_init(); curl_setopt($curl,CURLOPT_URL,"http://www.1337day.com/search"); curl_setopt($curl,CURLOPT_RETURNTRANSFER,1); curl_setopt($curl,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0"); curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1); curl_setopt($curl,CURLOPT_COOKIEJAR,dirname(__FILE__)."/1337.txt"); curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/1337.txt"); curl_setopt($curl,CURLOPT_POST,1); curl_setopt($curl,CURLOPT_POSTFIELDS,"dong={$keyword}&submit_search=Search"); $rez = curl_exec($curl); curl_close($curl); #Matching ID From Results preg_match_all("#<a href='/exploit/description/(.*?)' >(.*?)</a></td>#i",$rez,$needed); echo'<b>Exploits Found :</b><font color=green>'.count($needed[1]).'</font></b><br><br>'; echo'<table border="1" width="80%" align="center">'; echo "<tr><td>ID</td><td>Link</td></tr>"; foreach($needed[1] as $id){ #Matching The Title preg_match("#<a href='/exploit/description/$id' >(.*?)</a></td>#i",$rez,$title); echo "<tr><td>$id</td><td><a href='http://www.1337day.com/exploit/$id'>$title[1]</a></td></tr>"; } echo "</table>"; unlink(dirname(__FILE__)."/1337.txt"); } ?> <center> <p align="center"> </p> <p align="center"><font color="#2C2C2C" size="4">By DamaneDz</font><br><br> MaDe in AlGeria 2013 ©</p> <p></center> </body> </html> Quote