64 lines
2.3 KiB
HTML
64 lines
2.3 KiB
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<link href="{{url_for('static', filename = 'style.css')}}" rel="stylesheet">
|
|
<head>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js" integrity="sha512-bLT0Qm9VnAYZDflyKcBaQ2gg0hSYNQrJ8RilYldYQ1FxQYoCLtUjuuRuZo+fjqhx/qtq/1itJ0C2ejDxltZVFg==" crossorigin="anonymous"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/3.0.4/socket.io.js" integrity="sha512-aMGMvNYu8Ue4G+fHa359jcPb1u+ytAF+P2SCb+PxrjCdO3n3ZTxJ30zuH39rimUggmTwmh2u7wvQsDTHESnmfQ==" crossorigin="anonymous"></script>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(document).ready(function() {
|
|
var socket = io();
|
|
|
|
socket.on('connect', function() {
|
|
socket.emit('my_event', {data: 'I\'m connected!'});
|
|
});
|
|
socket.on('scan_response', function(msg) {
|
|
$('#output').append('<tr><td>' + $('<div/>').text(msg.data).html()+'</td></tr>');
|
|
})
|
|
|
|
$('form#scanner').submit(function(event) {
|
|
document.getElementById("output").innerHTML = "";
|
|
socket.emit('scan_port', $('#Target').val());
|
|
return false;
|
|
});
|
|
|
|
socket.on('net_response', function(msg) {
|
|
$('#output').append('<br>' + $('<div/>').text(msg.data).html());
|
|
})
|
|
|
|
$('form#network').submit(function(event) {
|
|
document.getElementById("output").innerHTML = "";
|
|
socket.emit('net_port', $('#Subnet').val());
|
|
return false;
|
|
});
|
|
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<title>Pyng</title>
|
|
<div class="logout">
|
|
<ul>
|
|
{% for item in nav.top %}
|
|
<li class="{{ 'active' if item.is_active else '' }}">
|
|
<a href="{{ item.url }}">{{ item.label }}</a>
|
|
</li>
|
|
{% endfor %}
|
|
<li style="float:right;">
|
|
<a href="logout"><span class="fas fa-user" style="display: inline;"></span> Logout</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<h1>Port Scan</h1>
|
|
|
|
<form id="scanner" method="POST" action="#">
|
|
<input type="text" id="Target" placeholder="http://url.com or 192.168.1.1">
|
|
<input type="submit" value="Send">
|
|
</form>
|
|
|
|
<center>
|
|
<br><br><div id="output"></div>
|
|
</center>
|
|
</body>
|
|
</html>
|