zgrab2 icon indicating copy to clipboard operation
zgrab2 copied to clipboard

Adding a module

Open alt-glitch opened this issue 3 years ago • 4 comments

Hi, If I understand correctly, each application protocol has its own module. Can anyone just give me a brief overview of how to add a new module for a protocol. How does a module work exactly and where does zgrab2_schemas come into play here? What would be the procedure I'd have to go through to add a module for a protocol all in all?

Thank you in advance.

alt-glitch avatar Apr 27 '21 06:04 alt-glitch

If I understand correctly, each application protocol has its own module. Can anyone just give me a brief overview of how to add a new module for a protocol. How does a module work exactly and where does zgrab2_schemas come into play here?

Hi, I have some understanding issues with the python schemas as well. I like to change some fields in the output file. Changing the corresponding python files and reinstalling the zschema python module does not help. I have no idea where these python files are used by zgrab, too. Can anyone give a hint on this?

I am grateful for any help.

haempel avatar Aug 02 '21 13:08 haempel

They're useful if you want to load ZGrab output directly into a database such as Elasticsearch or BigQuery. However, they're likely out-of-date / wrong, and not particularly well tested, so we should probably move them to an examples directory or similar. If you're adding a module, I wouldn't worry about them.

dadrian avatar Aug 02 '21 18:08 dadrian

Thanks for the quick reply.So if I want to change the JSON output of an existing module, I have to adapt the go files in the corresponding module folder?On Aug 2, 2021 20:05, David Adrian @.***> wrote: They're useful if you want to load ZGrab output directly into a database such as Elasticsearch or BigQuery. However, they're likely out-of-date / wrong, and not particularly well tested, so we should probably move them to an examples directory or similar. If you're adding a module, I wouldn't worry about them.

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or unsubscribe.

haempel avatar Aug 02 '21 19:08 haempel

Yes

dadrian avatar Aug 02 '21 22:08 dadrian

Does zgrab2 support DoT protocol. If not do I need to write a golang script to add one or is there a simpler way to do this?

sethr07 avatar Mar 16 '22 04:03 sethr07