Metadata-Version: 2.1
Name: pyngen
Version: 0.1.4
Summary: Ngen REST. A python library for using Ngen
Home-page: https://github.com/CERTUNLP/pyngen
Author: CERTUNLP
Author-email: soporte@cert.unlp.edu.ar
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: requests
Requires-Dist: python-magic
Requires-Dist: click

PyNgen
======

Cli and python library for using Ngen.

Installation
------------

```bash
pip3 install pyngen
```

Usage Python Module
-------------------

```python
from pyngen import PyNgen

#Create object PyNgen
ngen = PyNgen("ngen.example.com", "apiKey", port=443, scheme="https", path="api")

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

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

```


Usage CLI
---------

```bash
ngen init -key <apikey>  -url http://<ngenurl>/api
```

```bash
ngen newincident -feed shodan -ip 163.10.0.2 -type open_dns
```


