Hi Everyone,
I am having some issues with the nmap_linux.sh script.
I have multiple subnets in use for differing WANs connected via Cisco Routers. I can ping workstations and portscan them and get results via windows tools no worries so i think all the networking side of the equation is fine. I can also run the windows audit.vbs scripts and get input into the OA system so it isn't a webpage permission thing
I run this script which I don't think i have changed from the initial installed version beyond changing IP address ranges.
#!/bin/bash
for ((a=1; a <=254 ; a++))
do
echo "192.168.024.$a"
nmap_file="nmap_file.txt"
nmap_input=`nmap -v -O -oN $nmap_file 192.168.024.$a`
nmap_output=`cat $nmap_file`
wget -q --post-data="submit=submit&add=$nmap_output"
http://192.168.1.251/OA/admin_nmap_input.phprm "$nmap_file"
rm "admin_nmap_input.php"
done
The script works flawlessly for 192.168.1.XXX range and i get results in the OA system however if i put in any of the other subnets the results do not show. Is there anything in particular that needs to be changed to allow non local nmap results or perhaps if i comment the removal is there anything i should look for in the admin_nmap_input.php.1 -254 files that might give me some insight as to if the file isn't working correctly?