From 01e87282a9e4dd9437d2b2b0a34abb53bf7c713a Mon Sep 17 00:00:00 2001 From: Ramon de C Valle Date: Sat, 20 Jun 2015 18:48:10 -0700 Subject: [PATCH] Use Msf::ThreadManager#spawn --- modules/auxiliary/server/jsse_skiptls_mitm_proxy.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/auxiliary/server/jsse_skiptls_mitm_proxy.rb b/modules/auxiliary/server/jsse_skiptls_mitm_proxy.rb index 6c7ebfd47e..0ad9da6b76 100644 --- a/modules/auxiliary/server/jsse_skiptls_mitm_proxy.rb +++ b/modules/auxiliary/server/jsse_skiptls_mitm_proxy.rb @@ -98,8 +98,10 @@ class Metasploit3 < Msf::Auxiliary proxy = TCPServer.new(local_host, local_port) print_status('Listening on %s:%d' % [proxy.addr[2], proxy.addr[1]]) + thread_num = 0 + loop do - Thread.start(proxy.accept) do |client| + framework.threads.spawn("Thread #{thread_num += 1}", false, proxy.accept) do |client| #loop do finished_sent = false handshake_messages = ''