Omp: Unterschied zwischen den Versionen

Aus xinux.net
Zur Navigation springen Zur Suche springen
 
(14 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 formats=
 
*omp -F
 
<pre>
 
5057e5cc-b825-11e4-9d0e-28d24461215b  Anonymous XML
 
910200ca-dc05-11e1-954f-406186ea4fc5  ARF
 
5ceff8ba-1f62-11e1-ab9f-406186ea4fc5  CPE
 
9087b18c-626c-11e3-8892-406186ea4fc5  CSV Hosts
 
c1645568-627a-11e3-a660-406186ea4fc5  CSV Results
 
6c248850-1f62-11e1-b082-406186ea4fc5  HTML
 
77bd6c4a-1f62-11e1-abf0-406186ea4fc5  ITG
 
a684c02c-b531-11e1-bdc2-406186ea4fc5  LaTeX
 
9ca6fe72-1f62-11e1-9e7c-406186ea4fc5  NBE
 
c402cc3e-b531-11e1-9163-406186ea4fc5  PDF
 
9e5e5deb-879e-4ecc-8be6-a71cd0875cdd  Topology SVG
 
a3810a62-1f62-11e1-9219-406186ea4fc5  TXT
 
c15ad349-bd8d-457a-880a-c7056532ee15  Verinice ISM
 
50c9950a-f326-11e4-800c-28d24461215b  Verinice ITG
 
a994b278-1f62-11e1-96ac-406186ea4fc5  XML
 
</pre>
 
 
 
=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/

Aktuelle Version vom 14. Mai 2020, 09:20 Uhr