beefproject/beef — Issue #336: BeEF Broken with IE8
Author: passbe
Created: 2011-12-10 22:47:49+00:00
State: open

[2011-03-25 22:12:27] ERROR JSON::ParserError: 375: unexpected token at '{"cid":0, "results":{"BrowserName":"IE", "BrowserVersion":"8", "BrowserReportedName":"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)", "PageTitle":"BeEF Basic Demo", "HostName":"172.16.155.1", "BrowserPlugins":"Flash Player v10.1, Windows Media Player v11", "OsName":"Windows XP", "HookSessionID":"j2kkvIa3g9nn638QElxQEN1iZAnMRdV5Z7AnAv5NbZvXEJSCtrOhyHPdVspHOD6sbGHgtiOCAJS1Rnsx"}, "handler":"/init", "callback":undefined}]'
/Library/Ruby/Gems/1.8/gems/json-1.4.2/lib/json/common.rb:146:in `parse'
/Library/Ruby/Gems/1.8/gems/json-1.4.2/lib/json/common.rb:146:in `parse'
/Users/Mosse/Projects/beef/./lib/server/dynamichandler.rb:55:in `check_packets'
/Users/Mosse/Projects/beef/./lib/server/dynamichandler.rb:34:in `each'
/Users/Mosse/Projects/beef/./lib/server/dynamichandler.rb:34:in `check_packets'
/Users/Mosse/Projects/beef/./lib/server/dynamichandler.rb:26:in `do_GET'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `__send__'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpservlet/abstract.rb:35:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:23:in `start'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
/Users/Mosse/Projects/beef/./lib/server/httphookserver.rb:98:in `start'
beef.rb:36

What steps will reproduce the problem?
1. Fire beef
2. Open a HB with IE8

I have this bug with both json v1.4.2 and its latest version. I think the problem may come from the javasript code generating the json object.
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=300