This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dd9175
commit 489eb69
Showing
5 changed files
with
321 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,32 @@ | ||
<form role="form"> | ||
<div class="form-group"> | ||
<label for="vul_id">Vul type</label> | ||
<select name="scan_type" class="form-control"> | ||
<option value="1"> | ||
SQL Injection | ||
</option> | ||
<option value="2"> | ||
XSS | ||
</option> | ||
<option value="3"> | ||
Code execute | ||
</option> | ||
<select id="vul_type" class="form-control"> | ||
{% for vul in data.vul_type %} | ||
<option value="{{ vul.id }}"> | ||
{{ vul.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="language">Password</label> | ||
<input type="password" class="form-control" id="exampleInputPassword1" /> | ||
<label for="language">Language</label> | ||
<select id="language" class="form-control"> | ||
{% for lang in data.languages %} | ||
<option value="{{ lang.id }}"> | ||
{{ lang.language }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="regex">Password</label> | ||
<input type="password" class="form-control" id="exampleInputPassword1" /> | ||
<label for="regex">Regex in perl mode</label> | ||
<input type="text" class="form-control" id="regex" /> | ||
</div> | ||
<div class="form-group"> | ||
<label for="description">Password</label> | ||
<input type="password" class="form-control" id="exampleInputPassword1" /> | ||
<label for="description">Description</label> | ||
<input type="text" class="form-control" id="description" /> | ||
</div> | ||
<button type="submit" class="btn btn-default">Submit</button> | ||
<div id="add-new-rule-result" hidden></div> | ||
<button type="button" class="btn btn-success" id="add-new-rule-button">Add</button> | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<form role="form"> | ||
<div class="form-group"> | ||
<label for="vul_id">Vul type</label> | ||
<select id="vul_type" class="form-control"> | ||
{% for vul in data.all_vuls %} | ||
<option value="{{ vul.id }}" {% if vul.id == data.vul_type %}selected="selected"{% endif %}> | ||
{{ vul.name }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="language">Language</label> | ||
<select id="language" class="form-control"> | ||
{% for lang in data.all_lang %} | ||
<option value="{{ lang.id }}" {% if lang.id == data.language %}selected="selected"{% endif %}> | ||
{{ lang.language }} | ||
</option> | ||
{% endfor %} | ||
</select> | ||
</div> | ||
<div class="form-group"> | ||
<label for="regex">Regex in perl mode</label> | ||
<input type="text" class="form-control" id="regex" value="{{ data.regex }}"/> | ||
</div> | ||
<div class="form-group"> | ||
<label for="description">Description</label> | ||
<input type="text" class="form-control" id="description" value="{{ data.description }}" /> | ||
</div> | ||
<div id="edit-rule-result" hidden></div> | ||
<button type="button" class="btn btn-success" id="edit-rule-button">Save</button> | ||
</form> |
Oops, something went wrong.