beefproject/beef — Issue #8: Network stack throws error with high amount of traffic
Author: passbe
Created: 2011-12-10 21:06:01+00:00
State: open

I got these errors, that resulted in cpu => 50% and BeEF freeze,
when playing with Burp Scanner on two resources, using the following increased scanning engine config:

thread count: 20
retried on net failure: 2
pause before retry (millis): 500

So yes, very hazard settings.
I was hoping to get some errors, to see where things can hang.
Here we go :-)

[:39:56]←[33m[>]←[0m [PROXY] Forwarding request: host[192.168.10.128], method[GET], path[/dvwa/vulnerabilities/sqli/], urlparams[id=abcde../../../../../../../../../../windows/win.ini&Submit=Submit], body[]
[:39:56]←[33m[>]←[0m [PROXY] Forwarding request: host[192.168.10.128], method[GET], path[/dvwa/vulnerabilities/xss_r/], urlparams[name=*)(sn=*], body[]
[2011-06-28 10:40:06] ERROR NoMethodError: undefined method `[]' for nil:NilClass
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `expunge'
C:/Ruby187/lib/ruby/gems/1.8/gems/json-1.5.1-x86-mingw32/lib/json/pure/parser.rb:148:in `sort_by'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `each'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `sort_by'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `expunge'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:53:in `check_packets'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:41:in `each'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:41:in `check_packets'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:33:in `do_GET'
C:/Ruby187/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/Ruby187/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/BeEF/./core/main/server.rb:101:in `start'
beef:64
[2011-06-28 10:40:06] ERROR NoMethodError: undefined method `[]' for nil:NilClass
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `expunge'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `sort_by'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `each'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `sort_by'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:80:in `expunge'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:53:in `check_packets'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:41:in `each'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:41:in `check_packets'
C:/BeEF/./core/main/network_stack/handlers/dynamicreconstruction.rb:33:in `do_GET'
C:/Ruby187/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
C:/Ruby187/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
C:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start'
C:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start'
C:/BeEF/./core/main/server.rb:101:in `start'
beef:64
[:40:06]←[34m[*]←[0m [PROXY] Response for request #219 to [/dvwa/vulnerabilities/xss_r/] on domain [192.168.10.128:80] correctly processed
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=358