Brendan Coles
4e741a067b
Add bind_cached
2016-05-28 05:44:04 +00:00
antisnatchor
c700bb3013
Added ws_connect_timeout option to delay of 500 ms the establishment of the WS channel. This is needed to wait for browser fingerprinting to finish, in order to have all the info needed for triggering ARE rules using WS channel.
2016-04-03 15:16:14 +02:00
antisnatchor
edb44644fc
Now ARE rules are triggered also when using the WebSocket channel.
2016-04-02 13:05:58 +02:00
antisnatchor
e772e683fd
Issue #1214 . Now command module post_execute is honoured also with WebSockets channel.
2016-03-31 09:56:40 +02:00
antisnatchor
9905756c0a
Additional fix related to #1210 (removing leading/trailing doubel quotes from the command results if channel is WebSocket)
2016-03-31 08:03:06 +02:00
antisnatchor
39a010fa63
Fixes #1210
2016-03-30 12:30:11 +02:00
Brendan Coles
19563d696f
Save command status when using websockets - Fix #1200
2016-01-27 16:50:51 +00:00
Wade Alcorn
ce01d9fa46
updated copyright year
2015-12-30 08:11:57 +10:00
antisnatchor
ea9549adbe
Fixed issue with latest Rack. Now using mime/types to return the right content-type based on file extension when using AssetHandler.bind.
2015-07-05 12:44:00 +02:00
Brendan Coles
e17a48fae2
rescue TypeError, ArgumentError
2015-06-22 09:35:31 +00:00
antisnatchor
518fb5d874
Fixed bug in binding local files.
2015-06-09 12:20:20 +02:00
radoen
4db4354c24
Fixed JSON parsing error to prevent DoS
2015-05-04 09:42:09 +02:00
Wade Alcorn
2fbca61368
Updated copyright dates
2014-12-30 07:44:58 +10:00
Wade Alcorn
8003f1a47f
Updated the copyright year to 2014
2014-01-01 16:34:15 +10:00
bcoles
02e6d4db11
Rescue StandardError rather than Exception
2013-12-30 06:41:07 +10:30
bcoles
0d8521dd7b
Add 'bind_raw' to asset handler
2013-02-23 16:57:47 +10:30
Christian Frichot
2d9b894a3c
Added some further comments to the new AssetHandler redirector. See #664
2013-01-20 17:03:26 +08:00
Christian Frichot
3c4a0fad34
New bind_redirect method added to the AssetHandler. See #664
2013-01-20 16:59:01 +08:00
Wade Alcorn
fe40038441
Updated copyright year to 2013
2012-12-30 12:47:43 +10:00
Wade Alcorn
b68df3d024
Changed license header
2012-11-02 14:05:15 +10:00
antisnatchor
cbbb9e0d67
Added feature to bind_socket in AssetHandler: now it's possible to retrieve the raw data sent to the socket.
2012-10-22 15:24:21 +11:00
antisnatchor
50e7a1c206
Refactored WebSocket code.
2012-08-25 10:18:56 +01:00
radoen
5697eac123
Added support for wss, issue #714
2012-08-10 13:43:48 +02:00
antisnatchor
71fb6ae089
bind_socket: receive buffer length increased to 1024 bytes
2012-07-23 18:25:55 +01:00
antisnatchor
6139da2161
Managing the famous if data == buffer_length case while receiving data in socket (bind_socket)
2012-07-23 11:05:38 +01:00
antisnatchor
6342fdad77
Fixec and enhanced the bind_socket method in AssetHandler. Multi-thread, close socket when no more data is received, print_debug raw request
2012-07-23 10:55:41 +01:00
antisnatchor
be71984362
Patched bind_socket: support multiple clients, don't close the client socket
2012-07-15 17:26:01 +01:00
antisnatchor
6dbf64cfa7
Added bind_socket/unbind_socket to AssetHandler
2012-07-15 12:57:21 +01:00
antisnatchor
51b27709dd
Merge remote-tracking branch 'upstream/master'. WS: added stringifying command results in beef.net.send
2012-05-19 19:19:03 +01:00
antisnatchor
247e0e9a62
Issue 676. Now we use em-websocket for WebSocket server side. Instead of threads we use events with EventMachine. Faster and consumes less memory.
2012-05-11 15:58:59 +01:00
antisnatchor
256ef0f2e8
Fix issue 673 (command module friendly name in WebSocket fork)
2012-05-11 11:12:12 +01:00
antisnatchor
fdad068ee5
Fix issue 674 (NilClass issue)
2012-05-10 13:54:40 +01:00
antisnatchor
2c19a3a8d8
Fixed issue when hooking a browser that contains other cookies than BEEFHOOK. now "alive" send back only the BeEF session value
2012-05-02 14:01:04 +03:00
antisnatchor
9ae0929a8c
Merge remote-tracking branch 'upstream/master'
2012-05-02 13:04:51 +03:00
Graziano Felline
97c2649e36
Corrected issues on IE browser (IE8 IE9) to check IE6 -IE7
...
Corrected Issues whit character encoding
2012-04-20 19:17:34 +02:00
antisnatchor
5a345abfab
Added print_info when unmounting a url (assethandler)
2012-04-20 14:08:08 +01:00
Graziano Felline
c83e7d584e
Now the Alive check is by ws Timer 5 second
...
Tested And work
2012-04-19 19:30:19 +02:00
antisnatchor
b41c6e8559
Catched JSON::ParserError exception when a client abruptly disconnects (i.e.: closing the browser manually, or the hooked tab)
2012-04-18 16:56:43 +01:00
antisnatchor
cecd6cb14a
Slightly changed comments on websocket.rb
2012-04-18 15:19:34 +01:00
antisnatchor
43f82b0c72
Removed not needed line
2012-04-18 14:41:49 +01:00
Graziano Felline
656262c0f4
Basic response recv system implemented
...
todo ping-pong for alive host. thread's content is in websocket.rb
todo setting up a separate handler for via ws answer's
2012-04-18 12:00:17 +02:00
antisnatchor
2198c69aa8
Merge remote-tracking branch 'upstream/master'. Fixed conflicts on config.yaml.
2012-04-14 20:44:17 +01:00
Graziano Felline
2755c6449c
Deleted some stuff that does not work correctly in old browser (IE 8)
...
Better check for FF
Cleand up inside the code
2012-04-14 19:42:53 +02:00
Graziano Felline
65138db207
Commands are now sent through websocket
...
Trouble with eval function in websocket.js
2012-04-13 12:45:48 +02:00
Graziano Felline
23f782b8d8
Hook.js load websocket.js only if specifield in beef configuration file
...
if websocket is disabled all work normally
if websocket is enabled have trouble in command.rb
2012-04-12 19:01:49 +02:00
Graziano Felline
af9b3c97b5
Added polling stop if websocket is up in updater.js
...
added hash for websocket in websocket.rb
added check for websocket existence in command.rb and net.js
added a POC onmessage function in websocket.js
added check for websocket support in init.js
added a POC send to send command output to server in beef.js
2012-04-11 20:52:47 +02:00
antisnatchor
8cac63a2f0
Issue 654: if /dh handler is called without params, return 404
2012-04-09 11:03:02 +01:00
antisnatchor
c60825faae
Issue 654: adjusted DynamicReconstruction handler to extend the Router class
2012-04-09 10:33:23 +01:00
antisnatchor
b08326ebcc
fixed typo in ws.receive
2012-04-07 13:41:58 +01:00
antisnatchor
552beb4ccd
changed allowed origins to ALL
2012-04-07 13:40:18 +01:00