5alt / GitLeak

GitLeak 是一个从 Github 上查找密码信息的小工具
MIT License
133 stars 33 forks source link

repo_list can be empty #4

Closed joy32812 closed 6 years ago

joy32812 commented 6 years ago

`for i in xrange(len(total_project_list)/MAX_REPO_SINGLE_SEARCH+1): repo_list = total_project_list[iMAX_REPO_SINGLE_SEARCH:iMAX_REPO_SINGLE_SEARCH+MAX_REPO_SINGLE_SEARCH]

Join projects to together to search

        if len(repo_list) == 0: break

        repo_string = " repo:" + " repo:".join(repo_list)
        result.update(_gitprey.sensitive_info_query(repo_string))

`

for example len(total_project_list) = 20 MAX_REPO_SINGLE_SEARCH = 5 then at the end of the loop, repo_list = total_project_list[20,25] which is empty

so you can get unrelated result during the next search