Irregular Expressions

Apr 18 2012   11:40PM GMT

Smash The Stack Logic Level 1 * Spoiler *

Dan O'Connor Dan O'Connor Profile: Dan O'Connor

I had a bit of time so I thought I would take a look at Level 1 on Logic.

Not much of an introduction..

We don’t have shell access and only have the link to the uploader.  If you submit a file the next page is PHP, so we know the site is PHP enabled.

First thing I tried was a basic hello php script, just to see what would happen.

Ta-da it worked, we got a hello back.

Next I tossed some ‘ls’ commands at various directories to see what was going on.

Not much stands out, just the README file left in the level1 home directory.

Congrats on getting to the shell. Now you must find the password for level2.
Once you have found the password you can reconnect to the server as the level2 user:
ssh -p 2227 -l level2
You need not look far from home

So now what? lets take another look at the home directory with a ‘ls -alh’.

There is one more file to look at, a .bash_history.

su level2

Yay for fat fingers, there is the password.

 Comment on this Post

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when other members comment.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

Share this item with your network: