crowdstrike-falconpy-tools-0.0.28


توضیحات

CrowdStrike FalconPy Tools
ویژگی مقدار
سیستم عامل Unix
نام فایل crowdstrike-falconpy-tools-0.0.28
نام crowdstrike-falconpy-tools
نسخه کتابخانه 0.0.28
نگهدارنده ['Joshua Hiller']
ایمیل نگهدارنده ['falconpy@crowdstrike.com']
نویسنده CrowdStrike
ایمیل نویسنده falconpy@crowdstrike.com
آدرس صفحه اصلی https://github.com/CrowdStrike/falconpy-tools
آدرس اینترنتی https://pypi.org/project/crowdstrike-falconpy-tools/
مجوز -
![CrowdStrike Falcon](https://raw.githubusercontent.com/CrowdStrike/falconpy/main/docs/asset/cs-logo.png) [![Twitter URL](https://img.shields.io/twitter/url?label=Follow%20%40CrowdStrike&style=social&url=https%3A%2F%2Ftwitter.com%2FCrowdStrike)](https://twitter.com/CrowdStrike)<br/> # FalconPy Tools [![Pylint](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/pylint.yml/badge.svg)](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/pylint.yml) [![Flake8](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/flake8.yml/badge.svg)](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/flake8.yml) [![Bandit](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/bandit.yml/badge.svg)](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/bandit.yml) [![CodeQL](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/codeql.yml/badge.svg)](https://github.com/CrowdStrike/falconpy-tools/actions/workflows/codeql.yml) ![Maintained](https://img.shields.io/maintenance/yes/2021) A collection of tools for interacting with the CrowdStrike Falcon API. ## Basic usage example The following example demonstrates using the Hosts Toolbox to retrieve a host AID, and then using the RTR Toolbox to initiate a session and execute `ifconfig`. ```python import os from falconpytools.hosts import HostsToolbox, Host from falconpytools.rtr import RTRToolbox, SingleTarget # Open the RTR toolbox rtr = RTRToolbox(os.environ["FALCON_CLIENT_ID"], os.environ["FALCON_CLIENT_SECRET"], verbose=True ) # Open the Hosts toolbox hosts = HostsToolbox(auth_object=rtr.api.rtr.auth_object, verbose=True ) # Lookup the AID for our search string target_aid = hosts.host.find_host_aid(hostname="SEARCH-STRING") # Retrieve the hostname hostname = hosts.host.get_host(target_aid)[0]["hostname"] # RTR Single Target helper target = rtr.single_target # Initialize a RTR session target_session = target.connect_to_host(target_aid) # Execute a RTR command command_result = target.execute_command("ifconfig", target_session) # Disconnect from the RTR session target.disconnect_from_host(target_session) # Output the results print(command_result) ``` ## Installation ```shell python3 -m pip install crowdstrike-falconpy-tools ``` ## Upgrading ```shell python3 -m pip install crowdstrike-falconpy-tools --upgrade ``` ## Removal ```shell python3 -m pip uninstall crowdstrike-falconpy-tools ```


نیازمندی

مقدار نام
- crowdstrike-falconpy
- flake8
- coverage
- pylint
- pytest-cov
- pytest
- bandit


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl crowdstrike-falconpy-tools-0.0.28:

    pip install crowdstrike-falconpy-tools-0.0.28.whl


نصب پکیج tar.gz crowdstrike-falconpy-tools-0.0.28:

    pip install crowdstrike-falconpy-tools-0.0.28.tar.gz