gest366/lib/phpmailer/phpmailer_old/test/runfakepopserver.sh
Fabio b7a18f88e4 Caricato nuovo PHPMailer
Aggiunto nuovo PHPMailer 6.7.1

Signed-off-by: Fabio <tomafab5@hotmail.com>
2023-01-27 12:38:01 +01:00

11 lines
359 B
Bash

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