t3l3machus / hoaxshell

A Windows reverse shell payload generator and handler that abuses the http(s) protocol to establish a beacon-like reverse shell.
BSD 2-Clause "Simplified" License
3.03k stars 480 forks source link

UnicodeEncodeError: codec can't encode character #47

Closed maxhunter1990 closed 1 year ago

maxhunter1990 commented 1 year ago

hi, I wanna start the reverse shell get this error :

Traceback (most recent call last): File "hoaxshell.py", line 768, in main() File "hoaxshell.py", line 549, in main chill() if quiet else print_banner() File "hoaxshell.py", line 165, in print_banner print(f" {''.join(final)}") UnicodeEncodeError: 'latin-1' codec can't encode character '\u252c' in position 24: ordinal not in range(256)

its intersting that I run Villain i tha same error : Traceback (most recent call last): File "Villain.py", line 928, in main() File "Villain.py", line 509, in main chill() if args.quiet else print_banner() File "Villain.py", line 93, in print_banner print(f" {''.join(final)}") UnicodeEncodeError: 'latin-1' codec can't encode character '\u252c' in position 25: ordinal not in range(256)

how to fix it?

t3l3machus commented 1 year ago

There's some issue with the default encoding on your system. Looks like it fails to print the banner which has some weird chars. Try with -q