mirror of
https://github.com/yaklang/yaklang-chrome-extension.git
synced 2026-09-26 21:21:53 +08:00
feat(wsc) fuzzer demo
This commit is contained in:
@@ -13,7 +13,10 @@ chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||
console.info("Start to connect websocket")
|
||||
const host = msg['host'] || "127.0.0.1"
|
||||
const port = msg['port'] || 11212
|
||||
websocketManager.connectWebsocket(`ws://${host}:${port}/?token=${"a"}`, port)
|
||||
websocketManager.connectWebsocket(`ws://${host}:${port}/?token=chrome`, port)
|
||||
break;
|
||||
case ActionType.SEND_MESSAGE:
|
||||
websocketManager.sendMessage(msg.message);
|
||||
break;
|
||||
case ActionType.DISCONNECT:
|
||||
websocketManager.disconnectWebsocket();
|
||||
@@ -27,7 +30,9 @@ chrome.runtime.onMessage.addListener(function (msg, sender, sendResponse) {
|
||||
scheme: msg.scheme,
|
||||
host: msg.host,
|
||||
port: parseInt(`${msg.port}`)
|
||||
}
|
||||
},
|
||||
// enable 127.0.0.1 && localhost to mitmproxy
|
||||
bypassList: ["<-loopback>"]
|
||||
}
|
||||
},
|
||||
scope: 'regular',
|
||||
|
||||
Reference in New Issue
Block a user