i am a Firmware Engineer and I am new to openvas as well as most linux usage.
i am trying to get openvas to run a scan from the command line.
i have got some gvm-cli commands working, however i am unsure the best / simplest way to start a simple scan for a single target.
so far i have tried many things similar to this, but have not been sucsesful.
gvm-cli --protocol OSP --gmp-username Admin --gmp-password “PASS” socket --xml “<start_scan scan_id=‘Test1’ parallel=‘1’>
<targets>
<target>
<hosts>192.168.1.1
<ports>T:22,9390
<alive_test>2</alive_test>
<credentials>
</credentials>
<exclude_hosts/>
</target>
</targets>
</start_scan>”
(sorry for formatting, site doesnt like copy pasta xml)