IIS-Raid icon indicating copy to clipboard operation
IIS-Raid copied to clipboard

There is some error when run iis_controller.py

Open ca3tie1 opened this issue 5 years ago • 3 comments

 File ".\iis_controller.py", line 7
SyntaxError: Non-ASCII character '\xe2' in file .\iis_controller.py on line 8, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

so i delete the banner string and there another error when use "cmd net user"

    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xc5 in position 13: invalid continuation byte

I tried changing the file encoding but not sure what to use.

ca3tie1 avatar Feb 24 '20 13:02 ca3tie1

What is the language your OS is using ?

0x09AL avatar Feb 24 '20 13:02 0x09AL

What is the language your OS is using ?

Chinese Simple

i change response = base64.b64decode(encoded_response).decode('utf-8') to response = base64.b64decode(encoded_response) it's work well, but still unuseable the banner string

ca3tie1 avatar Feb 24 '20 14:02 ca3tie1

decode('gb2312')

0x516A avatar Feb 25 '20 06:02 0x516A