Skip to content

Commit

Permalink
edit template
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Oct 28, 2017
1 parent 94e3b40 commit 2e94e52
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 37 deletions.
2 changes: 1 addition & 1 deletion templates/template.footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<footer class="footer">
<div class="container">
<span><i class="fa fa-copyright"></i>Nemosecurity.com</span>
<span><i class="fa fa-copyright"></i>Nemosecurity</span>
</div>
</footer>
</div>
Expand Down
2 changes: 1 addition & 1 deletion templates/template.sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</li>
<ul class="sub-menu collapse" id="xss">
<li><a href="{{.weburl}}xss1">XSS 1</a></li>
<li><a href="#">XSS 2</a></li>
<li><a href="{{.weburl}}xss2?uid={{.uid}}">XSS 2</a></li>
</ul>

<li data-toggle="collapse" data-target="#idor" class="collapsed">
Expand Down
50 changes: 50 additions & 0 deletions templates/template.xss2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{{define "template.xss2"}} {{template "template.header" .}} {{template "template.sidebar" .}}
<!-- Modal -->
<div id="profile" class="modal fade" role="dialog">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">My Profile:</h4>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>

</div>
</div>
<div class="col-md-9">
<div class="panel panel-primary">
<div class="panel-heading">Cross Site Scripting Vulnerability</div>
<div class="panel-body">
<div class="pnl">
<!-- <span class="subheader">SQL Injection Vulnerability</span> -->
<p>All about javascript</p>
<p>Click button to view you profile:</p>
<div class="well">
<button class="btn btn-small btn-primary" id="view">View</button>
</div>
</div>
</div>
</div>
</div>
{{.inlineJS}}
<script>
$(document).ready(function(){
$("#view").on('click', function(){
$("#profile").modal("show")
$('#profile').find('.modal-body').append('\
<p>name '+name+'</p>\
<p>City '+city+'</p>\
<p>Number'+number+'</p>\
');
})
$("#profile").on('hidden.bs.modal', function(){
$('#profile').find('.modal-body').html("")
})
})
</script>
{{template "template.footer"}} {{ end }}
35 changes: 0 additions & 35 deletions templates/validation.html

This file was deleted.

0 comments on commit 2e94e52

Please sign in to comment.