Advertisement
Damane-Dz

Exploit4Arab Exploit Finder

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