forked from adeyosemanputra/pygoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request adeyosemanputra#190 from madhavmehndiratta/master
Create: Command Injection Lab 2
- Loading branch information
Showing
5 changed files
with
94 additions
and
3 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
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 @@ | ||
{% extends "introduction/base.html" %} | ||
{% block content %} | ||
{% block title %} | ||
<title>Command Injection</title> | ||
{% endblock %} | ||
<div class="jumbotron"> | ||
<div class="container"> | ||
<h3 align="center">Evaluate any expression!</h3> | ||
<form method="post" action="/cmd_lab2"> | ||
<input type="text" name="val" placeholder="eg. 7*7"><br><br> | ||
<center><button class="btn btn-info" type="submit">GO</button></center> | ||
</form> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
{% if output %} | ||
<h6><b>Output</b></h6><br> | ||
<b> | ||
<pre>{{output}}</pre> | ||
</b> | ||
{% endif %} | ||
</div> | ||
|
||
|
||
<br> | ||
<div align="right"> <button class="btn btn-info" type="button" onclick="window.location.href='/cmd'">Back to lab | ||
details</button></div> | ||
|
||
</p> | ||
|
||
|
||
{% endblock %} |
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