how to use openvas

来源:互联网 发布:网络传播概论新编 pdf 编辑:程序博客网 时间:2024/05/17 08:46

omp command line


get xml command help 

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<help/>'


get configs 

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<get_configs/>'


config Full and fast                  daba56c8-73ec-11df-a475-002264764cea

config Full and fast ultimate    698f691e-7489-11df-9d8c-002264764cea

config Full and very deep       708f25c4-7489-11df-8094-002264764cea

config Full and very deep ultimate 74db13d6-7489-11df-91b9-002264764cea


create targets 

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<create_target><name>qshpan</name><hosts>bbs.qshpan.com</hosts></create_target>'


get targets

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<get_targets/>'


create task

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<create_tast><name>qshpan</name><comment>qshpan scan</comment><config id="daba56c8-73ec-11df-a475-002264764cea"/><target id="a4fbdf95-392b-4441-9b91-cd033a333d81"/></create_task>'


omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml="<create_task><config id='daba56c8-73ec-11df-a475-002264764cea'/><target id='49e5885b-ea89-4ab5-b049-02181fa7e993'/><name>uestc1234</name><comment></comment></create_task>"


get running task

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --xml='<get_tasks/>'



start task

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v -S $task_id

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v -xml="<start_task task_id='66cb222f-8545-41a3-a942-9f6cbe0dbbce'/>"


get report-format

omp --host=127.0.0.1 --username=fengbo1 --password=123456 -v --get-report-formats


a0704abb-2120-489f-959f-251c9f4ffebd  CPE
b993b6f5-f9fb-4e6e-9c94-dd46c00e058d  HTML
929884c6-c2c4-41e7-befb-2f6aa163b458  ITG
9f1ab17b-aaaa-411a-8c57-12df446f5588  LaTeX
f5c2a364-47d2-4700-b21d-0a7693daddab  NBE
1a60a67e-97d0-4cbf-bc77-f71b08e7043d  PDF
19f6f1b3-7128-4433-888c-ccc764fe6ed5  TXT
d5da9f67-8551-4e51-807b-b6a873d70e34  XML



get report

omp --host=127.0.0.1 --username=fengbo1 --password=123456 --get-report a515a367-1487-45e2-8335-3a5fdd146057 --format=19f6f1b3-7128-4433-888c-ccc764fe6ed5 > report1234.txt