diff --git a/demo.html b/demo.html deleted file mode 100644 index fdf13d1..0000000 --- a/demo.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - Demo Page | Princess Pi's Magical Standard Code - - -

Demo Page~

-
- real link -
- fakelink -
- -
- -
- -
- -
- -
- -
- - \ No newline at end of file diff --git a/scripts/nmap-script.sh b/nmap-script.sh similarity index 100% rename from scripts/nmap-script.sh rename to nmap-script.sh diff --git a/run_scan.php b/run_scan.php index 9c998ab..5a93f74 100644 --- a/run_scan.php +++ b/run_scan.php @@ -8,10 +8,11 @@ } $file_name = date("Ymd-Hi-s") . "-" . rand(1000000,9999999) . ".xml"; - $run_cmd = "bash scripts/run_scan.sh -oX scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd&"; + $run_cmd = "bash ./scripts/run_scan.sh nmap -oX ./scans/$file_name --stylesheet /nmaprincesspi/xsl/princesspi-nmap.xsl $post_cmd"; $web_name = "/nmaprincesspi/scans/$file_name"; echo $web_name; $exec = shell_exec($run_cmd); + echo $exec; ?> \ No newline at end of file diff --git a/running.log b/running.log new file mode 100644 index 0000000..29a0a13 --- /dev/null +++ b/running.log @@ -0,0 +1,12 @@ +Starting Nmap 7.95 ( https://nmap.org ) at 2025-05-15 16:07 MDT +Nmap scan report for kasm.h.acker.is (64.20.45.110) +Host is up (0.070s latency). +Not shown: 995 filtered tcp ports (no-response) +PORT STATE SERVICE +22/tcp open ssh +80/tcp open http +443/tcp open https +3389/tcp open ms-wbt-server +8888/tcp open sun-answerbook + +Nmap done: 1 IP address (1 host up) scanned in 7.70 seconds diff --git a/scripts/run_clear.sh b/scripts/run_clear.sh index 3b0cdc1..7a71bb1 100755 --- a/scripts/run_clear.sh +++ b/scripts/run_clear.sh @@ -1,3 +1,4 @@ #!/bin/bash rm -f ../error.log 2>>./error.log +rm -f ../running.log 2>>./error.log rm -f ../scans/* 2>>./error.log \ No newline at end of file diff --git a/scripts/run_scan.sh b/scripts/run_scan.sh index 60c54a9..0155396 100755 --- a/scripts/run_scan.sh +++ b/scripts/run_scan.sh @@ -1,2 +1,2 @@ #!/bin/bash -eval "$* 2>>../error.log 1>/dev/null&" \ No newline at end of file +eval "$* 2>error.log 1>running.log&" \ No newline at end of file