<?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: Syn flood program in Python using raw sockets on Linux	</title>
	<atom:link href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/</link>
	<description>News, Technology, Entertainment and more</description>
	<lastBuildDate>Fri, 31 Jul 2020 14:05:45 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-269233</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Fri, 31 Jul 2020 14:05:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-269233</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-195816&quot;&gt;Daniel Moreno&lt;/a&gt;.

its not possible to use raw sockets on windows. 
you need to use a packet library winpcap. its available in python via wrappers like pcapy.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-195816">Daniel Moreno</a>.</p>
<p>its not possible to use raw sockets on windows.<br />
you need to use a packet library winpcap. its available in python via wrappers like pcapy.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Daniel Moreno		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-195816</link>

		<dc:creator><![CDATA[Daniel Moreno]]></dc:creator>
		<pubDate>Sat, 04 May 2019 03:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-195816</guid>

					<description><![CDATA[how to portable this code to windows machine ?]]></description>
			<content:encoded><![CDATA[<p>how to portable this code to windows machine ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: NanoDano		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-156480</link>

		<dc:creator><![CDATA[NanoDano]]></dc:creator>
		<pubDate>Wed, 21 Mar 2018 22:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-156480</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65608&quot;&gt;crazy4linux&lt;/a&gt;.

Would this have an impact on other connections on the server? Will other connections have problem closing/resetting because of this?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65608">crazy4linux</a>.</p>
<p>Would this have an impact on other connections on the server? Will other connections have problem closing/resetting because of this?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: NanoDano		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-156476</link>

		<dc:creator><![CDATA[NanoDano]]></dc:creator>
		<pubDate>Wed, 21 Mar 2018 20:39:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-156476</guid>

					<description><![CDATA[I feel so stupid now. I didn&#039;t realize you could create a raw socket in Python =X I always assumed raw syn packets without it automatically taking care of the full connect wasn&#039;t possible with the standard library.]]></description>
			<content:encoded><![CDATA[<p>I feel so stupid now. I didn&#8217;t realize you could create a raw socket in Python =X I always assumed raw syn packets without it automatically taking care of the full connect wasn&#8217;t possible with the standard library.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ameya		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-114881</link>

		<dc:creator><![CDATA[Ameya]]></dc:creator>
		<pubDate>Fri, 14 Apr 2017 19:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-114881</guid>

					<description><![CDATA[The code runs fine without any error. But the attack is not happening. as in, the website still opens. We checked if the packets are getting sent through wireshark. everything works fine, but the attack is not happening. 

Is there any other way I can check if the code is working fine?
and also to check if the website is attacked or not?

Thank you.]]></description>
			<content:encoded><![CDATA[<p>The code runs fine without any error. But the attack is not happening. as in, the website still opens. We checked if the packets are getting sent through wireshark. everything works fine, but the attack is not happening. </p>
<p>Is there any other way I can check if the code is working fine?<br />
and also to check if the website is attacked or not?</p>
<p>Thank you.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: darthvader		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-71380</link>

		<dc:creator><![CDATA[darthvader]]></dc:creator>
		<pubDate>Wed, 23 Mar 2016 04:17:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-71380</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-69652&quot;&gt;Ben&lt;/a&gt;.

Hi Ben

Did you find out the reason for this error, I am facing the same error]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-69652">Ben</a>.</p>
<p>Hi Ben</p>
<p>Did you find out the reason for this error, I am facing the same error</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: darthvader		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-71379</link>

		<dc:creator><![CDATA[darthvader]]></dc:creator>
		<pubDate>Wed, 23 Mar 2016 04:16:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-71379</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-71377&quot;&gt;darthvader&lt;/a&gt;.

the error is for sendto(packet,(dest_ip,0))]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-71377">darthvader</a>.</p>
<p>the error is for sendto(packet,(dest_ip,0))</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: darthvader		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-71377</link>

		<dc:creator><![CDATA[darthvader]]></dc:creator>
		<pubDate>Wed, 23 Mar 2016 04:15:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-71377</guid>

					<description><![CDATA[socket.error: [Errno 22] Invalid argument

I am using raw sockets to send HTTP request to a remote server.I am trying to send initial SYN request to set TCP connection(I have built IP and TCP headers ). I get the above error while trying to send out a SYN packet initially.

anyone has been through this issue and has gotten it to work?]]></description>
			<content:encoded><![CDATA[<p>socket.error: [Errno 22] Invalid argument</p>
<p>I am using raw sockets to send HTTP request to a remote server.I am trying to send initial SYN request to set TCP connection(I have built IP and TCP headers ). I get the above error while trying to send out a SYN packet initially.</p>
<p>anyone has been through this issue and has gotten it to work?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ben		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-69652</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Tue, 08 Mar 2016 06:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-69652</guid>

					<description><![CDATA[When I run it it gives me: s.sendto(packet, (dest_ip , 0 ))
socket.error: [Errno 22] Invalid argument
I don&#039;t know why, I tried everything I could think of.]]></description>
			<content:encoded><![CDATA[<p>When I run it it gives me: s.sendto(packet, (dest_ip , 0 ))<br />
socket.error: [Errno 22] Invalid argument<br />
I don&#8217;t know why, I tried everything I could think of.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: 4viz		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-67975</link>

		<dc:creator><![CDATA[4viz]]></dc:creator>
		<pubDate>Tue, 23 Jun 2015 18:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-67975</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-67400&quot;&gt;jithu&lt;/a&gt;.

https://en.wikipedia.org/wiki/IPv4_header_checksum 

becuse the cheak sum is only 16 bits and you need to add the cerry
for exaple 0x12345 so 0x2345 + 0x1 = 0x2346]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-67400">jithu</a>.</p>
<p><a href="https://en.wikipedia.org/wiki/IPv4_header_checksum" rel="nofollow ugc">https://en.wikipedia.org/wiki/IPv4_header_checksum</a> </p>
<p>becuse the cheak sum is only 16 bits and you need to add the cerry<br />
for exaple 0x12345 so 0x2345 + 0x1 = 0x2346</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: jithu		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-67400</link>

		<dc:creator><![CDATA[jithu]]></dc:creator>
		<pubDate>Fri, 12 Sep 2014 05:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-67400</guid>

					<description><![CDATA[hi,

can you plz explain why the following step is performed it the above code:

   s = (s&#062;&#062;16) + (s &#038; 0xffff);]]></description>
			<content:encoded><![CDATA[<p>hi,</p>
<p>can you plz explain why the following step is performed it the above code:</p>
<p>   s = (s&gt;&gt;16) + (s &amp; 0xffff);</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Piotr		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-66082</link>

		<dc:creator><![CDATA[Piotr]]></dc:creator>
		<pubDate>Wed, 09 Apr 2014 18:15:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-66082</guid>

					<description><![CDATA[File &quot;tcpsyn.py&quot;, line 29
    except socket.error , msg:
                        ^
SyntaxError: invalid syntax]]></description>
			<content:encoded><![CDATA[<p>File &#8220;tcpsyn.py&#8221;, line 29<br />
    except socket.error , msg:<br />
                        ^<br />
SyntaxError: invalid syntax</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: crazy4linux		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65608</link>

		<dc:creator><![CDATA[crazy4linux]]></dc:creator>
		<pubDate>Thu, 11 Jul 2013 14:46:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-65608</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65051&quot;&gt;Silver Moon&lt;/a&gt;.

if attackers platform is linux then we can configure kernel to drop all outgoing rst flag packets by following rules :-

iptables –A OUTPUT –p tcp –s 192.168.56.101 --tcp-flags RST RST –j DROP

iptables –A OUTPUT –p tcp –s 192.168.56.103 --tcp-flags RST RST –j DROP

for further reference follow this link:- 

http://www.linuxforu.com/2011/10/syn-flooding-using-scapy-and-prevention-using-iptables/]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65051">Silver Moon</a>.</p>
<p>if attackers platform is linux then we can configure kernel to drop all outgoing rst flag packets by following rules :-</p>
<p>iptables –A OUTPUT –p tcp –s 192.168.56.101 &#8211;tcp-flags RST RST –j DROP</p>
<p>iptables –A OUTPUT –p tcp –s 192.168.56.103 &#8211;tcp-flags RST RST –j DROP</p>
<p>for further reference follow this link:- </p>
<p><a href="http://www.linuxforu.com/2011/10/syn-flooding-using-scapy-and-prevention-using-iptables/" rel="nofollow ugc">http://www.linuxforu.com/2011/10/syn-flooding-using-scapy-and-prevention-using-iptables/</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Silver Moon		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65051</link>

		<dc:creator><![CDATA[Silver Moon]]></dc:creator>
		<pubDate>Mon, 15 Apr 2013 04:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-65051</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65050&quot;&gt;foreverzeus&lt;/a&gt;.

the syn packet is send by the program, but the syn+ack packet is received by the kernel.
now the kernel is unaware of any syn packets send, since it did not send the syn packet. in such a case it finds the syn+ack packet unexpected and so replies with a rst server to tell the remote server that this is not a valid connection and should be closed down.


this is the default behaviour on both windows and linux. and there is no easy way to prevent the kernel from sending the rst packets.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65050">foreverzeus</a>.</p>
<p>the syn packet is send by the program, but the syn+ack packet is received by the kernel.<br />
now the kernel is unaware of any syn packets send, since it did not send the syn packet. in such a case it finds the syn+ack packet unexpected and so replies with a rst server to tell the remote server that this is not a valid connection and should be closed down.</p>
<p>this is the default behaviour on both windows and linux. and there is no easy way to prevent the kernel from sending the rst packets.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: foreverzeus		</title>
		<link>https://www.binarytides.com/python-syn-flood-program-raw-sockets-linux/comment-page-1/#comment-65050</link>

		<dc:creator><![CDATA[foreverzeus]]></dc:creator>
		<pubDate>Mon, 15 Apr 2013 01:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.binarytides.com/?p=3102#comment-65050</guid>

					<description><![CDATA[hi

when I use this to connect a socket server in other pc in linux pc， when I send a syn packet then the server send me a syn+ack packet，But, at the same time, linuc pc send the server a rst packet, but this packet is not sent by my program，why？ I change my port， but it nothing]]></description>
			<content:encoded><![CDATA[<p>hi</p>
<p>when I use this to connect a socket server in other pc in linux pc， when I send a syn packet then the server send me a syn+ack packet，But, at the same time, linuc pc send the server a rst packet, but this packet is not sent by my program，why？ I change my port， but it nothing</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
