summaryrefslogtreecommitdiff
path: root/websocket_server.go
AgeCommit message (Collapse)Author
2023-05-16all: remove WebSocket serverShulhan
Using WebSocket for communication in client require additional setup, especially if its behind proxy. For example, if we server the trunks server under domain testing.local behind proxy, we need to setup route for the WebSocket too.
2023-05-16all: implement HTTP API to run and cancel attack on HTTP targetShulhan
This endpoints similar that we have in the WebSocket. The idea is to replace the WebSocket endpoints with this one.
2022-08-21all: fix all linter warningsShulhan
Some linter, govet, warns about possible copied Mutex on HttpRequest. To fix this we implement method clone and Stringer on HttpRequest.
2022-03-14all: changes the license of trunks software to GPL 3.0 or laterShulhan
See https://kilabit.info/journal/2022/gpl for more information.
2021-09-29all: implement WebSocket notification when attack finishedShulhan
When the attack finished, the WebSocket server will broadcast the result to all clients as message "/_trunks/api/attack/result".
2021-09-28all: change the environment to set WebSocket port instead of addressShulhan
Setting the websocket listen address on environment require, re-parsing address port on the web side to connect to the server. In order to simplify creating connection on client, we set only the websocket port in the environment.
2021-09-27all: implement WebSocket APIShulhan
The WebSocket API replace the HTTP APIs for running and canceling attack. Later, it will use to notify the result of attack.