Skip to content
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

help #41

Open
Kalimon12 opened this issue Aug 27, 2021 · 1 comment
Open

help #41

Kalimon12 opened this issue Aug 27, 2021 · 1 comment

Comments

@Kalimon12
Copy link

what does it mean --include-other-source

@StasonJatham
Copy link

StasonJatham commented Oct 28, 2021

I know what you mean, the descriptions are a little weird....
for --include-other-source it says Also include other-source's urls (still crawl and request)
I actually don't understand half of them I had to read the entire code and still don't really get those length check ones haha

The flag you named runs this code if set

							if includeOtherSourceResult {
								if crawler.JsonOutput {
									sout := core.SpiderOutput{
										Input:      crawler.Input,
										Source:     "other-sources",
										OutputType: "url",
										Output:     url,
									}
									if data, err := jsoniter.MarshalToString(sout); err == nil {
										outputFormat = data
									}
								} else if crawler.Quiet {
									outputFormat = url
								}
								fmt.Println(outputFormat)

								if crawler.Output != nil {
									crawler.Output.WriteToFile(outputFormat)
								}
							}

From what I can tell is that all this does is log the URLs that were found from "other sources" like Virustotal, otx, wayback and whatever else they use. I think this is actually not necessary, because whenever you specify that you want to crawl other source you probably also want to see the output :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants