Advertisement
Muhammad_Bilal

Exploit Scanner PHP script

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