[enhancement] Add support of custom dns server instead of the DC
Closed this issue · 2 comments
CaledoniaProject commented
Can you an argument to support custom dnsserver instead of dc-ip? Also, please print something when DNS resolve failed. Right now I had to modify the script to make it work.
p0dalirius commented
Good point, I'll add an option and debug info for this :)
p0dalirius commented
Implemented option in 38f05d5:
-ns NAMESERVER, --nameserver NAMESERVER
IP of the DNS server to use, instead of the --dc-ip.
Example usage:
$ ./FindUncommonShares.py -u Administrator -p 'Admin123!' -d LAB.local --dc-ip 192.168.1.71 --show-share C$ --nameserver 192.168.1.21
FindUncommonShares v2.5 - by @podalirius_
[>] Extracting all computers ...
[+] Found 2 computers in the domain.
[>] Enumerating shares ...
[>] Found 'C$' on 'TDC01.DOMAIN.local' (comment: 'Default share')