mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-30 01:37:17 +00:00
fix: [module] fix SQLInjectionDetection object ID
This commit is contained in:
parent
38d71e97dd
commit
40a32fec75
1 changed files with 3 additions and 3 deletions
|
@ -51,13 +51,13 @@ class SQLInjectionDetection(AbstractModule):
|
||||||
self.faup.decode(url)
|
self.faup.decode(url)
|
||||||
url_parsed = self.faup.get()
|
url_parsed = self.faup.get()
|
||||||
|
|
||||||
print(f"Detected SQL in URL: {item_id}")
|
print(f"Detected SQL in URL: {item.id}")
|
||||||
print(urllib.request.unquote(url))
|
print(urllib.request.unquote(url))
|
||||||
to_print = f'SQLInjection;{item.get_source()};{item.get_date()};{item.get_basename()};Detected SQL in URL;{item_id}'
|
to_print = f'SQLInjection;{item.get_source()};{item.get_date()};{item.get_basename()};Detected SQL in URL;{item.id}'
|
||||||
self.redis_logger.warning(to_print)
|
self.redis_logger.warning(to_print)
|
||||||
|
|
||||||
# Tag
|
# Tag
|
||||||
tag = f'infoleak:automatic-detection="sql-injection";{item_id}'
|
tag = f'infoleak:automatic-detection="sql-injection"'
|
||||||
self.add_message_to_queue(message=tag, queue='Tags')
|
self.add_message_to_queue(message=tag, queue='Tags')
|
||||||
|
|
||||||
# statistics
|
# statistics
|
||||||
|
|
Loading…
Reference in a new issue