NEED FIX: main分支出问题速度修 #28

Closed
opened 2024-05-31 20:46:46 +08:00 by sangge · 1 comment
Owner

python -m detection ~ ─╯
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/home/sangge/code/BackDoorBuster/detection/main.py", line 408, in
main()
File "/home/sangge/code/BackDoorBuster/detection/main.py", line 404, in main
process_path(args.path, output_format, args.mode, output_file)
File "/home/sangge/code/BackDoorBuster/detection/main.py", line 347, in process_path
file_results = checkModeAndDetect(mode, file_path, file_extension)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sangge/code/BackDoorBuster/detection/main.py", line 331, in checkModeAndDetect
return find_dangerous_functions(read_file_content(filePath), fileExtension)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sangge/code/BackDoorBuster/detection/utils.py", line 8, in read_file_content
return file.read()
^^^^^^^^^^^
File "", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 1180: invalid start byte

python -m detection ~ ─╯ Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/home/sangge/code/BackDoorBuster/detection/__main__.py", line 408, in <module> main() File "/home/sangge/code/BackDoorBuster/detection/__main__.py", line 404, in main process_path(args.path, output_format, args.mode, output_file) File "/home/sangge/code/BackDoorBuster/detection/__main__.py", line 347, in process_path file_results = checkModeAndDetect(mode, file_path, file_extension) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/sangge/code/BackDoorBuster/detection/__main__.py", line 331, in checkModeAndDetect return find_dangerous_functions(read_file_content(filePath), fileExtension) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/sangge/code/BackDoorBuster/detection/utils.py", line 8, in read_file_content return file.read() ^^^^^^^^^^^ File "<frozen codecs>", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb2 in position 1180: invalid start byte
Author
Owner

image
pyc分支里的报错

![image](/attachments/fedbbd54-8704-4e8f-89c6-0765dab65849) pyc分支里的报错
231 KiB
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sangge/BackDoorBuster#28
No description provided.