GithubHelp home page GithubHelp logo

infocyte / powershelltools Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 13.0 4.92 MB

Useful Powershell Tools for operating or testing Infocyte HUNT

License: Apache License 2.0

PowerShell 98.68% Batchfile 1.32%

powershelltools's People

Contributors

freddobson avatar singlethreaded avatar skhan-infocyte avatar smaresca avatar timgit avatar writingpanda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

powershelltools's Issues

Remove-ICAgent fails to trigger uninstall

Remove-ICAgent does not currently result in a successful agent uninstallation.

PR to come momentarily.

Example current output:

Remove-ICAgent -Id e6871d85-819c-4dce-abda-deadbeefa2e5
Invoke-RestMethod : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\InfocyteHUNTAPI\1.6.7\requestHelpers.ps1:233 char:5

  • Invoke-RestMethod -Uri $url -headers $headers -body $json -Method ...
    
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

True

Export format as JSON

It would be nice to have the ability for the data to export as JSON, as it would make parsing the data easier to further automated tooling.

An simple example for the Get-ICScans command is below:

{
  "scans": [
    {
      "id": "5c7c1f0a-ff4d-4af8-9b9b-8c8a996fe95b",
      "targetList": "OfflineScans",
      "type": "ScanMetadata",
      "scanName": "Offline-20190605-1615"
    },
    {
      "id": "4c7c1f0a-ff4d-4af8-9b9b-8c8a996fe95b",
      "targetList": "OfflineScans",
      "type": "ScanMetadata",
      "scanName": "Offline-20190405-1615"
    }
  ]
}

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.