Git Product home page Git Product logo

fireeyehx's Introduction

FireEyeHX API v3 PowerShell wrapper

Hi! This is a wrapper of the FireEyeHX v3 API. There are two versions: one for PowerShell Core and another one for Windows PowerShell. It has been tested in CentOS 7 Linux, Windows Server 2012, Windows 10 and also using Azure Automation Runbooks using Hybrid Workers on Windows PowerShell. Please note the different braches of the project and install the version you need. Enjoy it!

Master branch

For PowerShell Core (tested on version 6.1)

Installation

  1. Method one:

    • Use PowerShell Gallery:

      Import-Module -Name FireEyeHX

  2. Method two:

    • Clone and import:

      git clone --single-branch -b master [email protected]:daniel0x00/FireEyeHX.git
      Import-Module -Name .\FireEyeHX\FireEyeHX.psm1 -Verbose
      

ps5 branch

For Windows PowerShell (tested on version 5.0)

Installation

  1. Method one:
    • Clone and import:

      git clone --single-branch -b ps5 [email protected]:daniel0x00/FireEyeHX.git
      Import-Module -Name .\FireEyeHX\FireEyeHX.psm1 -Verbose
      

Usage

Creating a Bulk Acquisition against a HostSet:

PS C:\> $credential = Get-Credential
PS C:\> $controller = 'https://hxcontroller.domain.com:3000'
PS C:\> 
PS C:\> New-HXSession -Uri $controller -Credential $credential | Find-HXHostSet -Search 'TargetHostSet' | Add-HXBulkAcquisition -Platform win -ScriptFile C:\Users\XXX\Desktop\JustTest-win.json

bulkacquisition_id : 3
revision           : 20180921210323088068235355
comment            : PSAutomaticBulkAcquisition
create_time        : 2018-09-29T21:03:23.088Z
state              : RUNNING
endpoint           : /hx/api/v3/acqs/bulk/3
Uri                : https://hxcontroller.domain.com:3000
TokenSession       : IMXw3MCt6A8ElVhgOh+DLzLObQozF8M4/X1vB0OkBF37ImI=

fireeyehx's People

Contributors

daniel0x00 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wikijm

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.