Last active
October 7, 2021 09:33
-
-
Save xsellier/838366d840980039008533769202ddb3 to your computer and use it in GitHub Desktop.
Scan Twitch leak
This file contains hidden or 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
for file in $(ls -1 *.zip) | |
do | |
echo "Scanning ${file}" | |
for filtered_file in $(zipinfo -1 "${file}" | grep "\(\.csv\|\.sql\)$" | sed -e 's/\ /@/g') | |
do | |
if [ -n "${filtered_file}" ] | |
then | |
original_filename=$(echo ${filtered_file} | sed -e 's/@/\ /g') | |
zipgrep -i "TWITCH_USERNAME" "${file}" "${original_filename}" | |
zipgrep -i "TWITCH_USER_ID" "${file}" "${original_filename}" | |
fi | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment