p0dalirius/pyFindUncommonShares

[enhancement] Add an option to check user access

CaledoniaProject opened this issue · 5 comments

Can you also check whether it's readable anonymously or accessible by current user?

Yes, I'll add this check

It will be a good step towards implementing #5

FYI: nmap will show whether the current user has read access, read-write access or no access

Can you implement something simple first? e.g just check if the user has access to the shares is good enough.
This looks quite much like it: https://github.com/fortra/impacket/blob/master/examples/smbclient.py#L98

Just do a login and catch the exception.

Implemented in fcd7508 with option --check-user-access :

Example with a domain user and as domain admin:

image