Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Merging WebSocket fork, disabled by default. #681

Merged
merged 41 commits into from

2 participants

@antisnatchor
Collaborator

The WebSocket channel is disabled by default.
Now also extension code works.

There is still work to do, but I prefer having the code in the main repo because it's already stable enough to be used (even if it's disabled by default, until it will be thoroughly tested).

There are various todos in the code that I will implement soon.

radoen and others added some commits
@radoen radoen Setting up structures and server/client environment.
A lot of TODO
736c815
@radoen radoen Inserted module in bootstrap d3e2e1e
@radoen radoen Inserted module in bootstrap 15ca777
@antisnatchor antisnatchor Fixed issue with lib loading and WebSocket server initalization 236c8a8
@antisnatchor antisnatchor Added WebSocket config options for enable, secure and port 64cee24
@antisnatchor antisnatchor Printing nice print_into about the websocket a5504a5
@radoen radoen Thread for websocket e1134e2
@antisnatchor antisnatchor Merge branch 'master' of https://github.com/radoen/beef-radoen
Conflicts:
	core/main/network_stack/websocket/websocket.rb
fe588cd
@radoen radoen Added websocket.js in beefjs.rb bcd0ff1
@radoen radoen Merge remote-tracking branch 'origin/master'
Conflicts:
	core/main/network_stack/websocket/websocket.rb
ce89192
@antisnatchor antisnatchor Changed default websocket port faae01a
@antisnatchor antisnatchor changed allowed origins to ALL 552beb4
@antisnatchor antisnatchor fixed typo in ws.receive b08326e
@antisnatchor antisnatchor fixed issue with FF detectionon websockets 296d016
@antisnatchor antisnatchor changed websocket.js structure with closures. 8f7caff
@radoen radoen The connection and helo to server correctly work. 85b3a59
@radoen radoen Added FF11 support 302512e
@radoen radoen 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
af9b3c9
@radoen radoen 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
23f782b
@radoen radoen Commands are now sent through websocket
Trouble with eval function in websocket.js
65138db
@antisnatchor antisnatchor Fixed issue with command execution. Now commands are executed correct…
…ly via WebSocket.
185b1be
@radoen radoen Deleted some stuff that does not work correctly in old browser (IE 8)
Better check for FF
Cleand up inside the code
2755c64
@antisnatchor antisnatchor Merge remote-tracking branch 'upstream/master'. Fixed conflicts on co…
…nfig.yaml.
2198c69
@radoen radoen 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
656262c
@antisnatchor antisnatchor Removed not needed line 43f82b0
@antisnatchor antisnatchor Slightly changed comments on websocket.rb cecd6cb
@antisnatchor antisnatchor Merge remote-tracking branch 'upstream/master'
Conflicts:
	config.yaml
6f73dd6
@antisnatchor antisnatchor Catched JSON::ParserError exception when a client abruptly disconnect…
…s (i.e.: closing the browser manually, or the hooked tab)
b41c6e8
@radoen radoen Now the Alive check is by ws Timer 5 second
Tested And work
c83e7d5
@radoen radoen Corrected issues on IE browser (IE8 IE9) to check IE6 -IE7
Corrected Issues whit character encoding
97c2649
@antisnatchor antisnatchor Merge remote-tracking branch 'upstream/master' 9ae0929
@antisnatchor antisnatchor Fixed issue when hooking a browser that contains other cookies than B…
…EEFHOOK. now "alive" send back only the BeEF session value
2c19a3a
@antisnatchor antisnatchor merged changes of net.js to fix the requester/tunneling proxy 72ba526
@antisnatchor antisnatchor Merge remote-tracking branch 'upstream/master'
Resolved conflicts:
	core/main/client/net.js
	core/main/handlers/modules/beefjs.rb
925e744
@antisnatchor antisnatchor Fix issue 674 (NilClass issue) fdad068
@antisnatchor antisnatchor Fix issue 673 (command module friendly name in WebSocket fork) 256ef0f
@antisnatchor antisnatchor Fix issue 675 (added erubis parsing for Websocket config options) 96a16fa
@antisnatchor antisnatchor Fixed another bug when parsing the BeEF hook cookie in Js. now using …
…beef.session.get_hook_session_id(). Should be the last fix.
052d25a
@antisnatchor antisnatchor Issue 676. Now we use em-websocket for WebSocket server side. Instead…
… of threads we use events with EventMachine. Faster and consumes less memory.
247e0e9
@antisnatchor antisnatchor Merge remote-tracking branch 'upstream/master'. WS: added stringifyin…
…g command results in beef.net.send
51b2770
@antisnatchor antisnatchor Temporarily disabled DebugModules tests. b49548d
@antisnatchor antisnatchor merged commit 86b3103 into beefproject:master
@antisnatchor antisnatchor was assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 6, 2012
  1. @radoen
Commits on Apr 7, 2012
  1. @radoen

    Inserted module in bootstrap

    radoen authored
  2. @radoen

    Inserted module in bootstrap

    radoen authored
  3. @antisnatchor
  4. @antisnatchor
  5. @antisnatchor
  6. @radoen

    Thread for websocket

    radoen authored
  7. @antisnatchor

    Merge branch 'master' of https://github.com/radoen/beef-radoen

    antisnatchor authored
    Conflicts:
    	core/main/network_stack/websocket/websocket.rb
  8. @radoen
  9. @radoen

    Merge remote-tracking branch 'origin/master'

    radoen authored
    Conflicts:
    	core/main/network_stack/websocket/websocket.rb
  10. @antisnatchor
  11. @antisnatchor
  12. @antisnatchor

    fixed typo in ws.receive

    antisnatchor authored
  13. @antisnatchor
  14. @antisnatchor
Commits on Apr 8, 2012
  1. @radoen
  2. @radoen

    Added FF11 support

    radoen authored
Commits on Apr 11, 2012
  1. @radoen

    Added polling stop if websocket is up in updater.js

    radoen authored
    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
Commits on Apr 12, 2012
  1. @radoen

    Hook.js load websocket.js only if specifield in beef configuration file

    radoen authored
     if websocket is disabled all work normally
     if websocket is enabled have trouble in command.rb
Commits on Apr 13, 2012
  1. @radoen

    Commands are now sent through websocket

    radoen authored
    Trouble with eval function in websocket.js
  2. @antisnatchor
Commits on Apr 14, 2012
  1. @radoen

    Deleted some stuff that does not work correctly in old browser (IE 8)

    radoen authored
    Better check for FF
    Cleand up inside the code
  2. @antisnatchor
Commits on Apr 18, 2012
  1. @radoen

    Basic response recv system implemented

    radoen authored
    todo ping-pong for alive host. thread's content is  in websocket.rb
    todo setting up a separate handler for via ws answer's
  2. @antisnatchor

    Removed not needed line

    antisnatchor authored
  3. @antisnatchor
  4. @antisnatchor

    Merge remote-tracking branch 'upstream/master'

    antisnatchor authored
    Conflicts:
    	config.yaml
  5. @antisnatchor

    Catched JSON::ParserError exception when a client abruptly disconnect…

    antisnatchor authored
    …s (i.e.: closing the browser manually, or the hooked tab)
Commits on Apr 19, 2012
  1. @radoen

    Now the Alive check is by ws Timer 5 second

    radoen authored
    Tested And work
Commits on Apr 20, 2012
  1. @radoen

    Corrected issues on IE browser (IE8 IE9) to check IE6 -IE7

    radoen authored
    Corrected Issues whit character encoding
Commits on May 2, 2012
  1. @antisnatchor
  2. @antisnatchor

    Fixed issue when hooking a browser that contains other cookies than B…

    antisnatchor authored
    …EEFHOOK. now "alive" send back only the BeEF session value
  3. @antisnatchor
Commits on May 10, 2012
  1. @antisnatchor

    Merge remote-tracking branch 'upstream/master'

    antisnatchor authored
    Resolved conflicts:
    	core/main/client/net.js
    	core/main/handlers/modules/beefjs.rb
  2. @antisnatchor
Commits on May 11, 2012
  1. @antisnatchor
  2. @antisnatchor
  3. @antisnatchor

    Fixed another bug when parsing the BeEF hook cookie in Js. now using …

    antisnatchor authored
    …beef.session.get_hook_session_id(). Should be the last fix.
  4. @antisnatchor

    Issue 676. Now we use em-websocket for WebSocket server side. Instead…

    antisnatchor authored
    … of threads we use events with EventMachine. Faster and consumes less memory.
Commits on May 19, 2012
  1. @antisnatchor

    Merge remote-tracking branch 'upstream/master'. WS: added stringifyin…

    antisnatchor authored
    …g command results in beef.net.send
  2. @antisnatchor
Something went wrong with that request. Please try again.