Giter Club home page Giter Club logo

crowdstrike-oauth's Introduction

crowdstrike-oauth

Wrapper for Crowdstrike Oauth API, but a limited implementation of just a few endpoints..

The list_devices and list_devices_scroll, both seem to suffer from an upper bounds (150k)

Examples:

Instatiate class

    cs = CrowdStrike()

List Devices

    device_list = cs.list_devices_scroll()
    print(len(device_list))

Upload IOCs

    iocs = [('domain', 'ningzhidata.com')]
    resp = cs.upload_ioc(iocs, share_level="white", expiration_days=90, source="SpiderLabs", description="https://www.trustwave.com/en-us/resources/blogs/spiderlabs-blog/the-golden-tax-department-and-the-emergence-of-goldenspy-malware/")

Run Commands (RTR):

    aids = ['aid1', 'aid2', '...']

    script_name = 'MyAwesomeScript' # you can use the API to get scripts, or get the name directly from the UI
    putfile1_name = 'MyPutFile1'  # in order to put files on systems, they have to be uploaded to the cloud.
    putfile2_name = 'MyPutFile2'

    batch_ids = cs.init_session(aids) # we have to create the sessions first
    run_cmds = [
        ('mkdir', '/Library/MyTempPath/'),
        ('cd', '/Library/MyTempPath/'),
        ('put', putfile1_name),
        ('cd', '/Library/LaunchDaemons/'),
        ('put', putfile2_name),
        ('runscript', '-CloudFile="{0}"'.format(script_name))
    ]
    for run_cmd in run_cmds:
        resp = cs.run_cmd(batch_ids, run_cmd[0], run_cmd[1], aids)
        pprint(resp)

crowdstrike-oauth's People

Contributors

spohara79 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.