Advertisement
Damane-Dz

1337 Exploit Searcher

Jun 7th, 2013
944
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.07 KB | None | 0 0
  1. <html>
  2. <head>
  3. <title>1337 Exploit Searcher</title>
  4. <style>
  5. body{background-color:#808080;color:#FFF;align:center;font: 12pt Verdana;}
  6. input[type=text],textarea,select,input[type=password],button,submit{border: 5px #404040 solid;background: #141414;
  7. color: #FFF;font: 12pt Verdana;outline: none;border-radius: 5px;opacity:0.7;}
  8. textarea{width: 525px; height: 301px;}
  9. input[type=submit], .button, input[type=reset], button {background: #404040;color: #FFF;font: 10pt Verdana;outline: none;
  10. opacity:1;filter:alpha(opacity=90); padding: 5px 8px !important;border: none !important;border-radius: 5px;}
  11. .banner{color: #FFFFFF;background-color: #000000;font: 25pt Verdana;}
  12. </style>
  13. </head>
  14. <body>
  15. <center>
  16. <div class="banner">1337 Exploit Searcher By DamaneDz</div></br>
  17. <p>&nbsp;</p>
  18. <form method="POST">
  19. <font size="4">Search:</font>
  20. <input type="text" name="key" value=""/>
  21. <input type="submit" name="search" value="Search"/>
  22. </form>
  23. <p>&nbsp;</p>
  24. <?php
  25. /*
  26. File Writed By DamaneDz
  27.  
  28. Email: Damane-Dz@hotmail.com
  29.  
  30. Twitter: @DamaneDz
  31.  
  32. Writed In: 07/06/2013 at 22:17
  33.  
  34. */
  35.  
  36.  
  37. set_time_limit(0);
  38.  
  39. if($_POST["search"]){
  40. #Create a Session
  41. $curl = curl_init();
  42. curl_setopt($curl,CURLOPT_URL,"http://www.1337day.com/");
  43. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  44. curl_setopt($curl,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0");
  45. curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  46. curl_setopt($curl,CURLOPT_COOKIEJAR,dirname(__FILE__)."/1337.txt");
  47. curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/1337.txt");
  48. curl_setopt($curl,CURLOPT_POST,1);
  49. curl_setopt($curl,CURLOPT_POSTFIELDS,"agree=Ok");
  50. curl_exec($curl);
  51. curl_close($curl);
  52. #The Keyword To Search
  53. $keyword=trim($_POST["key"]);
  54. #CurL
  55. $curl = curl_init();
  56. curl_setopt($curl,CURLOPT_URL,"http://www.1337day.com/search");
  57. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  58. curl_setopt($curl,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0");
  59. curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  60. curl_setopt($curl,CURLOPT_COOKIEJAR,dirname(__FILE__)."/1337.txt");
  61. curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/1337.txt");
  62. curl_setopt($curl,CURLOPT_POST,1);
  63. curl_setopt($curl,CURLOPT_POSTFIELDS,"dong={$keyword}&submit_search=Search");
  64. $rez = curl_exec($curl);
  65. curl_close($curl);
  66. #Matching ID From Results
  67. preg_match_all("#<a href='/exploit/description/(.*?)'  >(.*?)</a></td>#i",$rez,$needed);
  68. echo'<b>Exploits Found :</b><font color=green>'.count($needed[1]).'</font></b><br><br>';
  69. echo'<table border="1" width="80%" align="center">';
  70. echo "<tr><td>ID</td><td>Link</td></tr>";
  71. foreach($needed[1] as $id){
  72. #Matching The Title
  73. preg_match("#<a href='/exploit/description/$id'  >(.*?)</a></td>#i",$rez,$title);
  74. echo "<tr><td>$id</td><td><a href='http://www.1337day.com/exploit/$id'>$title[1]</a></td></tr>";
  75. }
  76. echo "</table>";
  77. unlink(dirname(__FILE__)."/1337.txt");
  78. }
  79.  
  80. ?>
  81. <center>
  82. <p align="center">&nbsp;</p>
  83. <p align="center"><font color="#2C2C2C" size="4">By DamaneDz</font><br><br>
  84. MaDe in AlGeria 2013 &copy</p>
  85. <p></center>
  86. </body>
  87. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement