obheda12 / GitDorker

A Python program to scrape secrets from GitHub through usage of a large repository of dorks.
2.3k stars 419 forks source link

python multiprocessing pool.map errors #37

Open adamplatski opened 3 years ago

adamplatski commented 3 years ago

I have included pictures of the same errors in powershell and on centOS8.

I've also included one picture of the pool.py errors at line 48 "in mapstar return list(map(*args))" and the GitDorker.py error at line 325 " line 325, in pool.map(api_search, url_dict)".

The other picture is the errors in GitDorker.py at line 140 and 164 " line 140, in token_round_robin current_token = tokens_list[n] IndexError: list index out of range" "line 164, in api_search headers = {"Authorization": "token " + token_round_robin()}"

←[0mTraceback (most recent call last):$$$$$$$$ Dorking In Progress $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ 3/240 File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 325, in pool.map(api_search, url_dict) File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 364, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 771, in get raise self._value File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 125, in worker result = (True, func(*args, *kwds)) File "C:\Users\GuyWhoNotSoSmart\AppData\Local\Programs\Python\Python39\lib\multiprocessing\pool.py", line 48, in mapstar return list(map(args)) File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 164, in api_search headers = {"Authorization": "token " + token_round_robin()} File "C:\Users\GuyWhoNotSoSmart\GitDorker\GitDorker.py", line 140, in token_round_robin current_token = tokens_list[n] IndexError: list index out of range Screenshot (148)_LI Screenshot (149) Screenshot (150)_LI Screenshot (151)_LI

haonanduanmu commented 2 years ago

Hi, have you solved this problem? I meet the same question. QWQ

bakliwalp commented 2 years ago

@haonanduanmu , I guess the issue is that you don't have any active personal access token file. Google how to create Github Personal Access Token file and add it to the tf/tokensfile and you are good to go then.