1747350365
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
#!/bin/bash
|
||||
sudo chown -R www-data:www-data .. 2>>../error.log
|
||||
sudo chown -R www-data:www-data .. 2>>../logs/error.log
|
||||
sudo chmod +x ../logs/*
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
# alias nmap="/var/www/html/nmaprincesspi/nmap-script.sh"
|
||||
scansPath="/var/www/html/nmaprincesspi/scans"
|
||||
fileName="nmap-$(date +%Y%m%d-%H%M%S).xml"
|
||||
filePath="$scansPath/$fileName"
|
||||
webPath="http://10.0.0.51/nmaprincesspi/scans/$fileName"
|
||||
|
||||
cmd="nmap -oX \"$filePath\" --stylesheet \"/nmaprincesspi/xsl/princesspi-nmap.xsl\" $*"
|
||||
|
||||
echo -e "\n\nRunning:\n\t$cmd"
|
||||
echo -e "Report Saving to\n\t$webPath\n\n"
|
||||
eval "$cmd"
|
||||
|
||||
echo -e "\n\nReport Visible at $webPath"
|
||||
@@ -1,4 +1,3 @@
|
||||
#!/bin/bash
|
||||
rm -f ../error.log 2>>./error.log
|
||||
rm -f ../running.log 2>>./error.log
|
||||
rm -f ../scans/* 2>>./error.log
|
||||
rm -f ../log/* 2>>../logs/error.log
|
||||
rm -f ../scans/* 2>>../logs/error.log
|
||||
+3
-1
@@ -1,2 +1,4 @@
|
||||
#!/bin/bash
|
||||
eval "$* 2>error.log 1>running.log&"
|
||||
runningLog="$(date +%Y%m%d%H%M%S)-$RANDOM.log"
|
||||
eval "$* 2>>logs/error.log 1>logs/$runningLog&"
|
||||
echo "/nmaprincesspi/logs/$runningLog"
|
||||
Reference in New Issue
Block a user