forked from p15670423/monkey
214 lines
10 KiB
HTML
214 lines
10 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Monkeys Admin</title>
|
|
<meta charset="UTF-8">
|
|
|
|
<!-- js -->
|
|
<script type="text/javascript" src="./js/vis.min.js"></script>
|
|
<script type="text/javascript" src="./js/jquery-1.11.2.min.js"></script>
|
|
<script type="text/javascript" src="./js/typeahead.bundle.min.js"></script>
|
|
|
|
<script type="text/javascript" src="./js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="./js/bootstrap-switch.min.js"></script>
|
|
<script type="text/javascript" src="./js/bootstrap-dialog.min.js"></script>
|
|
<script type="text/javascript" src="./js/sb-admin-2/sb-admin-2.js"></script>
|
|
<script type="text/javascript" src="./js/sb-admin-2/metisMenu.js"></script>
|
|
<script type="text/javascript" src="./js/jsoneditor.js"></script>
|
|
<script type="text/javascript" src="./js/monkeys-admin.js"></script>
|
|
|
|
<script type="text/javascript" src="./js/jquery.dataTables.min.js"></script>
|
|
|
|
<!-- css -->
|
|
<link type="text/css" href="./css/vis.min.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/monkeys-admin.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/typeahead.css" rel="stylesheet"/>
|
|
<!-- <link type="text/css" href="./css/font-awesome.min.css" rel="stylesheet"/> -->
|
|
<link type="text/css" href="./css/bootstrap.min.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/bootstrap-switch.min.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/bootstrap-dialog.min.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/sb-admin-2/sb-admin-2.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/sb-admin-2/metisMenu.css" rel="stylesheet"/>
|
|
<link type="text/css" href="./css/jquery.dataTables.min.css" rel="stylesheet"/>
|
|
|
|
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
|
|
|
</head>
|
|
|
|
<body onload="initAdmin();" onresize="network.redraw();" onkeypress="onKeyPress(event);">
|
|
|
|
<div id="wrapper" class="row col-lg-12">
|
|
|
|
<!-- Space added so the other sections aren't sticked to the top of the page -->
|
|
<div class="row col-lg-12">
|
|
<div class="clearfix"></br></div>
|
|
</div>
|
|
<!-- /. -->
|
|
|
|
<!-- Network section -->
|
|
<div class="col-lg-9 col-md-12 col-sm-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#monkeysmap" data-toggle="collapse">Map</a>
|
|
<p id="generationDate" class="pull-right text-muted"></p>
|
|
</div>
|
|
<div id="monkeysmap" class="panel-body panel-collapse collapse in">
|
|
<!-- The network is drawn here -->
|
|
</div>
|
|
</div>
|
|
<!-- Telemetries section -->
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#telemetries" data-toggle="collapse">Telemetries</a>
|
|
</div>
|
|
<div id="telemetries" class="panel-body panel-collapse collapse in">
|
|
<table class="table table-bordered table-hover" id="telemetris-table">
|
|
<thead>
|
|
<tr><th>Time</th><th>Type</th><th>Data</th></tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!-- /.Telemetries section -->
|
|
</div>
|
|
<!-- /.Network section -->
|
|
|
|
<!-- Info section -->
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#info" data-toggle="collapse">General Info</a>
|
|
</div>
|
|
<div id="info" class="panel-body panel-collapse collapse in">
|
|
<div>
|
|
Num of Monkeys: <label id="infoNumOfMonkeys">0</label> (<label id="infoNumOfParents">0</label> exploiting were done)<br/>
|
|
Monkyes Alive: <label id="infoNumOfAlive">0</label><br/>
|
|
Num of Hosts Not Exploited: <label id="infoNumOfHosts">0</label><br/>
|
|
Num of Tunnels Used: <label id="infoNumOfTunnels">0</label><br/>
|
|
</div>
|
|
<div>
|
|
Display Scanned Hosts: <input type="checkbox" data-size="mini" name="chboxShowScanned" checked>
|
|
</div>
|
|
<br />
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#legend" data-toggle="collapse">Map Legend</a>
|
|
</div>
|
|
<div id="legend" style="overflow: visible" class="panel-body panel-collapse collapse" aria-expanded="true">
|
|
<ul>
|
|
<li><label style="color: red">red arrow</label> - exploit</li>
|
|
<li><label style="color: blue">blue arrow</label> - tunnel</li>
|
|
<li><label style="color: gray">gray arrow</label> - scan</li>
|
|
<li><label style="color: red">red label</label> - patient zero</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- /.Info section -->
|
|
|
|
<!-- Details section -->
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#details" data-toggle="collapse">Monkey Details</a>
|
|
</div>
|
|
<div id="details" class="panel-body panel-collapse collapse in">
|
|
<div id="search" class="input-group custom-search-form">
|
|
<input id="monkeySearch" class="form-control typeahead" type="text"
|
|
placeholder="Find a monkey..." onchange="selectNode(undefined, false)">
|
|
</input>
|
|
<span class="input-group-btn">
|
|
<button id="btnFocus" class="btn btn-default" type="button"
|
|
onclick="toggleFocusOnNode()"style="margin-top:-4px">
|
|
Focus
|
|
</button>
|
|
</span>
|
|
</div>
|
|
<hr>
|
|
<div id="selectionInfo">
|
|
<label>Monkey not selected</label>
|
|
</div>
|
|
<hr>
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#mconfig" data-toggle="collapse">Monkey Config</a>
|
|
</div>
|
|
<div id="mconfig" style="overflow: visible" class="panel-body panel-collapse collapse in" aria-expanded="true">
|
|
<div style="display: none;" id="monkey-enabled">
|
|
Allow running: <input type="checkbox" data-size="mini" name="chboxMonkeyEnabled" checked>
|
|
</div><br/>
|
|
<div>
|
|
<span class="input-group-btn">
|
|
<button id="btnConfigLoad" style="display: none;" class="btn btn-default" type="button"
|
|
onclick="loadMonkeyConfig()" style="margin-top:-4px">
|
|
Refresh
|
|
</button>
|
|
<button id="btnConfigUpdate" style="display: none;" class="btn btn-default" type="button"
|
|
onclick="updateMonkeyConfig()" style="margin-top:-4px">
|
|
Update
|
|
</button>
|
|
</span>
|
|
</div>
|
|
<div style="display: none;" id="monkey-config">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.Details section -->
|
|
|
|
<!-- Config section -->
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#config" data-toggle="collapse">General Config</a>
|
|
</div>
|
|
<div id="config" style="overflow: visible" class="panel-body panel-collapse collapse in" aria-expanded="true">
|
|
<span class="input-group-btn">
|
|
<button id="btnNewConfigLoad" class="btn btn-default" type="button"
|
|
onclick="loadNewMonkeysConfig()" style="margin-top:-4px">
|
|
Load
|
|
</button>
|
|
<button id="btnNewConfigUpdate" class="btn btn-default" type="button"
|
|
onclick="updateNewMonkeysConfig()" style="margin-top:-4px">
|
|
Update
|
|
</button>
|
|
</span>
|
|
<div id="new-config">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.Config section -->
|
|
|
|
<!-- Config section -->
|
|
<div class="col-lg-3 col-md-6 col-sm-6">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<a href="#reset" data-toggle="collapse">Reset Database</a>
|
|
</div>
|
|
<div id="reset" style="overflow: visible" class="panel-body panel-collapse collapse" aria-expanded="true">
|
|
<span class="input-group-btn">
|
|
<button id="btnResetDB" class="btn btn-default" type="button"
|
|
onclick="resetDB()" style="margin-top:-4px">
|
|
Reset Database
|
|
</button>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.Config section -->
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|