Skip to content

Modular probes #568

@RicYaben

Description

@RicYaben

I am opening this one to discuss the idea of separating modules/probes from the framework. TL;DR:

  • Separate modules from the main framework (plugins-ish)
  • SDK to develop probes in other languages

Motivation:

  • Conversation started here
  • Probes are painful to develop
  • They all come bundled within ZGrab on compilation
  • Limited upstream on the repo from the many forks with scattered probes. Contributors seem reluctant to submit their work
  • Nmap already does this quite successfully

Open questions:

  • What are the tradeoffs of moving in this direction?
  • What technologies could help and how?

Examples:
Right now, zgrab2 compiles with certain probes, so if we develop a new probe, we have to compile zgrab2 with it. Nmap solves this by giving an interface for probe authors to build their own probes without touching the core of nmap, so probes become drag-and-drop binaries or scripts, in a plugin-like style.

In nmap we can do

# find all the scripts within the iot category and run them with some arguments
nmap [targets] --script 'iot' --script-args-file 'iot.conf'

The idea is to get closer to this syntax model while keeping the good features from the multiple module.

Maybe we can open different issues along with this discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions