* fix readme golang demo for v2.5.0
* Remove spyse source
spyse is closed now, with main domain and social network profiles down,
so removing this part of code from subfinder. If they start to operate
again restoring this should be easy.
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: zhangchengguo <zhangchengguo@360.cn>
* 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>
* fix readme golang demo for v2.5.0
* Don't make missing providers-config fatal on first-run
It's okay if we fall back to the default config
which is in memory & will get saved out when done
parsing.
This is on top of the work in #526, but a slightly
different issue.
See: https://github.com/projectdiscovery/subfinder/pull/526
Signed-off-by: Sam James <sam@gentoo.org>
Co-authored-by: Sandeep Singh <sandeep@projectdiscovery.io>
Co-authored-by: zhangchengguo <zhangchengguo@360.cn>
* 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>
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>