From 3e2d04bbd33af62847a2e1e571b815ce7509adad Mon Sep 17 00:00:00 2001 From: Terrtia Date: Wed, 20 May 2020 17:26:40 +0200 Subject: [PATCH] fix: [Credential] fix timeout error --- bin/Credential.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/Credential.py b/bin/Credential.py index 49cdb720..cffc4889 100755 --- a/bin/Credential.py +++ b/bin/Credential.py @@ -97,12 +97,12 @@ if __name__ == "__main__": item_content = Item.get_item_content(item_id) # Extract all credentials - all_credentials = regex_helper.regex_findall(module_name, redis_cache_key, regex_cred, item_content, max_time=max_execution_time) + all_credentials = regex_helper.regex_findall(module_name, redis_cache_key, regex_cred, item_id, item_content, max_time=max_execution_time) if not all_credentials: continue - all_sites = regex_helper.regex_findall(module_name, redis_cache_key, regex_web, item_content, max_time=max_execution_time) + all_sites = regex_helper.regex_findall(module_name, redis_cache_key, regex_web, item_id, item_content, max_time=max_execution_time) message = 'Checked {} credentials found.'.format(len(all_credentials)) if all_sites: @@ -122,7 +122,7 @@ if __name__ == "__main__": msg = 'infoleak:automatic-detection="credential";{}'.format(item_id) p.populate_set_out(msg, 'Tags') - site_occurence = regex_helper.regex_findall(module_name, redis_cache_key, regex_site_for_stats, item_content, max_time=max_execution_time, r_set=False) + site_occurence = regex_helper.regex_findall(module_name, redis_cache_key, regex_site_for_stats, item_id, item_content, max_time=max_execution_time, r_set=False) creds_sites = {}