Commit Graph

4 Commits (master)

Author SHA1 Message Date
James Alavosus 102f558ddc
v2/pkg/runner: code deduplication in config.go (#539)
* fix readme golang demo for v2.5.0

* v2/pkg/runner: code dedupelication in config.go

Refactor code for retrieving random slice entries, as well as parsing
multipart keys, into two functions:
	- randomEntry for random slice entries
	- multipartKey for multipart key parsing

This shouldn't be functionally different, but it does remove a bunch of
duplicate lines of code.

* small change with sliceutil

Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: zhangchengguo <zhangchengguo@360.cn>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2022-04-26 13:30:09 +05:30
Sandeep Singh 637c18a2e7
goflags support (#498)
* goflags support

* lint error fix

* misc update

* misc update

* default output changes

* readme updates for flags

* return error and exit

* add missing parentheses in readme

* safely deleted sources, resolvers control and added support for provider config file

* go mod and file path changes

* go sum changes

* use default file

* adding missing parentheses

* go mod update

* validations

* general refactoring around goflags + cleanup

* added default sources and cleanup existing config after migration

Co-authored-by: LuitelSamikshya <luitelsamikshya1@gmail.com>
Co-authored-by: LuitelSamikshya <85764322+LuitelSamikshya@users.noreply.github.com>
Co-authored-by: mzack <marco.rivoli.nvh@gmail.com>
2022-02-24 16:14:16 +05:30
mzack 75f2b0487e Improving input items sanitization 2022-01-30 23:49:14 +01:00
Mzack9999 8ddae53079 dns => dnsx 2020-12-16 21:10:27 +01:00