1754769331

This commit is contained in:
2025-08-09 13:55:33 -06:00
parent c02e3dc430
commit 5b9cee0c3c
+5 -2
View File
@@ -1,6 +1,8 @@
#!/bin/zsh #!/bin/zsh
# runs in appx 5 Minutes # runs in appx 5 Minutes
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" # fancy web xml/xsl
file_name="nmap-$(date +%Y%m%d%H%M%S)-$(echo $RANDOM | md5sum | awk '{print $1}').grepable.txt" # grepable
out_file="/tmp/$file_name" out_file="/tmp/$file_name"
web_file="https://h.acker.is/nmaprincesspi_manual_scans/$file_name" web_file="https://h.acker.is/nmaprincesspi_manual_scans/$file_name"
remote_server="inter" remote_server="inter"
@@ -10,7 +12,8 @@ local_subnet="10.0.0.0/24"
echo -e "\nSTARTING! THIS WILL TAKE ABOUT FIVE MINUTES!\n\tLogging to $out_file\n\tand $web_file\n" echo -e "\nSTARTING! THIS WILL TAKE ABOUT FIVE MINUTES!\n\tLogging to $out_file\n\tand $web_file\n"
# da nmap command with my custom xsl stylesheet # da nmap command with my custom xsl stylesheet
nmap -T4 -sV -O $local_subnet -oX $out_file --stylesheet https://h.acker.is/nmaprincesspi/xsl/princesspi-nmap.xsl # nmap -T4 -sV -O $local_subnet -oX $out_file --stylesheet https://h.acker.is/nmaprincesspi/xsl/princesspi-nmap.xsl # fancy web xml/xsl
nmap -T4 -sV -O $local_subnet -oG "$out_file" # grepable
scp $out_file $remote_server:$remote_path/$file_name scp $out_file $remote_server:$remote_path/$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