 




<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Irregular Expressions &#187; smashthestack logic level 1</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/Irregular-Expressions/tag/smashthestack-logic-level-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/Irregular-Expressions</link>
	<description>Insight into current security related events and exploits, including virtualization security and tips.</description>
	<lastBuildDate>Sun, 28 Apr 2013 08:00:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Smash The Stack Logic Level 1 * Spoiler * Part b</title>
		<link>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler-part-b/</link>
		<comments>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler-part-b/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 02:19:59 +0000</pubDate>
		<dc:creator>Dan O'Connor</dc:creator>
				<category><![CDATA[logic level 1]]></category>
		<category><![CDATA[smash the stack]]></category>
		<category><![CDATA[smashthestack]]></category>
		<category><![CDATA[smashthestack logic level 1]]></category>
		<category><![CDATA[smashthestack logic level1]]></category>
		<category><![CDATA[smashthestack solution level 1]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler-part-b/</guid>
		<description><![CDATA[A couple more things to mention, just running the basic commands from the web page will only give you a single line of output.  You could just guess which is what I did or if you really need to see the output of the commands I would redirect them to the upload directory and from [...]]]></description>
				<content:encoded><![CDATA[<p>A couple more things to mention, just running the basic commands from the web page will only give you a single line of output.  You could just guess which is what I did or if you really need to see the output of the commands I would redirect them to the upload directory and from there you can view them.  The other thing you could have done is uploaded nc directly to the server ( I did not try this, I did not want to break anything) and execute it in to a listening loop against /bin/sh, insta shell.  Or you could do the same thing by creating a service.</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler-part-b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Smash The Stack Logic Level 1 * Spoiler *</title>
		<link>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler/</link>
		<comments>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 04:40:59 +0000</pubDate>
		<dc:creator>Dan O'Connor</dc:creator>
				<category><![CDATA[logic level 1]]></category>
		<category><![CDATA[smash the stack]]></category>
		<category><![CDATA[smashthestack]]></category>
		<category><![CDATA[smashthestack logic level 1]]></category>
		<category><![CDATA[smashthestack logic level1]]></category>
		<category><![CDATA[smashthestack solution level 1]]></category>

		<guid isPermaLink="false">http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler/</guid>
		<description><![CDATA[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&#8217;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. [...]]]></description>
				<content:encoded><![CDATA[<p>I had a bit of time so I thought I would take a look at Level 1 on Logic.</p>
<p>Not much of an introduction.. <a href="http://logic.smashthestack.org:88/">http://logic.smashthestack.org:88/</a></p>
<p>We don&#8217;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.</p>
<p>First thing I tried was a basic hello php script, just to see what would happen.</p>
<p>Ta-da it worked, we got a hello back.</p>
<p>Next I tossed some &#8216;ls&#8217; commands at various directories to see what was going on.</p>
<p>Not much stands out, just the README file left in the level1 home directory.</p>
<pre><span><strong>Congrats on getting to the shell. Now you must find the password for level2.
</strong></span><strong>Once you have found the password you can reconnect to the server as the level2 user:
</strong><strong>ssh -p 2227 logic.smashthestack.org -l level2
</strong><strong>You need not look far from home</strong></pre>
<p>So now what? lets take another look at the home directory with a &#8216;ls -alh&#8217;.</p>
<p>There is one more file to look at, a .bash_history.</p>
<pre><span>ls
</span><span>who
</span><span>cat README
</span><span>ach3sa6F
</span><span>clear
</span><span>su level2</span></pre>
<p><span>Yay for fat fingers, there is the password.</span></p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/Irregular-Expressions/smash-the-stack-logic-level-1-spoiler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
