p0dalirius / pyFindUncommonShares

FindUncommonShares is a Python script allowing to quickly find uncommon shares in vast Windows Domains, and filter by READ or WRITE accesses.
https://podalirius.net/
392 stars 47 forks source link

Add additional logging to know which DNS Names are failing to resolve. #23

Closed sqglsec closed 1 year ago

sqglsec commented 1 year ago

Ran into this issue today where nothing was resolving. While troubleshooting I added the target_name to the --debug output to help. Figured someone else may find it useful as well. Pull request incoming. Trash it if you don't think it's useful. :)

python3 FindUncommonShares.py -u administrator -p 'REDACTED' --dc-ip 192.168.1.20 --debug
FindUncommonShares v3.0 - by @podalirius_

[>] Extracting all computers ...
[+] Found 7 computers in the domain. 

[>] Enumerating shares ...
[!] Could not resolve user.lab.local

[>] Skipping common share 'ADMIN$' on 'ws01.lab.local' (comment: 'Remote Admin') 
[>] Skipping common share 'C$' on 'ws01.lab.local' (comment: 'Default share') 
[>] Skipping common share 'IPC$' on 'ws01.lab.local' (comment: 'Remote IPC') 
[>] Found 'Temp' on 'ws01.lab.local' 
[>] Skipping common share 'ADMIN$' on 'dc01.lab.local' (comment: 'Remote Admin') 
[>] Skipping common share 'C$' on 'dc01.lab.local' (comment: 'Default share') 
[>] Skipping common share 'IPC$' on 'dc01.lab.local' (comment: 'Remote IPC') 
[>] Skipping common share 'NETLOGON' on 'dc01.lab.local' (comment: 'Logon server share ') 
[>] Skipping common share 'SYSVOL' on 'dc01.lab.local' (comment: 'Logon server share ') 
[+] Bye Bye!
p0dalirius commented 1 year ago

Fixed in PR #24