mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-26 23:49:59 -07:00
wavehunter: adds static server, system stats
This commit does a couple things: 1. breaks out the pcap streaming logic into its own module 2. bundles wavehunter/static files into the binary for easy distribution 3. serves those static files 4. serves dynamic json representing system and diag stats I also threw together the world's ugliest website to display all this.
This commit is contained in:
20
wavehunter/static/index.html
Normal file
20
wavehunter/static/index.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>ORCA</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css">
|
||||
<script src="js/main.js"></script>
|
||||
<script>
|
||||
window.onload = function() {
|
||||
populateDivs();
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="downloads">
|
||||
<span><a href="/api/pcap/latest.pcap">Latest PCAP</a></span>
|
||||
<span><a href="/api/qmdl/latest.qmdl">Latest QMDL</a></span>
|
||||
</div>
|
||||
<pre id="system-stats">Loading...</pre>
|
||||
<pre id="diag-stats">Loading...</pre>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user