-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauth_examples.json
More file actions
86 lines (78 loc) · 2.42 KB
/
auth_examples.json
File metadata and controls
86 lines (78 loc) · 2.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"examples": {
"form_based_simple": {
"type": "form",
"login_url": "http://example.com/login.php",
"username": "admin",
"password": "password",
"username_field": "username",
"password_field": "password"
},
"form_based_with_csrf": {
"type": "form",
"login_url": "http://example.com/login.php",
"username": "admin",
"password": "password",
"username_field": "email",
"password_field": "pwd",
"csrf_token_name": "_token"
},
"basic_auth": {
"type": "basic",
"url": "http://example.com/protected",
"username": "admin",
"password": "secret"
},
"cookie_based": {
"type": "cookies",
"cookies": "PHPSESSID=abc123def456;user_token=xyz789;admin_flag=true"
},
"header_based_jwt": {
"type": "headers",
"headers": "Authorization:Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...,X-API-Key:your-api-key"
},
"multi_step_auth": {
"type": "multi_step",
"steps": [
{
"url": "http://example.com/login",
"method": "POST",
"data": {
"username": "admin",
"password": "password"
}
},
{
"url": "http://example.com/verify-2fa",
"method": "POST",
"data": {
"token": "123456"
}
}
]
},
"oauth_simulation": {
"type": "oauth",
"authorization_url": "http://example.com/oauth/authorize",
"token_url": "http://example.com/oauth/token",
"client_id": "your_client_id",
"client_secret": "your_client_secret",
"redirect_uri": "http://localhost:8080/callback"
},
"session_based": {
"type": "session",
"login_url": "http://example.com/login",
"username": "user@example.com",
"password": "userpass",
"session_cookie": "SESSIONID",
"maintain_session": true
}
},
"usage_instructions": {
"command_line": [
"python3 main.py --auth '{\"type\":\"form\",\"login_url\":\"http://localhost:8080/admin.php\",\"username\":\"admin\",\"password\":\"password\"}' --all http://localhost:8080",
"python3 main.py --login-url http://localhost:8080/admin.php --username admin --password password --session --privilege http://localhost:8080",
"python3 main.py --cookies 'PHPSESSID=abc123;admin=true' --xss --csrf http://localhost:8080"
]
}
}