Technical Introduction to Bots ◾ 95
SDBot, being open source, required many updates to work well. One such example
was where SYN floods caused bots to become unresponsive by generating so much
egress traffic that a remote attacker lost the ability to communicate with the bot. A
snippet from the “syn flood fix.txt” from 2003 identified a fix for this problem:
// syn flood fix for sdbots. Stops them from pinging out/
not accepting any more commands when running a syn flood.
(due to location of synflood call, not due to bots
lagging themselves to death)
// add this to the part of your code where all the
typedef’s for the syn flood are
//fixed syn flood bohika
<snipped text>
threads[sin.threadnumber] = CreateThread(NULL, 0,
&synthread, (void *)&sin, ...