by dtouch3d · 11y ago · 0 comments
Something like scapy is perfect for this, I'm not sure about the speed though.
Our assignments were (1) a toy implementation of RSA, complete with the ability to generate SSL certificates (so, ASN.1 encoding, etc) using only a bignum library and (2) implementing a known buffer overflow attack on an old version of sendmail. ( http://web.nvd.nist.gov/view/vuln/detail?vulnId=CAN-2002-133... )
https://web.archive.org/web/20140106173814/http://www.cs.sto...
With low volume traffic, the code spends most of it's time blocked waiting for the next packet so the response is very quick.
With high volumes, especially high volume of small packets, the code can get seriously backlogged and even miss packets altogether if the raw interface isn't serviced fast enough.
H/W acceleration is needed to do this at backbone volumes.
Once upon a time (over 10 years ago) I was working in the field of high-volume NIDS and keeping up with (then blazing fast) GiGE LAN volumes was very challenging with the CPU alone back then. And that was with tuned rule sets / minimal pre-processors / no other I/O in the hot path.