by moridin666 on Mon Dec 10, 2012 11:45 pm
([msg=71631]see Re: Basic Mission 8[/msg])
Okay... so. I am not new to shell scripting. I've gotten far enough to start injecting commands via SSI, however, unlocking the correct possibility is insane.
It was pretty easy to get to the list of shtml files saved by Sam's daughter's script once I learned a bit about SSI.
Accessing the correct directory is the problem.
Originally, I started out trying to separate my commands, as in basic 7, and attempting to string together easy commands.I tried changing directories to the given directory and then printing its contents. No dice. Security reasons (like somebody who leaves this exploit open would prevent me from using all available commands in my unix toolbox, right? but no dice). I tried opening the file directly, guessing at a name of password.php because Sam doesn't seem like a creative type, but of course, without a client side program to open it, it's not going to open, but either way, no dice, command disabled. I tried to have the shell print the contents of the file (guessing at the name again, same guess). No dice. Command disabled. Couldn't print the contents of the given directory to find the name of the file either.
Considering that I know what I am doing enough with shell scripting to know a variety of ways to attempt to get this and all of them are disabled, despite me being encouraged to try to use creative methods to get this file... it's discouraging! Any hints at all that are useful beyond what I already know? Or is it just a matter of trying every possible permutation in the man pages?