Skip to content

Commit

Permalink
Update sqli_tester.py
Browse files Browse the repository at this point in the history
Signed-off-by: Aureum01 <[email protected]>
  • Loading branch information
Aureum01 authored May 16, 2023
1 parent bf62510 commit a617dcf
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/sqli_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ def check_sqli_vulnerability(self, url, domain):
)

def is_sqli_successful(self, response):
if "Error" in response.text or "
if "Error" in response.text or "SQL syntax" in response.text:
return True
return False

def process_successful_sqli(self, url, domain):
logger.info(f"Successful SQL injection detected for URL {url} in domain {domain}")
# Add your custom code here to perform actions for successful injection
# For example:
# 1. Retrieve and process the data from the response
# 2. Store the data in a database or file
# 3. Trigger alerts or notifications
# Customize the actions based on your specific requirements and objectives

0 comments on commit a617dcf

Please sign in to comment.