<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Bash socket programming with /dev/tcp</title>
	<atom:link href="http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/feed/" rel="self" type="application/rss+xml" />
	<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/</link>
	<description>Your blog is probably better than mine.</description>
	<lastBuildDate>Thu, 18 Mar 2010 14:19:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Vladimir</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-99683</link>
		<dc:creator>Vladimir</dc:creator>
		<pubDate>Wed, 10 Mar 2010 22:03:50 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-99683</guid>
		<description>I have adjusted this code to write and read from a non-web server.
The problem is that my msg_out is 94 bytes, but server gets 95.
I wonder where the extra byte is coming from.

#~ Open socket.
exec 3/dev/tcp/172.26.0.6/9991 # 103, 6

#~ Send msg.
echo &quot;$msg_out&quot; &gt;&amp;3

#~ Receive msg.
read -r msg_in &lt;&amp;3
echo &quot;msg_in:  $msg_in&quot;

Please give me you thoughts.
Regards,
Vladimir.
San Jose, CA.</description>
		<content:encoded><![CDATA[<p>I have adjusted this code to write and read from a non-web server.<br />
The problem is that my msg_out is 94 bytes, but server gets 95.<br />
I wonder where the extra byte is coming from.</p>
<p>#~ Open socket.<br />
exec 3/dev/tcp/172.26.0.6/9991 # 103, 6</p>
<p>#~ Send msg.<br />
echo &#8220;$msg_out&#8221; &gt;&amp;3</p>
<p>#~ Receive msg.<br />
read -r msg_in &lt;&amp;3<br />
echo &quot;msg_in:  $msg_in&quot;</p>
<p>Please give me you thoughts.<br />
Regards,<br />
Vladimir.<br />
San Jose, CA.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-88768</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 01 Oct 2009 21:02:10 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-88768</guid>
		<description>Brian: By &quot;bashism&quot;, I didn&#039;t mean to say that it was exclusive to bash, just that the file /dev/tcp does not actually exist in any file system.

--Dave</description>
		<content:encoded><![CDATA[<p>Brian: By &#8220;bashism&#8221;, I didn&#8217;t mean to say that it was exclusive to bash, just that the file /dev/tcp does not actually exist in any file system.</p>
<p>&#8211;Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian K. White</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-88765</link>
		<dc:creator>Brian K. White</dc:creator>
		<pubDate>Thu, 01 Oct 2009 20:50:10 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-88765</guid>
		<description>Not a bashism at all.
Similar functionality is in at least ksh (real ksh) and zsh.</description>
		<content:encoded><![CDATA[<p>Not a bashism at all.<br />
Similar functionality is in at least ksh (real ksh) and zsh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: debian38</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-86959</link>
		<dc:creator>debian38</dc:creator>
		<pubDate>Tue, 08 Sep 2009 17:50:49 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-86959</guid>
		<description>Why is it not enabled in Debian ? Because bash in Debian is compiled with --disable-net-redirections:

&quot;It can produce completely unexpected results. This kind of
feature should not be part of a shell but a special tool. And
that tool has existed for years already, it&#039;s called netcat.&quot;

To my part, I strongly recommend you to take look on socat. Definitely the best network swiss army knife.</description>
		<content:encoded><![CDATA[<p>Why is it not enabled in Debian ? Because bash in Debian is compiled with &#8211;disable-net-redirections:</p>
<p>&#8220;It can produce completely unexpected results. This kind of<br />
feature should not be part of a shell but a special tool. And<br />
that tool has existed for years already, it&#8217;s called netcat.&#8221;</p>
<p>To my part, I strongly recommend you to take look on socat. Definitely the best network swiss army knife.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mt</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-79440</link>
		<dc:creator>mt</dc:creator>
		<pubDate>Wed, 03 Jun 2009 12:05:55 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-79440</guid>
		<description>There&#039;s also ncat (part of nmap). Supports proxy.

http://nmap.org/ncat/</description>
		<content:encoded><![CDATA[<p>There&#8217;s also ncat (part of nmap). Supports proxy.</p>
<p><a href="http://nmap.org/ncat/" rel="nofollow">http://nmap.org/ncat/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dbabits</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-65221</link>
		<dc:creator>dbabits</dc:creator>
		<pubDate>Mon, 24 Nov 2008 21:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-65221</guid>
		<description>can anyone show how to do the same if i&#039;m behind a corporate proxy?
Somehow i need to specify the proxy&#039;s url here</description>
		<content:encoded><![CDATA[<p>can anyone show how to do the same if i&#8217;m behind a corporate proxy?<br />
Somehow i need to specify the proxy&#8217;s url here</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-57915</link>
		<dc:creator>David</dc:creator>
		<pubDate>Tue, 16 Sep 2008 01:05:08 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-57915</guid>
		<description>A tad late, but technically all those &quot;\n&quot; should be &quot;\r\n&quot;.  The RFC calls for CRLF line termination.</description>
		<content:encoded><![CDATA[<p>A tad late, but technically all those &#8220;\n&#8221; should be &#8220;\r\n&#8221;.  The RFC calls for CRLF line termination.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Connect-back Shell - Defending the Box &#171; Neohapsis Labs</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-45853</link>
		<dc:creator>Connect-back Shell - Defending the Box &#171; Neohapsis Labs</dc:creator>
		<pubDate>Fri, 18 Apr 2008 20:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-45853</guid>
		<description>[...] known for quite some time - it&#8217;s easily discovered on the blogosphere in articles here and here for example. Since this is built-in to bash by default in most instances, the main method of [...]</description>
		<content:encoded><![CDATA[<p>[...] known for quite some time &#8211; it&#8217;s easily discovered on the blogosphere in articles here and here for example. Since this is built-in to bash by default in most instances, the main method of [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-23223</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Sun, 22 Jul 2007 14:26:41 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-23223</guid>
		<description>I&#039;m afraid I have no idea what you&#039;re talking about by &quot;backconnect&quot;. Are you talking about the server side?</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid I have no idea what you&#8217;re talking about by &#8220;backconnect&#8221;. Are you talking about the server side?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://thesmithfam.org/blog/2006/05/23/bash-socket-programming-with-devtcp-2/comment-page-1/#comment-23212</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sun, 22 Jul 2007 08:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://thesmithfam.org/blog/?p=21#comment-23212</guid>
		<description>can you post the backconnect shellcode?</description>
		<content:encoded><![CDATA[<p>can you post the backconnect shellcode?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
