ReadNetstatFileWrapper

This Automation is a wrapper - If the CrowdStrike key is present in context, ReadNetstatFile will be executed and displayed. Else, 'No data on Netstat found' will be displayed.

python · Malware Investigation and Response

Details

IDReadNetstatFileWrapper
Languagepython
From Version6.2.0
Docker Imagedemisto/python3:3.12.13.10404775
Tagsdynamic-section

README

This Automation is a wrapper -
If the CrowdStrike key is present in context, ReadNetstatFile will be executed and displayed.
else, ‘No data on NetStat file found’ will be displayed.

Script Data


Name Description
Script Type python3
Tags dynamic-section
Cortex XSOAR Version 6.2.0

Inputs


There are no inputs for this script.

Outputs


There are no outputs for this script.

from CommonServerPython import *


def main():
    try:
        if "CrowdStrike" in demisto.context():
            return_results(demisto.executeCommand("ReadNetstatFile", {}))
        else:
            return_results("No data on Netstat found")
    except Exception as e:
        demisto.error(traceback.format_exc())  # print the traceback
        return_error(f"Failed to execute ReadNetstatFileWrapper. Error: {e!s}")


if __name__ in ("__main__", "__builtin__", "builtins"):
    main()