1754766624

This commit is contained in:
2025-08-09 13:10:24 -06:00
parent 6cf436e470
commit d05288bff5
+4 -3
View File
@@ -3,8 +3,9 @@
file_name="nmap-$(date +%Y%m%d%H%M%S)-$(echo $RANDOM | md5sum | awk '{print $1}').xml" file_name="nmap-$(date +%Y%m%d%H%M%S)-$(echo $RANDOM | md5sum | awk '{print $1}').xml"
out_file="/tmp/$file_name" out_file="/tmp/$file_name"
web_file="https://h.acker.is/nmaprincesspi_manual_scans/$file_name"
echo "Logging to $out_file and https://h.acker.is/nmaprincesspi_manual_scans/$file_name" echo "Logging to $out_file and $web_file"
# da nmap command with my custom xsl stylesheet # da nmap command with my custom xsl stylesheet
nmap -A --reason 10.0.0.0/24 -oX $out_file --stylesheet https://h.acker.is/nmaprincesspi/xsl/princesspi-nmap.xsl nmap -A --reason 10.0.0.0/24 -oX $out_file --stylesheet https://h.acker.is/nmaprincesspi/xsl/princesspi-nmap.xsl
@@ -13,6 +14,6 @@ scp $out_file inter:/var/www/h.acker.is/nmaprincesspi_manual_scans/$file_name
# ssh inter "sudo bash /usr/share/customscripts/fix_permissions" # fix perms remote # ssh inter "sudo bash /usr/share/customscripts/fix_permissions" # fix perms remote
# ssh inter "rm -f /var/www/h.acker.is/nmaprincesspi_manual_scans/*" # clear scans # ssh inter "rm -f /var/www/h.acker.is/nmaprincesspi_manual_scans/*" # clear scans
webhook "FINISHED https://h.acker.is/nmaprincesspi_manual_scans/$file_name <@&1369280290203373670>" webhook "FINISHED $web_file <@&1369280290203373670>"
echo "live: https://h.acker.is/nmaprincesspi_manual_scans/$file_name" echo "live: $web_file"