Sending malicious email as a test

Solution 1:

Use the EICAR test virus. http://www.eicar.org/86-0-Intended-use.html

echo 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' | mail 

Edit: Be sure to read Michael Hampton's as well!

Solution 2:

To be sure, you should use the EICAR test virus, and attach it to the email, rather than simply putting it in the body.

echo -n 'X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*' > ducklin.docx
echo "Here is 10 million dollars" | mailx -a ducklin.docx [email protected]