codingo / Reconnoitre

A security tool for multithreaded information gathering and service enumeration whilst building directory structures to store results, along with writing out recommendations for further testing.
GNU General Public License v3.0
2.11k stars 456 forks source link

Scantype #115

Open CrimsonK1ng opened 5 years ago

CrimsonK1ng commented 5 years ago

Added custom scans. Please let me know what you think of the implementation. I wasn't sure where the best place to put the user_scan should go (or if it should be a named such). If you would like users to be able to reuse the --scantypemultiple times to build a list of scans to run let me know.

Custom Scans

You can specify custom scans that are not for specific services in the lib/config.json.

Example Default:

    "scans":{
        "default": {
            "description": "Default scan",
            "commands" : [
            ]
        }
    },

The above is the default scan type to be ran when executing reconnoitre --scantype -t 192.168.1.1 -o output

Example Custom:

    "scans":{
        "default": {
            "description": "Default scan",
            "commands" : [
            ]
        },
        "custom": {
            "description": "New custom scan",
            "commands" : [
                 "custom command 1",
                 "custom command 2"
            ]
        }
    },

The above configuration will allow you to run the custom commands listed when executing reconnoitre --scantype custom -t 192.168.1.1 -o output

codingo commented 5 years ago

Reviewing this in a couple of days, pretty full plate. Feel free to nudge me here if nothing by Wednesday.