Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #install client and server
- sudo apt install node-wscat websocketd
- #server
- #websocketd is a websocket server that sends the output of a command to the client when they connect
- websocketd --port=4444 bash -c ls
- websocketd --port=4444 bash -c "while [ 1 ];do date;sleep 1;done"
- #client
- wscat -c "ws://localhost:4444"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement