commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Simple TCPDUMP grepping for common unsafe protocols (HTTP, POP3, SMTP, FTP)
Require lftp and this script to work (adapt path and credentials as needed):
echo $'#!/bin/bash\n# coded by sputnick under GPL 20101007\nlftp -u user,passwd email@example.com -e "$(cat)"' > /PATH/TO/ftp-latest; chmod +x !$
By putting ! in front of a command, we are able to run it from an ftp session.