-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation does not match the actual config format - 'Application Options' does not get parsed at all #337
Comments
I would love to see it fixed- it's a big annoyance for me but it doesn't prevent me from doing what I need. That's why I (personally) wouldn't call it major
Me neither, from what I can tell there is no reference to Because there's not even a basic stub that looks at the
Normally I would send a PR myself, but because the functionality is missing entirely as opposed to misbehaving or broken, I didn't want to spend the time on it- plus I figured I was the only one bothered by it ;) I'll follow this issue and hope you or someone else send's a PR, but I'm not holding my breath FWIW- I'm not a part of the zmap team but based on my experience contributing small bug-fixes and features, I'm sure they would accept a PR for this as long as it doesn't impact anything else |
I'd call it major because the docs are pointing to I also digged a bit around since I was thinking of creating a PR for this, too... From my understanding of the code, it turns out the Now, when creating the parser, you can pass a struct holding the Application Options and, the unit tests from zflags also do it thisway.. I guess you can make |
Ah! That explains why I was unable to find a reference to the "Application Options" string literal in the zgrab2 source
So maybe a PR wouldn't be as much effort as I thought since there is in fact an existing interface for it
I see, I'll take a look if I have some time. Now that you've tracked down both the interface itself and uses in the test-suite it seems like less of a time investment, even if using it in zgrab2 as it is now is not intuitive. It could be that the changes required to zgrab2 are very invasive in which case I'll probably also give up
Maybe this helps answer the question as to why it wasn't actually used in the end ;) |
+1 for this, I was wondering why some of my captures when using the |
@Nirusu any time/interest in providing a PR for this? I'm sifting through issues to set aside time to work on. I've identified a few but given the limited time I have to work on them, I won't get to all or even most of them 😞 |
Basically the same as #236, so it's a duplicate... But since @mzpqnxow closed the issue with this still being quite a major issue, I am reposting this.
The README.md says you can define a config file like this:
And pass it as:
./zgrab2 multiple -c multiple.ini
.It also says:
Now, this is in fact not true. zgrab2 does not parse this section AT ALL. You can put any other global setting in there, it is getting ignored.
I am not sure how this even happened... But as a workaround, everything you want to pass in the config file as
Application Options
, you need to pass to argv.So, if you want to pass input and output, you need to do it like this:
./zgrab2 -f input.csv -o output.csv multiple -c multiple.ini
.Same goes for other global options. For example, if you want to increase the size limit per scan (here, to 1 GiB), you need to do it as followed:
./zgrab2 -f input.csv -o output.csv multiple -c --read-limit-per-host 1048576 multiple.ini
.Quite a major issue, in my eyes...
The text was updated successfully, but these errors were encountered: