ShawnDEvans / smbmap

SMBMap is a handy SMB enumeration tool
GNU General Public License v3.0
1.76k stars 343 forks source link

AttributeError: 'bool' object has no attribute 'lower' #101

Open scmanjarrez opened 3 months ago

scmanjarrez commented 3 months ago

Hi, thanks for your amazing tool. I've found this error while running both, smbmap 1.9.2 and 1.10.4:

SMBMap - Samba Share Enumerator v1.10.4 | Shawn Evans - ShawnDEvans@gmail.com<mailto:ShawnDEvans@gmail.com>
                     https://github.com/ShawnDEvans/smbmap

[*] Detected 1 hosts serving SMB                                                                                                  
[*] Established 1 SMB connections(s) and 1 authenticated session(s)                                                      
Falsenumerating shares...                                                                                                    
False
False
Traceback (most recent call last):
  File "/home/kali/htb/tools/smbmap/venv/bin/smbmap", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/kali/htb/tools/smbmap/venv/lib/python3.11/site-packages/smbmap/smbmap.py", line 1552, in main
    elif host_shares[host][share_name]['privs'] != 'NO ACCESS' and share_name.lower() == lsshare.lower():
                                                                                         ^^^^^^^^^^^^^
AttributeError: 'bool' object has no attribute 'lower'

The False prints are just debug prints I put to obtain the value of lsshare and check why it was throwing an error.

ShawnDEvans commented 2 months ago

Thanks! I'll look into it.