beefproject/beef — Issue #458: zombie lost when requesting raw data like images
Author: passbe
Created: 2011-12-10 23:25:56+00:00
State: open
Labels: GC Imported Issue

What steps will reproduce the problem?
request an image like favicon.ico through the requester

What is the expected output? What do you see instead?
zombie detached from BeEF, the following error in JS console (Webkit/Gecko browsers):
Uncaught Error: INVALID_CHARACTER_ERR: DOM Exception 5
beef.encode.base64.encodehook.js:2784
beef.net.flushhook.js:2533
beef.net.sendhook.js:2526
(anonymous function)basic.html:19
(anonymous function)hook.js:2651
d.extend._Deferred.f.resolveWithhook.js:16
vhook.js:16
d.support.ajax.d.ajaxTransport.send.c

Please use labels and text to provide additional information.
beef.encode.base64.encode and decode are bugged. they don't play well with Unicode strings.
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=354