BugScanTeam / GitHack

.git 泄漏利用工具,可还原历史版本
GNU General Public License v3.0
722 stars 150 forks source link

Bug: No such file or directory .git/index #11

Open TachikakaMin opened 3 years ago

TachikakaMin commented 3 years ago

Traceback (most recent call last): File "GitHack.py", line 40, in main() File "GitHack.py", line 21, in main init() File "GitHack.py", line 35, in init start() File "GitHack/lib/controler.py", line 21, in start if method_a() or method_b() or method_c(): File "GitHack/lib/controler.py", line 56, in method_c clone_from_cache() File "GitHack/lib/git.py", line 116, in clone_from_cache cache_objects() File "GitHack/lib/git.py", line 265, in cache_objects for entry in parse_index(os.path.join(paths.GITHACK_DIST_TARGET_GIT_PATH, "index")): File "GitHack/lib/git.py", line 291, in parse_index with open(filename, "rb") as o: IOError: [Errno 2] No such file or directory: "/.git/index"