Added very basic threading to the Network stack. Fixes issue 315.

This commit is contained in:
Ben Passmore
2011-11-25 20:43:50 +10:00
parent ab0cca2818
commit e76909cd4a

View File

@@ -23,7 +23,7 @@ module Handlers
# @note holds packet queue
PQ = Array.new()
# @note obtain dynamic mount points from HttpHookServer
MOUNTS = BeEF::Core::Server.instance.mounts
@@ -65,7 +65,11 @@ module Handlers
:packet_count => Integer(@request['pc']),
:data => @request['d']
}
check_packets()
# @todo Test under high load, possibly limit the amount of threads being created
Thread.new {
check_packets()
}
response
end