Skip to content

Commit

Permalink
Decreased sleep_time for requests with API key
Browse files Browse the repository at this point in the history
  • Loading branch information
GamehunterKaan committed Jul 22, 2022
1 parent c6a702a commit 4721be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nist_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def FindVars(vuln: dict) -> tuple:
def searchCVE(keyword: str, log, apiKey=None) -> list[Vulnerability]:
url = "https://services.nvd.nist.gov/rest/json/cves/1.0?"
if apiKey:
sleep_time = 0.6
sleep_time = 0.1
paramaters = {"keyword": keyword, "apiKey": apiKey}
else:
sleep_time = 6
Expand Down

0 comments on commit 4721be4

Please sign in to comment.