News for hackers. Stuff that matters.
Re:Court filing: DOGE aide broke Treasury policy by emailing... by hagbard_c on Tuesday March 18, 2025 @09:34AM (#43399274)
Given a desired message size of max_bytes megabytes (in reality the messages will be smaller due to the use of gzip), a database dump command which dumps the database to stdout, a correctly configured mail environment and a destination address of [email protected]:

   $ RCPT="[email protected]" database_dump_command | split -b max_bytes M --filter="gzip -| base64 | mail -s \$FILE \$RCPT"
Next time they might want to replace | base64 | with | gpg -r [email protected] -e -a |' which would turn the unencrypted export into an encrypted version:

   $ RCPT="[email protected]" database_dump_command | split -b max_bytes M --filter="gzip -| gpg -r \$RCPT -e -a | mail -s \$FILE \$RCPT"

There are no comments on this comment yet.