Skip to content

Commit

Permalink
fix: [module] fix SQLInjectionDetection object ID
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Mar 8, 2024
1 parent 38d71e9 commit 40a32fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/modules/SQLInjectionDetection.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ def compute(self, message):
self.faup.decode(url)
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))
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)

# 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')

# statistics
Expand Down

0 comments on commit 40a32fe

Please sign in to comment.