Skip to content

Instantly share code, notes, and snippets.

@andersonbosa
Last active April 8, 2022 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andersonbosa/29616c16e87159b6aad5e354fedcf2c0 to your computer and use it in GitHub Desktop.
Save andersonbosa/29616c16e87159b6aad5e354fedcf2c0 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# -*- coding: utf-8 -*-
TOOL_DIR=$HOME/tools
PASTEBIN_GIST=https://gist.githubusercontent.com/andersonbosa/919236ea9a90cf28e61efe38a0abf9f6/raw
EXFILTRATOR_GIST=https://gist.githubusercontent.com/andersonbosa/7463de5ad9893d685a27e5a309978088/raw
echo "[INF] creating tools directories $TOOL_DIR ..."
mkdir -p $TOOL_DIR
echo "[INF] checking dependencies ..."
sudo apt install curl gpg
curl -s $PASTEBIN_GIST >$TOOL_DIR/pastebin.sh
echo "[INF] Downloading exfiltrator ..."
curl -s $EXFILTRATOR_GIST >$TOOL_DIR/pastebin-exfiltrator.sh
echo "[INF] Adding exfiltrator to .zshrc ..."
cat <<EOF >>~/.zshrc
source "$TOOL_DIR/pastebin.sh"
source "$TOOL_DIR/pastebin-exfiltrator.sh"
EOF
source ~/.zshrc
echo "[DONE] Exfiltrator installed ✅"
exfiltrator -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment