@@ -46,7 +46,7 @@ def retrieve_google_dorks(
4646):
4747 """Retrieves all google dorks from https://www.exploit-db.com/google-hacking-database and optionally, writes the
4848 entire json response to a .json file, all the dorks to a file, and/or the individual dork categories to a file. A
49- dictionary is returned containing the total_records , a list of extracteddorks, and a category dictionary.
49+ dictionary is returned containing the total_dorks , a list of extracteddorks, and a category dictionary.
5050 """
5151
5252 url = "https://www.exploit-db.com/google-hacking-database"
@@ -70,7 +70,7 @@ def retrieve_google_dorks(
7070 json_response = response .json ()
7171
7272 # Extract recordsTotal and data.
73- total_records = json_response ["recordsTotal" ]
73+ total_dorks = json_response ["recordsTotal" ]
7474 json_dorks = json_response ["data" ]
7575
7676 # List to track all the dorks.
@@ -139,12 +139,12 @@ def retrieve_google_dorks(
139139 for dork in extracted_dorks :
140140 fh .write (f"{ dork } \n " )
141141
142- print (f"[*] Total Google dorks retrieved: { total_records } " )
142+ print (f"[*] Total Google dorks retrieved: { total_dorks } " )
143143
144144 # Package up a nice dictionary to return.
145145 # fmt: off
146146 ghdb_dict = {
147- "total_records " : total_records ,
147+ "total_dorks " : total_dorks ,
148148 "extracted_dorks" : extracted_dorks ,
149149 "category_dict" : category_dict ,
150150 }
0 commit comments