Skip to content

Instantly share code, notes, and snippets.

@joanbono
Last active January 7, 2024 11:12
Show Gist options
  • Save joanbono/5ff72891cf37cf2f81f6f3cc346f7df4 to your computer and use it in GitHub Desktop.
Save joanbono/5ff72891cf37cf2f81f6f3cc346f7df4 to your computer and use it in GitHub Desktop.
mac-torrent-download DMG brute-forcer
#!/bin/bash
# Title: Macdown.sh
# Description: Bruteforce DMG files downloaded from mac-torrent-download.net
# Author: Joan Bono (@joan_bono)
# Version: 1.1.0
# Last Modified: jbono @ 20211129
RED='\033[0;31m'
GREEN='\033[0;32m'
NOCOLOR='\033[0m'
BOLD='\033[1m'
DMG=$1
if [ "${DMG}" == "" ]; then
echo "[-] No DMG provided."
exit 0
else
for x in {{a..z},{0..9}}; do
for y in {{a..z},{0..9}}; do
for z in {{a..z},{0..9}}; do
echo -n "mac-torrent-download.net_${x}${y}${z}" | hdiutil attach -stdinpass "${DMG}" > /dev/null 2>&1
if [ "$?" -eq 0 ]; then
echo -ne "${GREEN}${BOLD}[+] Found password:${NOCOLOR} mac-torrent-download.net_${x}${y}${z}\n"
exit 0
fi
echo -ne "${RED}${BOLD}[-] Tested password:${NOCOLOR} mac-torrent-download.net_${x}${y}${z}\n"
done
done
done
fi
@hobb7t
Copy link

hobb7t commented Jan 7, 2024

Thx for the code m8!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment