Skip to content

Instantly share code, notes, and snippets.

@pry0cc
Created March 21, 2022 15:49
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 pry0cc/6015a95c407cf888aac23a456c6e2ebb to your computer and use it in GitHub Desktop.
Save pry0cc/6015a95c407cf888aac23a456c6e2ebb to your computer and use it in GitHub Desktop.
#!/bin/bash
protocols=("ssh" "ftp" "telnet" "netbios-ssn" "ms-wbt-server" "vnc")
for protocol in "${protocols[@]}"
do
mkdir -p "proto/$protocol"
users="usernames/generic.txt"
passes="passwords/generic.txt"
if [[ -f "usernames/$protocol.txt" ]]; then
users="usernames/$protocol.txt"
fi
#if [[ "$protocol" == "rdp" || "$protocol" == "smb" ]]; then
# users="usernames/windows.txt"
# passes="passwords/windows.txt"
#fi
./gorgo.py -x "$1" --protocols $protocol -U "$users" -P "$passes" --generate -o "proto/$protocol/combinations.csv"
cat "proto/$protocol/combinations.csv" >> combos.csv
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment