Skip to content

Instantly share code, notes, and snippets.

@Phrozyn
Last active August 9, 2016 19:18
Show Gist options
  • Save Phrozyn/7e62e401638b8ad2ceff38fc53cd4b69 to your computer and use it in GitHub Desktop.
Save Phrozyn/7e62e401638b8ad2ceff38fc53cd4b69 to your computer and use it in GitHub Desktop.
Bash wrapper for rdpy - first try, will try nested loops next
#!/bin/bash
rdpHost=(10.0.0.1:3389 10.0.0.2:3389)
for i in ${rdpHost[@]}; do
echo ${i} >> testcredresult.txt
python rdpy/bin/rdpy-rdpclient.py -k en -u <username> -p <password> ${i} >> testcredresult.txt 2>&1
sleep 10
done
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment