netcat
Persistent Netcat Server
#!/bin/bash
while true; do
echo "Starting netcat server on port 9999..."
nc -l 9999 -v
echo "Client disconnected. Restarting server..."
sleep 1
doneLog Server
nc -l -v -p 9999 > a.log
Sender Server (When First connect)
nc -l -v -p 9999 < a.log
Default Server
nc -l -v -p 9999
Client
nc localhost 9999 -v
$ nc -c localhost 30......
#netcat (2)