Hi, I want to scan my nework and ouput the results of hosts that are up to a file using the following command:
nmap -sS -oG - “IP Address” | grep Up | cut -d ’ ’ -f 2 > Results.txt
I was testing whether that would work because I want to create a crojob for the command so that it could be ran everyday.
Then schedule scans based on that file on OpenVAS, to run everyday after the cronjob completes.
My problem is, when i run that command on the Kali terminal for testing purposes the ouput is not saved on the file, does anyone know what could be the cause of this, or perhaps have a solution for that command?