<?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>Darknet - The Darkside &#187; tcp</title>
	<atom:link href="http://www.darknet.org.uk/tag/tcp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darknet.org.uk</link>
	<description>Ethical Hacking, Penetration Testing &#38; Computer Security</description>
	<lastBuildDate>Tue, 07 Feb 2012 18:34:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>stealth techniques &#8211; syn</title>
		<link>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/</link>
		<comments>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/#comments</comments>
		<pubDate>Fri, 08 Jun 2007 19:13:37 +0000</pubDate>
		<dc:creator>backbone</dc:creator>
				<category><![CDATA[General Hacking]]></category>
		<category><![CDATA[Hacking Tools]]></category>
		<category><![CDATA[Linux Hacking]]></category>
		<category><![CDATA[Network Hacking]]></category>
		<category><![CDATA[Windows Hacking]]></category>
		<category><![CDATA[3-way-handshake]]></category>
		<category><![CDATA[flags]]></category>
		<category><![CDATA[freebsd]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hping]]></category>
		<category><![CDATA[hping2]]></category>
		<category><![CDATA[IP]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[scanning]]></category>
		<category><![CDATA[syn]]></category>
		<category><![CDATA[tcp]]></category>
		<category><![CDATA[three]]></category>
		<category><![CDATA[unix]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.darknet.org.uk/2007/06/stealth-techniques-syn/</guid>
		<description><![CDATA[Or half-open scanning technique is the first of three to come series about stealth scanning&#8230; The other two are Xmas/Fin/Null and idle/zombie scan techniques&#8230; Intro This is a series of three to come articles about stealth scanning, everything that I am going to present is hping oriented so if you want to learn this techniques [...]]]></description>
			<content:encoded><![CDATA[<p></p>
<p>Or half-open scanning technique is the first of three to come series about stealth scanning&#8230; The other two are Xmas/Fin/Null and idle/zombie scan techniques&#8230;</p>
<p><strong>Intro</strong><br />
This is a series of three to come articles about stealth scanning, everything that I am going to present is hping oriented so if you want to learn this techniques you&#8217;d better get a copy of hping.<br />
This method is invoked when you add nmap the -sS parameter&#8230; so let&#8217;s start&#8230;</p>
<p><strong>3 Way Handshake</strong><br />
If you didn&#8217;t know a tcp connection is based on a method called the three way handshake, that goes like this:</p>
<p>[host] syn flagged packet &#8212;&#8212;&#8212;&gt; [destination] receives packet<br />
[destination] syn-ack flagged packet &#8212;&#8212;&#8212;&gt; [host] receives packet<br />
[host] ack flagged packet &#8212;&#8212;&#8212;&gt; [destination] receives packet [connection established]</p>
<p>This is the methodology of a TCP connection, just upon a successful execution of this section a real connection is done&#8230; You probably can see a weak point in this  method, can&#8217;t you. For every sent packet the host (and destination) waits a period of time for the next packet. If you can send really fast spoofed syn packets you can DoS a target in no time, this is the oldest DoSing method ever known to man (and women) =)</p>
<p><strong>SYNner</strong><br />
Firstly let&#8217;s see what happens if we hit a closed port, try out the following command (and result after it):</p>
<pre>
C:\\&gt;hping -p 81 -S lx.ro
HPING (XPSP2) lx.ro (SiS 900 PCI Fast Ethernet Adapter -
Packet Scheduler Miniport 81.181.218.80): S set, 40 headers + 0
data bytes

len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=0
win=0 rtt=70.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=1
win=0 rtt=20.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=2
win=0 rtt=30.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=81 flags=RA seq=3
win=0 rtt=40.0 ms
</pre>
<p>As you can see on an unsuccessful port scan we get a <Strong>R</strong>eset-<strong>A</strong>cknowledge , which tels us, as already mentioned, that we hit a closed port&#8230;<br />
Now for the moment we all were waiting for:</p>
<pre>
C:\\&gt;hping -p 80 -S lx.ro
HPING (XPSP2) lx.ro (SiS 900 PCI Fast Ethernet Adapter -
Packet Scheduler Miniport 81.181.218.80): S set, 40 headers + 0
data bytes

len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=30.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=0.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=1
win=5840 rtt=50.0 ms
len=46 ip=81.181.218.80 ttl=54 DF id=0 sport=80 flags=SA seq=0
win=5840 rtt=0.0 ms
</pre>
<p>As you can see we hit an open port&#8230; If you weren&#8217;t attentive till now a syn-ack flag means an open port, half-way connected&#8230;</p>
<p><strong>Epilogue</strong><br />
Nowadays this method isn&#8217;t as stealthy as it was years ago, because now firewalls most often drop unwanted packets or sees them as pre-DoS syn packets&#8230;</p>
<p>More info about TCP :: <a href="http://www.rhyshaden.com/tcp.htm">www.rhyshaden.com</a><br />
(first useful link that I have found with google)</p>
<p></p>
<p>Next &gt;&gt; Xmas/Fin/Null</p>
<div class="tweetthis" style="text-align:left;"><p> <a class="tt" href="http://twitter.com/intent/tweet?text=stealth+techniques+%E2%80%93+syn+http%3A%2F%2Fdarknet.org.uk%2F%3Fp%3D599+from+%40THEdarknet" title="Post to Twitter"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter-micro3.png" alt="Post to Twitter" /></a> <a class="tt" href="http://www.facebook.com/share.php?u=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;t=stealth+techniques+%E2%80%93+syn" title="Post to Facebook"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook-micro3.png" alt="Post to Facebook" /></a> <a class="tt" href="http://www.google.com/buzz/post?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;imageurl=" title="Post to Google Buzz"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/gbuzz/tt-gbuzz-micro3.png" alt="Post to Google Buzz" /></a> <a class="tt" href="http://delicious.com/post?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Delicious"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/delicious/tt-delicious-micro3.png" alt="Post to Delicious" /></a> <a class="tt" href="http://digg.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Digg"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/digg/tt-digg-micro3.png" alt="Post to Digg" /></a> <a class="tt" href="http://reddit.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to Reddit"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit-micro3.png" alt="Post to Reddit" /></a> <a class="tt" href="http://stumbleupon.com/submit?url=http://www.darknet.org.uk/2007/06/stealth-techniques-syn/&amp;title=stealth+techniques+%E2%80%93+syn" title="Post to StumbleUpon"><img class="nothumb" src="http://www.darknet.org.uk/wp-content/plugins/tweet-this/icons/en/su/tt-su-micro3.png" alt="Post to StumbleUpon" /></a></p></div><div class="AWD_like_button "><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.darknet.org.uk%2F2007%2F06%2Fstealth-techniques-syn%2F&amp;send=false&amp;layout=standard&amp;width=&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=40" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:40px;" allowTransparency="true"></iframe></div>]]></content:encoded>
			<wfw:commentRss>http://www.darknet.org.uk/2007/06/stealth-techniques-syn/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

