Fixed thread issue that occasionally caused BeEF to stop immediately.

While using sleep() to fix thread complications is never a great
solution, it gets the job done for now.
This commit is contained in:
soh_cah_toa
2013-05-05 21:14:30 -04:00
parent fdd1048f1a
commit d22373d828

View File

@@ -20,9 +20,12 @@ module API
address = config.get('beef.extension.dns.address')
port = config.get('beef.extension.dns.port')
Thread.new { BeEF::Extension::DNS::DNS.new(address, port) }
Thread.new do
sleep 2
BeEF::Extension::DNS::DNS.new(address, port)
end
print_info "DNS server: #{address}:#{port}"
print_info "DNS Server: #{address}:#{port}"
end
end