1#!/usr/bin/env bash 2 3set -xv 4 5# Run the fake pop server from bash 6# Idea from http://blog.ale-re.net/2007/09/ipersimple-remote-shell-with-netcat.html 7# Defaults to port 1100 so it can be run by unpriv users and not clash with a real server 8# Optionally, pass in a port number as the first arg 9 10rm -f fifo 11mkfifo fifo 12nc -l ${1:-1100} <fifo |bash ./fakepopserver.sh >fifo 13rm fifo 14 15