|
|
| (15 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 2: |
Zeile 2: |
| *omp -u admin -w sysadm --help | | *omp -u admin -w sysadm --help |
| *omp -u admin -w sysadm --xml='<help/>' | | *omp -u admin -w sysadm --xml='<help/>' |
| =Config file=
| | *[[omp config]] |
| *cat ~/omp.config | | *[[omp config methods]] |
| [Connection]
| | *[[omp targets]] |
| host=127.0.0.1
| | *[[omp tasks]] |
| port=9390
| | *[[omp formats]] |
| username=admin
| | *[[omp reports]] |
| password=sysadm
| |
|
| |
|
| =Get Config Methods= | | =helpful commands= |
| omp -g
| | *openvasmd --user=admin --new-password=new_password |
| <pre>
| |
| 8715c877-47a0-438d-98a3-27c7a6ab2196 Discovery
| |
| 085569ce-73ed-11df-83c3-002264764cea empty
| |
| daba56c8-73ec-11df-a475-002264764cea Full and fast
| |
| 698f691e-7489-11df-9d8c-002264764cea Full and fast ultimate
| |
| 708f25c4-7489-11df-8094-002264764cea Full and very deep
| |
| 74db13d6-7489-11df-91b9-002264764cea Full and very deep ultimate
| |
| 2d3f051c-55ba-11e3-bf43-406186ea4fc5 Host Discovery
| |
| bbca7412-a950-11e3-9109-406186ea4fc5 System Discovery
| |
| </pre>
| |
| *omp --xml='<get_configs/>' -i
| |
| | |
| =Get Targets=
| |
| * omp -T | |
| d4af99a9-9c09-4807-8775-1d8981851268 caprica
| |
| 4ea906cf-ccad-448f-a780-a0af5248dcb9 ryzen
| |
| cd0fdee4-830c-47a9-89f7-d38389ee234d worf
| |
| *omp --xml='<get_targets/>' -i
| |
| | |
| =Create Target=
| |
| *omp --xml='
| |
| > <create_target>
| |
| > <name>quark</name>
| |
| > <hosts>10.82.10.30</hosts>
| |
| > </create_target>'
| |
| | |
| =Delete Task=
| |
| *omp -D ac564383-b39d-48af-a2f7-eb4afc414b44
| |
| =Create Task=
| |
| *omp --xml='
| |
| > <create_task>
| |
| > <name>quark scan</name>
| |
| > <comment>Deep scan on Server 3</comment>
| |
| > <config id="daba56c8-73ec-11df-a475-002264764cea"/>
| |
| > <target id="4248b81b-06b4-4437-8cf7-01569a595182"/>
| |
| > </create_task>'
| |
| <create_task_response id="ec239a5e-796f-4288-aa52-0aa1dd7e12d0" status_text="OK, resource created" status="201"></create_task_response>
| |
| =List Tasks=
| |
| *omp -G
| |
| ec239a5e-796f-4288-aa52-0aa1dd7e12d0 New quark scan
| |
| 6ffee5d3-52b2-44b0-81f7-ca1e3ad5d5a6 Done ryzen-scan
| |
| a4aa333c-929f-459d-b8ae-830e5c189e18 Done worf-scan
| |
| =Start Task=
| |
| *omp -S ec239a5e-796f-4288-aa52-0aa1dd7e12d0
| |
| =Get Report in PDF=
| |
| *omp -R 0244a285-b655-4164-affa-0af74bf1ae46 -f c402cc3e-b531-11e1-9163-406186ea4fc5 > quark.pdf
| |
| Doesn't work ...
| |
| *omp -iX '<get_reports report_id="0244a285-b655-4164-affa-0af74bf1ae46" format_id="c402cc3e-b531-11e1-9163-406186ea4fc5"/>'
| |
|
| |
|
| =Links= | | =Links= |
| *https://elasticsecurity.wordpress.com/2013/07/18/automation-of-vulnerability-assessments-with-openvas/ | | *https://elasticsecurity.wordpress.com/2013/07/18/automation-of-vulnerability-assessments-with-openvas/ |
| *https://isc.sans.edu/forums/diary/Automating+Vulnerability+Scans/20685/ | | *https://isc.sans.edu/forums/diary/Automating+Vulnerability+Scans/20685/ |