forked from picoCTF/picoCTF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshell.html
42 lines (38 loc) · 1.08 KB
/
shell.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
layout: default
title: Shell
post_scripts:
- js/shell.js
startup_functions:
- redirectIfNotLoggedIn()
---
<script type="text/template" id="shell-servers-template">
<% _.each(servers, function(server){ %>
<% var url = server.protocol.toLowerCase() + "://" + server.host + "/shell"; %>
<div class="well">
<h3 class="text-center"><%- server.host %> - <a href="<%- url %>">Full Screen</a> </h3>
<iframe src="<%- url %>" width="100%" height="600px"></iframe>
</div>
<% }); %>
</script>
<script type="text/javascript">
$(window).on('beforeunload', function(){
$("iframe").remove();
return;
});
</script>
<div class="container">
<div class="row">
<div class="well">
<ul class="text-left">
<li>Your login credentials are the same on our website and on the shell server.</li>
<li>Duplicate this tab in a new window to see the challenge problems and the shell side by side.</li>
</ul>
<p class="text-center">
</p>
</div>
</div>
<div class="row">
<div id="shell-servers"></div>
</div>
</div>