Roundtrip for challenge 2 done
This commit is contained in:
parent
599f36fdb8
commit
05bb61ad57
@ -22,8 +22,8 @@ public class Challenge2 extends AssignmentEndpoint {
|
|||||||
@RequestMapping(method = RequestMethod.POST)
|
@RequestMapping(method = RequestMethod.POST)
|
||||||
public
|
public
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
AttackResult completed(@RequestParam String couponCode) throws IOException {
|
AttackResult completed(@RequestParam String checkoutCode) throws IOException {
|
||||||
if (SUPER_COUPON_CODE.equals(couponCode)) {
|
if (SUPER_COUPON_CODE.equals(checkoutCode)) {
|
||||||
return success().feedback("challenge.solved").feedbackArgs(Flag.FLAGS.get(2)).build();
|
return success().feedback("challenge.solved").feedbackArgs(Flag.FLAGS.get(2)).build();
|
||||||
}
|
}
|
||||||
return failed().build();
|
return failed().build();
|
||||||
|
@ -61,7 +61,12 @@
|
|||||||
<script th:src="@{/lesson_js/challenge2.js}" language="JavaScript"></script>
|
<script th:src="@{/lesson_js/challenge2.js}" language="JavaScript"></script>
|
||||||
<div class="attack-container">
|
<div class="attack-container">
|
||||||
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
|
<div class="assignment-success"><i class="fa fa-2 fa-check hidden" aria-hidden="true"></i></div>
|
||||||
|
<form class="attack-form" accept-charset="UNKNOWN"
|
||||||
|
method="POST" name="form"
|
||||||
|
action="/WebGoat/challenge/2"
|
||||||
|
enctype="application/json;charset=UTF-8">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-3 item-photo">
|
<div class="col-xs-3 item-photo">
|
||||||
<img style="max-width:100%;" th:src="@{/images/samsung-black.jpg}"/>
|
<img style="max-width:100%;" th:src="@{/images/samsung-black.jpg}"/>
|
||||||
@ -114,21 +119,24 @@
|
|||||||
<!--
|
<!--
|
||||||
Checkout code: pre-order-webgoat, pre-order-owasp, pre-order-webgoat-owasp
|
Checkout code: pre-order-webgoat, pre-order-owasp, pre-order-webgoat-owasp
|
||||||
-->
|
-->
|
||||||
<input class="checkoutCode" value=""/>
|
<input name="checkoutCode" class="checkoutCode" value=""/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section" style="padding-bottom:20px;">
|
<div class="section" style="padding-bottom:20px;">
|
||||||
<button class="btn btn-success"><span style="margin-right:20px"
|
<button type="submit" class="btn btn-success"><span style="margin-right:20px"
|
||||||
class="glyphicon glyphicon-shopping-cart"
|
class="glyphicon glyphicon-shopping-cart"
|
||||||
aria-hidden="true"></span>Buy
|
aria-hidden="true"></span>Buy
|
||||||
</button>
|
</button>
|
||||||
<h6><a href="#"><span class="glyphicon glyphicon-heart-empty" style="cursor:pointer;"></span>
|
<h6><a href="#"><span class="glyphicon glyphicon-heart-empty"
|
||||||
|
style="cursor:pointer;"></span>
|
||||||
Like</a></h6>
|
Like</a></h6>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
<div>
|
<div>
|
||||||
<form class="form-inline" method="POST" name="form" action="/WebGoat/challenge/flag">
|
<form class="form-inline" method="POST" name="form" action="/WebGoat/challenge/flag">
|
||||||
|
@ -1 +1 @@
|
|||||||
=== No need to pay... (WIP!!)
|
=== No need to pay...
|
Loading…
x
Reference in New Issue
Block a user