Advertisement
sirnon

Exploit4Arab Exploit Finder

Aug 16th, 2013
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <html>
  2. <head>
  3. <title>Exploit4Arab Exploit Finder</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">Exploit4Arab Exploit Finder 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: 08/06/2013 at 11:10
  33.  
  34. */
  35.  
  36. set_time_limit(0);
  37.  
  38. if($_POST["search"]){
  39. #The Keyword To Search
  40. $keyword=trim($_POST["key"]);
  41. #CurL
  42. $curl = curl_init();
  43. curl_setopt($curl,CURLOPT_URL,"http://www.exploit4ar.com/search");
  44. curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
  45. curl_setopt($curl,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 5.1; rv:22.0) Gecko/20100101 Firefox/22.0");
  46. curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);
  47. curl_setopt($curl,CURLOPT_COOKIEJAR,dirname(__FILE__)."/ex4ar.txt");
  48. curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/ex4ar.txt");
  49. curl_setopt($curl,CURLOPT_POST,1);
  50. curl_setopt($curl, CURLOPT_REFERER, "http://www.exploit4ar.com/");
  51. curl_setopt($curl,CURLOPT_POSTFIELDS,"exploit_title={$keyword}&exploit_text=&cat_id=any&exploit_platform=any&search=Search");
  52. $rez = curl_exec($curl);
  53. curl_close($curl);
  54. #Matching ID From Results
  55. preg_match_all("#href='http://www.exploit4ar.com/exploits/(.*?)' title='#i",$rez,$needed);
  56. echo'<b>Exploits Found :</b><font color=green>'.count($needed[1]).'</font></b><br><br>';
  57. echo'<table border="1" width="80%" align="center">';
  58. echo "<tr><td>ID</td><td>Link</td></tr>";
  59. foreach($needed[1] as $id){
  60. #Matching The Title
  61. preg_match("#href='http://www.exploit4ar.com/exploits/$id' title='(.*?)'>#i",$rez,$title);
  62. echo "<tr><td>$id</td><td><a href='http://www.exploit4ar.com/exploits/$id'>$title[1]</a></td></tr>";
  63. }
  64. echo "</table>";
  65. unlink(dirname(__FILE__)."/ex4ar.txt");
  66. }
  67.  
  68. ?>
  69. <center>
  70. <p align="center">&nbsp;</p>
  71. <p align="center"><font color="#2C2C2C" size="4">By DamaneDz</font><br><br>
  72. MaDe in AlGeria 2013 &copy</p>
  73. <p></center>
  74. </body>
  75. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement