Advertisement
metalx1000

Netcat - Basic proxy and monitoring

Jan 18th, 2015
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. #####Basic Proxy######
  2. mkfifo fifo
  3. nc -l -p 8080 <fifo | nc 192.168.24.1 80 >fifo
  4.  
  5.  
  6. #####proxy monitoring#######
  7. mkfifo fifo
  8. echo "Waiting for new event"
  9. nc -l -p 8080 < fifo | tee -a proxy.txt /dev/stderr | nc 192.168.24.1 80 > fifo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement