On Friday August 14th. from 9 p.m. to 9:30 p.m., we will upgrade GitLab software and its cloud platform release. Service may not be available during this maintenance window. Please schedule your work accordingly.

Commit af783313 authored by Marcello Golfieri's avatar Marcello Golfieri

made -H option needed only in association with other options

parent a32eb4e5
......@@ -414,6 +414,12 @@ if __name__ == "__main__":
action="store_true",
help="report on -H host for known found vulnerabilities - high level",
)
parser.add_argument(
"-Q",
"--show_qca_asset_info",
action="store_true",
help="shows assets info gathered via QCA, needs -H",
)
parser.add_argument(
"-q",
"--qids",
......@@ -488,8 +494,10 @@ if __name__ == "__main__":
elif args.ignore_vuln:
oxml = q.ignore_vuln(args.host, args.qids, args.comment, args.action, args.days_to_reopen)
pprint(oxml.xpath('//*/text()'))
else: # Just args.host
elif args.show_qca_asset_info:
print(q.get_asset_details_xml(args.host))
else: # Just args.host
print("The -H option cannot be used alone")
elif args.qids:
sorted_list = q.get_qid_info(args.qids)
pprint(sorted_list.xpath('//RESPONSE/VULN_LIST/VULN//*[text()]'))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment