Skip to content

Instantly share code, notes, and snippets.

@albert-tomanek
Created March 26, 2022 12:42
Show Gist options
  • Save albert-tomanek/33d1675bd9123bd71a4c69f76593eddc to your computer and use it in GitHub Desktop.
Save albert-tomanek/33d1675bd9123bd71a4c69f76593eddc to your computer and use it in GitHub Desktop.
#!/bin/sh
tar czvf bomb.tgz .
echo "#!/bin/sh" >> bomb
chmod +x bomb
echo -n "echo " >> bomb
base64 -w 0 bomb.tgz >> bomb
echo " | base64 -d | tar zxf -" >> bomb
rm bomb.tgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment