From 24c32fa51333ab7b9f12fb57ec57a480a35f6087 Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 7 Apr 2023 13:59:48 +0200 Subject: [PATCH] stuff --- README.md | 14 ++++++++++++-- confs/example.yaml | 5 ----- results.php | 46 ++++++++++++++++++++++++++++------------------ scan_all.php | 3 ++- 4 files changed, 42 insertions(+), 26 deletions(-) delete mode 100644 confs/example.yaml diff --git a/README.md b/README.md index e4b04a3..b6df430 100644 --- a/README.md +++ b/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. \ No newline at end of file +* Open index.php to see results. + +## Example +```yaml +group1: + host1.local: [ssh, http] + host2.local: [ftp, https, 5432] +group2: + host3: [ssh, ftp, 8006] +``` + diff --git a/confs/example.yaml b/confs/example.yaml deleted file mode 100644 index 2e3d75a..0000000 --- a/confs/example.yaml +++ /dev/null @@ -1,5 +0,0 @@ -group1: - host1.local: [ssh, http] - host2.local: [ftp, https, 5432] -group2: - host3: [ssh, ftp, 8006] diff --git a/results.php b/results.php index b23f9a2..87f3537 100644 --- a/results.php +++ b/results.php @@ -8,23 +8,33 @@