PromptBase
Upgrade
Close icon
General
Home
Marketplace
Create
Hire
Login
Chat
Sell
Explore

Prompt Details

Model
(claude-5-sonnet)
Token size
296
Example input
[programming language]: Python [project type]: Web Application Backend [Enter language here]: Python [Place your code here]: import sqlite3 def get_user_data(username): conn = sqlite3.connect('users.db') cursor = conn.cursor() query = f"SELECT * FROM users WHERE username = '{username}'" cursor.execute(query) return cursor.fetchall()
Example output
| Vulnerability Name | Affected Line / Function | Exploitation Scenario | Fully Corrected and Secured Code | | :--- | :--- | :--- | :--- | | **SQL Injection (High)** | `query = f"SELECT * FROM users WHERE username = '{username}'"` | An attacker can inject SQL commands via the username input to bypass authentication and dump table data. | `def get_user_data(username):`<br>` conn = sqlite3.connect('users.db')`<br>` cursor = conn.cursor()`<br>` query = "SELECT * FROM users WHERE username = ?"`<br>` cursor.execute(query, (username,))`<br>` return cursor.fetchall()` |
🌀 Claude

Devguard Vault Cyber Code

Add to Cart
Instant accessInstant access
Usage rightsCommercial use
Money-back guaranteeMoney‑back
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
Tested icon
Guide icon
4 examples icon
Free credits icon
Transform your LLM into an elite Senior Security Auditor, Clean Code Lead, and QA Engineer. DevGuard AI is an advanced prompt kit engineered for developers to detect OWASP vulnerabilities, eliminate spaghetti code adhering to SOLID principles, and auto-generate comprehensive PyTest unit test suites. Fast-track code reviews and ship secure software effortlessly.
...more
Added 7 hours ago
Report
Browse Marketplace