ShawnDEvans / smbmap

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

Option to disable termcolor in output #62

Open relector-tuxnix opened 4 years ago

relector-tuxnix commented 4 years ago

If i run smbmap from a python3 script by calling subprocess.Popen i get terminal colors in the output.

Eg, \033[1;37m

Is it possible to have add a flag to disable termcolor so output does not have to be cleaned.

ShawnDEvans commented 4 years ago

What kind of issues are the colors causing?

relector-tuxnix commented 4 years ago

STDOUT contains bash colour codes. For example:

share_tree[share_name]['privs'] = colored('NO ACCESS', 'red') ===> \e[31mNO ACCESS\e[0m

What i would like to see is an option to ensure no bash colour codes are in STDOUT. For example:

share_tree[share_name]['privs'] = 'NO ACCESS' ===> NO ACCESS

sandervandegeijn commented 2 years ago

I saw this in the option list, seems to be implemented? :)