RedSection / jspanda

client-side prototype pullution vulnerability scanner
46 stars 13 forks source link

Traceback (most recent call last): #1

Open hellofresh01 opened 3 years ago

hellofresh01 commented 3 years ago

I am getting a error on running λ python jspanda.py Traceback (most recent call last): File "C:\Users\Yaseen\Downloads\cmder\jspanda\jspanda.py", line 24, in testsite_array = my_file.readlines() File "C:\Users\Yaseen\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in position 484: character maps to

xsuperbug commented 3 years ago

I tried only for python3.7.x version. When I take a look, it can be solved as follows.

with open('url.txt',encoding="utf8") as my_file:
with open('url.txt',errors="ignore") as my_file: