Infected-Resources Script
Table of Contents
On Github: https://github.com/cumulodev/hoster-tools#infected-resources
This tool polls the nimbusec API for infected domains and returns the infected resources (files and paths). An example use case would be the automatic delete/move/quarantine of infected files.
Installation
If you have Go installed, the infected-resources
can simply be installed by go get:
go get github.com/cumulodev/hoster-tools/infected-resources
Usage
As key
and secret
please use your assigned API key and secret (can be found at https://portal.nimbusec.com/einstellungen/serveragent).
infected-resources -key abc -secret abc -domain www.example.com
- domain: The domain command is OPTIONAL and can limit the output of the resources to one specific domain.
To get the infected resources of ALL domains just call:
infected-resources -key abc -secret abc
If you want the resources of just one domain you may limit it like this:
infected-resources -key abc -secret abc -domain www.example.com
The output has csv format and can be written to a file like this:
infected-resources -key abc -secret abc > infected-resources.csv
Perform actions on the output with pipes - infinite possibilities - example:
infected-resources -key abc -secret abc -domain www.example.com | sed -E 's/.*,(.*)$/echo \1/' > process.sh && sh process.sh