Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

replaced ".decode('utf8')" with "unicode(x, errors='ignore')" #16

Merged
merged 1 commit into from
Oct 19, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions crackmapexec.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@
SMBSERVER_DIR = 'served_over_smb'
DUMMY_SHARE = 'TMP'

print_error = lambda x: cprint("[-] ", 'red', attrs=['bold'], end=x.decode('utf8')+'\n')
print_status = lambda x: cprint("[*] ", 'blue', attrs=['bold'], end=x.decode('utf8')+'\n')
print_succ = lambda x: cprint("[+] ", 'green', attrs=['bold'], end=x.decode('utf8')+'\n')
print_att = lambda x: cprint(x.decode('utf8'), 'yellow', attrs=['bold'])
yellow = lambda x: colored(x.decode('utf8'), 'yellow', attrs=['bold'])
green = lambda x: colored(x.decode('utf8'), 'green', attrs=['bold'])
red = lambda x: colored(x.decode('utf8'), 'red', attrs=['bold'])
print_error = lambda x: cprint("[-] ", 'red', attrs=['bold'], end=unicode(x, errors='ignore')+'\n')
print_status = lambda x: cprint("[*] ", 'blue', attrs=['bold'], end=unicode(x, errors='ignore')+'\n')
print_succ = lambda x: cprint("[+] ", 'green', attrs=['bold'], end=unicode(x, errors='ignore')+'\n')
print_att = lambda x: cprint(unicode(x, errors='ignore'), 'yellow', attrs=['bold'])
yellow = lambda x: colored(unicode(x, errors='ignore'), 'yellow', attrs=['bold'])
green = lambda x: colored(unicode(x, errors='ignore'), 'green', attrs=['bold'])
red = lambda x: colored(unicode(x, errors='ignore'), 'red', attrs=['bold'])

# Structures
# Taken from http://insecurety.net/?p=768
Expand Down