<?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>Nadav Samet&#039;s Blog &#187; linux</title>
	<atom:link href="http://www.thesamet.com/blog/tags/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thesamet.com</link>
	<description>Because everyone needs a blog</description>
	<lastBuildDate>Sat, 07 Aug 2010 21:58:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>How to Gain Root Access on SunOS (a 1-day exploit)</title>
		<link>http://www.thesamet.com/blog/2007/02/12/how-to-gain-root-access-on-sunos-a-1-day-exploit/</link>
		<comments>http://www.thesamet.com/blog/2007/02/12/how-to-gain-root-access-on-sunos-a-1-day-exploit/#comments</comments>
		<pubDate>Mon, 12 Feb 2007 21:54:12 +0000</pubDate>
		<dc:creator>thesamet</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.thesamet.com/blog/2007/02/12/how-to-get-root-access-on-sunos-a-1-day-exploit/</guid>
		<description><![CDATA[If you happen to find a Sun Solaris server with a telnet daemon running, it is very likely that you can get superuser access on it by just typing: $ telnet -l "-froot" server where server is the server name. &#8230; <a href="http://www.thesamet.com/blog/2007/02/12/how-to-gain-root-access-on-sunos-a-1-day-exploit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you happen to find a Sun Solaris server with a telnet daemon running, it is very likely that you can get superuser access on it by just typing:</p>
<pre>
$ telnet -l "-froot" server</pre>
<p>where <code>server</code> is the server name. I was able to confirm this on a Solaris server nearby.</p>
<p><div style="float: right; margin-left: 1.5em;">
<script type="text/javascript"><!--
google_ad_client = "pub-9393140612616722";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2006-12-13: blog_square
google_ad_channel = "2605264114";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0070D0";
google_color_text = "000000";
google_color_url = "0070D0";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>It&#8217;s amazing to see that this one was overlooked for SO much time, and how using this exploit does not require any skill whatsoever. If root logins through telnet are disabled, you may still be able to login as any other user (think sysadmin&#8217;s user account + keystroke recorder)</p>
<p>While the telnet port is usually blocked to servers on the internet, it is quite common that it is left open inside local networks, and especially in universities. So go ahead and look for Solaris rootkits &#8212; the exam period is just over the corner <img src='http://www.thesamet.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Source: <a href="http://erratasec.blogspot.com/2007/02/trivial-remote-solaris-0day-disable.html">Errata Security blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesamet.com/blog/2007/02/12/how-to-gain-root-access-on-sunos-a-1-day-exploit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Efficient Editing In The Command Line: Part 1</title>
		<link>http://www.thesamet.com/blog/2006/12/12/efficient-editing-in-the-command-line-part-1/</link>
		<comments>http://www.thesamet.com/blog/2006/12/12/efficient-editing-in-the-command-line-part-1/#comments</comments>
		<pubDate>Tue, 12 Dec 2006 22:31:29 +0000</pubDate>
		<dc:creator>thesamet</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://www.thesamet.com/blog/2006/12/12/efficient-editing-in-the-command-line-part-1/</guid>
		<description><![CDATA[If you are like me, spending a lot of time in the command line, you might be looking for ways to edit the command lines more efficiently. Many interactive UNIX programs implement line editing by using GNU&#8217;s readline library. This &#8230; <a href="http://www.thesamet.com/blog/2006/12/12/efficient-editing-in-the-command-line-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: right; margin-left: 1.5em;">
<script type="text/javascript"><!--
google_ad_client = "pub-9393140612616722";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_ad_type = "text_image";
//2006-12-13: blog_square
google_ad_channel = "2605264114";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0070D0";
google_color_text = "000000";
google_color_url = "0070D0";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>If you are like me, spending a lot of time in the command line, you might be looking for ways to edit the command lines more efficiently. Many interactive UNIX programs implement line editing by using <a href="http://tiswww.case.edu/~chet/readline/rltop.html">GNU&#8217;s readline library</a>. This means that all these programs, which include the different shells, Python and many others, offer the same set of keyboard shortcuts. Mastering these shortcuts is worthwhile, since you&#8217;ll be able to use them over and over again in many places.</p>
<h2>Moving around quickly</h2>
<p>The most basic part is to move to the place you want to edit quickly. Here are the most useful shortcuts:</p>
<ul>
<li><strong>Ctrl-a</strong> &#8211; Move to the start of the line.</li>
<li><strong>Ctrl-e</strong> &#8211; Move to the end of the line.</li>
<li><strong>Alt-f</strong> &#8211; Move forward a word.</li>
<li><strong>Ctrl-f</strong> &#8211; Move forward a char.</li>
<li><strong>Alt-b</strong> &#8211; Move backward a word.</li>
<li><strong>Ctrl-b</strong> &#8211; Move backward a char.</li>
</ul>
<p>Another very common shortcut is Ctrl-L which clears the screen and reprints the current line at the top. This is useful if you are organizing your movies library and somebody enters the room.</p>
<h2>Cut, Paste and Undo</h2>
<p>Here is the list of most useful shortcuts for deleting text:</p>
<ul>
<li><strong>Ctrl-w</strong> &#8211; Deletes from cursor position to the previous whitespace.</li>
<li><strong>Ctrl-k</strong> &#8211; Deletes from cursor position to the end of the line.</li>
<li><strong>Ctrl-d</strong> &#8211; Deletes from current character.</li>
<li><strong>Ctrl-u</strong> &#8211; Deletes from whole line.</li>
<li><strong>Alt-d</strong> &#8211; Deletes from cursor position to the end of the current word.</li>
<li><strong>Alt-DEL</strong> &#8211; Deletes from cursor position to the start of the current word.</li>
</ul>
<p>The deleted text can be pasted (yanked) using Ctrl-y. You can use Ctrl-_ or Ctrl-X-U to undo the last editing command. </p>
<h2>Summary</h2>
<p>This covers the essentials. On the next parts of this series we&#8217;ll explore the more powerful abilities of readline. Feel free to leave here questions, suggestions, or perhaps your own tips and tricks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thesamet.com/blog/2006/12/12/efficient-editing-in-the-command-line-part-1/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

