Irregular Expressions

Apr 18 2012   11:40PM GMT

Smash The Stack Logic Level 1 * Spoiler *



Posted by: Dan O'Connor
Tags:
logic level 1
smash the stack
smashthestack
smashthestack logic level 1
smashthestack logic level1
smashthestack solution level 1

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

Not much of an introduction.. http://logic.smashthestack.org:88/

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 logic.smashthestack.org -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.

ls
who
cat README
ach3sa6F
clear
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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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: