Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Created June 19, 2018 12:01
Show Gist options
  • Save kaspergrubbe/ee7eaab700c3bc405c6f82cfe96234d9 to your computer and use it in GitHub Desktop.
Save kaspergrubbe/ee7eaab700c3bc405c6f82cfe96234d9 to your computer and use it in GitHub Desktop.
#!/bin/bash
while true; do
FILENAME=$(date +%s)
openssl rand -out $(echo $FILENAME).bin -base64 $(( 2**30 * 3/4 ))
curl -T $(echo $FILENAME).bin ftp://ftp.example.com --user user:password
rm $(echo $FILENAME).bin
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment