Buckets:

download
raw
643 Bytes
# Simple test file for auto-fix demonstration
# This file will be automatically fixed
import os
# Test 1: SQL Injection with % formatting
def get_user_data(user_id):
query = "SELECT * FROM users WHERE id = ?"
query_params = (user_id,)
return query
# Test 2: Command Injection with os.system
def ping_server(host):
os.system("ping -c 1 " + host)
return "Done"
# Test 3: Multiple SQL injections
def search_data(term):
query = "SELECT * FROM products WHERE name = '%s'" % term
return query
def update_user(user_id, name):
query = "UPDATE users SET name = '%s' WHERE id = %s" % (name, user_id)
return query

Xet Storage Details

Size:
643 Bytes
·
Xet hash:
d0cc4a52d0ab5666813d833db3aa1b0ce465edfeeda11055554068b9cfbef359

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.