News for hackers. Stuff that matters.
Re:What happens if you write a TCP stack in Python? by tptacek on Tuesday August 12, 2014 @12:04PM (#8168368)
Like writing your own emulator, writing a full TCP stack is a project that is intrinsically worth doing.

You can probably also come up with real-world applications for it (as a security tester, there are lots of applications for having full control over a TPC stack, regardless of how performant it is), but just having done it offers a huge learning return on a modest investment.

You probably don't fully grok what TCP even is until you've made congestion control work.

Re:What happens if you write a TCP stack in Python? by MagerValp on Wednesday August 13, 2014 @09:49AM (#8172844)
I just want to second this, I didn't fully understand networking until I wrote my own stack and threw packets on the wire. A simple stack with ARP/ICMP/IP/UDP can be written in a day and seeing your very own ping packets fly across the globe is pretty damn awesome.
Re:What happens if you write a TCP stack in Python? by eru on Tuesday August 12, 2014 @09:53PM (#8171104)
> (as a security tester, there are lots of applications for having full control over a TPC stack, regardless of how performant it is)

And sometimes you even want your stack to be slow, eg in a slow loris attack.

Re:What happens if you write a TCP stack in Python? by Sami_Lehtinen on Wednesday August 13, 2014 @12:55AM (#8171521)
Wrong. In these cases you want your stack to be as fast as possible. But you're introducing artificial delay on selected keypoints. If your attack code is slow, then you're basically attacking your self. Target is to consume (a lot if possible) more resources on the target side, than you're using on your own side.