Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Exploit4Arab Exploit Finder</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">Exploit4Arab Exploit Finder 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: 08/06/2013 at 11:10
- */
- set_time_limit(0);
- if($_POST["search"]){
- #The Keyword To Search
- $keyword=trim($_POST["key"]);
- #CurL
- $curl = curl_init();
- curl_setopt($curl,CURLOPT_URL,"http://www.exploit4ar.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__)."/ex4ar.txt");
- curl_setopt($curl,CURLOPT_COOKIEFILE,dirname(__FILE__)."/ex4ar.txt");
- curl_setopt($curl,CURLOPT_POST,1);
- curl_setopt($curl, CURLOPT_REFERER, "http://www.exploit4ar.com/");
- curl_setopt($curl,CURLOPT_POSTFIELDS,"exploit_title={$keyword}&exploit_text=&cat_id=any&exploit_platform=any&search=Search");
- $rez = curl_exec($curl);
- curl_close($curl);
- #Matching ID From Results
- preg_match_all("#href='http://www.exploit4ar.com/exploits/(.*?)' title='#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("#href='http://www.exploit4ar.com/exploits/$id' title='(.*?)'>#i",$rez,$title);
- echo "<tr><td>$id</td><td><a href='http://www.exploit4ar.com/exploits/$id'>$title[1]</a></td></tr>";
- }
- echo "</table>";
- unlink(dirname(__FILE__)."/ex4ar.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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement