def inspect_service_application(
self,
org_uuid=None,
network_service_scan_uuid=None,
network_service_uuid=None,
order_uuid=None,
):
"""
Inspect the applications residing on the remote service.
:param org_uuid: The UUID of the organization to inspect the service on behalf of.
:param network_service_scan_uuid: The UUID of the NetworkScan that invoked this task.
:param network_service_uuid: The UUID of the NetworkService to inspect.
:return: None
"""
logger.info(
"Inspecting service %s for organization %s. Network scan was %s."
% (network_service_uuid, org_uuid, network_service_scan_uuid)
)
task_signatures = []
protocol = self.network_service.protocol.lower()
if protocol == "tcp":
task_signatures.append(inspect_tcp_service_application.si(
org_uuid=org_uuid,
network_service_scan_uuid=network_service_scan_uuid,
network_service_uuid=network_service_uuid,
order_uuid=order_uuid,
))
else:
raise UnsupportedProtocolError("No support for service inspection with protocol %s." % (protocol,))
canvas_sig = chain(task_signatures)
canvas_sig.apply_async()
#USED
评论列表
文章目录