70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
# File 'lib/wasp/wasp.rb', line 70
def attack(num, conn, url, time=nil)
wasps = assemble_wasps
maximum = wasps.count * WASP::Const::DEFAULT_MAXIMUM_STINGS
if conn > maximum then
print "[WARN]".yellow + " concurrent attack exceeded maximum number of wasps.\n"
print "Currently maximum number of concurrent attack is " + "#{maximum}".green + ".\n"
print "Please breed more wasps.\n"
exit false
end
urls = url.split(';')
puts "Organizing the wasp."
stingless_wasps = _attack(wasps, num, conn, urls, time)
print "Offensive complete.\n\n"
retrive_report(stingless_wasps) if @report
mission_report(stingless_wasps)
puts "The wasp is awaiting new orders."
end
|