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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user