Skip to main content

Ngen REST. A python library for using Ngen

Project description

PyNgen

Cli and python library for using Ngen.

Installation

pip3 install pyngen

Usage Python Module

from pyngen import PyNgen

#Create object PyNgen
ngen = PyNgen("https://ngen.example.com/", "YOUR_API_KEY")

#Minimum data required.
#Add a new Incident for IP "163.10.0.2" for feed "shodan" and Type "open_dns"
incident_id = ngen.newEvent("163.10.0.2", "shodan", "open_dns")

#upload with txt evidence
another_incident_id = ngen.newEvent("163.0.0.99","another_feed","another_incident_type", evidence_text="text_evidence", notes="Notes for this incident", impact="low", urgency="medium")

Usage CLI

ngen init -apikey <apikey>  -url https://<ngenurl>/
ngen newevent -feed shodan -address 163.10.0.2 -type open_dns
ngen newevent -feed shodan -type spam -address 192.168.0.11 -evidenceFile /tmp/test.txt,/tmp/test2.txt -evidenceText "evidence example text"
ngen reportcsv -feed external_report -type miner -path path/to/file.csv  -addressheader ip

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pyngen-1.0.0-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file pyngen-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pyngen-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 21.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for pyngen-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abd0bd91bf9d3a319632e2516ea46999bee101fed976a0874d4322a4e43125c5
MD5 04b338fc429f985e50c0b0d5d24cb66c
BLAKE2b-256 b912a070623e96e3b7f7829b94221ca12f384e7425f03e93c0a7c42b8bbb6144

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page