inspired by tmpout.sh and malicious.dev