stuff
This commit is contained in:
parent
7b66313c01
commit
24c32fa513
12
README.md
12
README.md
@ -2,7 +2,17 @@
|
||||
|
||||
Scan hosts with nmap and display results in webpage.
|
||||
|
||||
* Create a configuration yaml file in confs/ subdirectory (see example.yaml).
|
||||
* Create a configuration yaml file in confs/ subdirectory (see example below).
|
||||
It may be generated by scanning a network with `init.sh`.
|
||||
* Scan with `php scan_all.php` (use a cron task!).
|
||||
* Open index.php to see results.
|
||||
|
||||
## Example
|
||||
```yaml
|
||||
group1:
|
||||
host1.local: [ssh, http]
|
||||
host2.local: [ftp, https, 5432]
|
||||
group2:
|
||||
host3: [ssh, ftp, 8006]
|
||||
```
|
||||
|
||||
|
@ -1,5 +0,0 @@
|
||||
group1:
|
||||
host1.local: [ssh, http]
|
||||
host2.local: [ftp, https, 5432]
|
||||
group2:
|
||||
host3: [ssh, ftp, 8006]
|
46
results.php
46
results.php
@ -8,23 +8,33 @@
|
||||
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.2/dist/semantic.min.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.9.2/dist/semantic.min.js"></script>
|
||||
<style>
|
||||
#logo {
|
||||
margin: 0 -.4rem 0 0;
|
||||
}
|
||||
.main.container {
|
||||
margin-top: 5em;
|
||||
}
|
||||
.ui.dropdown, .ui.dropdown .menu > .item {
|
||||
font-size: .85714286rem;
|
||||
}
|
||||
.ui.mini button > .detail {
|
||||
margin-left: .1em;
|
||||
}
|
||||
.content {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: .5em;
|
||||
}
|
||||
#logo {
|
||||
margin: 0 -.4rem 0 0;
|
||||
}
|
||||
.main.container {
|
||||
margin-top: 5em;
|
||||
}
|
||||
.ui.dropdown, .ui.dropdown .menu > .item {
|
||||
font-size: .85714286rem;
|
||||
}
|
||||
.ui.mini button > .detail {
|
||||
margin-left: .1em;
|
||||
}
|
||||
.ui.mini.cards > .card {
|
||||
width: inherit;
|
||||
}
|
||||
.ui.cards > .card > .content {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: .5em;
|
||||
padding: .3em;
|
||||
}
|
||||
.ui.mini.menu .item {
|
||||
padding: .6em;
|
||||
}
|
||||
.ui.mini.menu {
|
||||
min-height: 1em;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
onload = function (event) {
|
||||
@ -53,7 +63,7 @@
|
||||
<div class="content">
|
||||
<div class="ui green empty circular label"></div>
|
||||
<div><?=$scan_host->address["addr"]?></div>
|
||||
<div class="header" title="<?=strtok($scan_host->hostnames->hostname["name"], ".")?>"><?=strtok($scan_host->hostnames->hostname["name"], ".")?></div>
|
||||
<div class="header" title="<?=$scan_host->hostnames->hostname["name"]?>"><?=strtok($scan_host->hostnames->hostname["name"], ".")?></div>
|
||||
</div>
|
||||
<div class="ui inverted primary centered wrapped wrapping bottom attached mini menu">
|
||||
<?php
|
||||
|
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
mkdir("scans");
|
||||
if (!file_exists("scans")) mkdir("scans");
|
||||
|
||||
foreach (scandir("./confs") as $file) {
|
||||
if (strrpos($file, ".yaml")) {
|
||||
$site = str_replace(".yaml", "", $file);
|
||||
|
Loading…
x
Reference in New Issue
Block a user