休息休息。使用ngen的python库
pyngen的Python项目详细描述
平根
用于使用ngen的cli和python库。
安装
pip3 install pyngen
使用python模块
frompyngenimportPyNgen#Create object PyNgenngen=PyNgen("https://ngen.example.com/api","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.newIncident("163.10.0.2","shodan","open_dns")#upload with txt evidenceanother_incident_id=ngen.newIncident("163.0.0.99","another_feed","another_incident_type",evidence_text="text_evidence",notes="Notes for this incident",impact="low",urgency="medium")
使用cli
ngen init -apikey <apikey> -url https://<ngenurl>/api
ngen newincident -feed shodan -address 163.10.0.2 -type open_dns
ngen reportcsv -feed external_report -type miner -path path/to/file.csv -addressheader ip