jfjallid / go-shareenum

Tool to list smb shares and enumerate their content in a Windows domain
MIT License
4 stars 2 forks source link

Allow empty password from cmdline #2

Closed pfsen closed 1 year ago

pfsen commented 1 year ago

Right now it is possible to authenticate using empty password by simply pressing enter when prompted.

PS C:\> .\go-shareenum -host 10.10.11.175 -user bobby -enum
Enter password:
2023/07/04 21:52:23 [Notice] [-] Signing is required
2023/07/04 21:52:23 [Notice] [+] Login successful

providing the -pass '' param with an empty string does not work however.

pfsen commented 1 year ago

smbclient implements this with the -N / --nopass flag.

jfjallid commented 1 year ago

Fixed in commit 948f327ee299058cc730552b2adc996dd4e59f59