GithubHelp home page GithubHelp logo

hayscoding / powershelltools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infocyte/powershelltools

0.0 1.0 0.0 3.46 MB

Useful Powershell Tools for operating or testing Infocyte HUNT

License: Apache License 2.0

PowerShell 100.00%

powershelltools's Introduction

PowershellTools

Useful Powershell tools and modules for operating Infocyte HUNT.

HUNT API Powershell Module

Download the HUNT Powershell Module folder from this repository.

Open up a Powershell terminal and import the Infocyte HUNT API Powershell Module with this command: Import-Module .\HUNT Powershell Module\InfocyteHUNTAPI.psd1.

NOTE: If your system is configured not to permit the execution of scripts because of a restrictive local execution policy, open Powershell in an administrative context and execute the following command: Set-ExecutionPolicy Bypass. Once that is complete, use the Import-Module command again.

Offline Scanning and Analysis

Need to import an offline scan? Here is how you do it!

Surveys can be run manually on a system without connectivity. The surveys can be found in the HUNT Server's install folder C:\Program Files\Infocyte\HUNT\Surveys\ (for On-Prem) or on the Admin:Downloads page on HUNT Cloud instances.

The result file is an .json.gz file and will be found in the temp folder or where ever you ran the survey from.

Using the Import-ICSurvey function to analyze offline scans

The first thing you will need are the survey results copied over from the endpoint you have scanned offline (ran survey.exe on). Once that file or set of files is available, you are ready to setup Powershell.

Download and import the HUNT Powershell Module

Establish a session with your HUNT instance with New-ICToken function.

New-ICToken -HuntServer https://myinstance.infocyte.com

Import the survey or set of surveys using the following command:

Import-ICSurvey -Path C:\Surveys\surveyresult.json.gz

OR for multiple

Get-ChildItem C:\Surveys\ -filter *.json.gz | Import-ICSurvey

Review the results by logging in to the Infocyte HUNT server and selecting the "OfflineScans" target group. You should see the results there unless you specified a specific target group or scanid in the optional perameters of Import-ICSurvey:

Get-Help Import-ICSurvey

If anything goes wrong, feel free to email us at [email protected], and we will assist you with any of your issues in regards to this script.

powershelltools's People

Contributors

singlethreaded avatar writingpanda avatar timgit avatar skhan-infocyte avatar

Watchers

James Cloos 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.