这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@mielverkerken
Copy link
Contributor

Improved Subfinder SDK Usability

The current subfinder Go module has limited functionality as an SDK. While it allows configuring the runner and performing enumerations, obtaining results requires passing through writers and parsing the output again, which is inefficient for programmatic use.

This pull request introduces a change to make the subfinder module more SDK-friendly by directly returning the sourceMap. The sourceMap contains the enumerated subdomains along with the sources that identified them, eliminating the need to reprocess the output.

Key Changes

  • Modified the enumeration logic to return the sourceMap as a result.
  • Kept changes minimal to minimize the impact on other parts of the codebase.
  • Modified example code to use subfinder Go module to use the sourceMap.

@mielverkerken mielverkerken changed the title Make subfinder go module more useful Improved Subfinder SDK Usability Dec 6, 2024
@GeorginaReeder
Copy link

Thanks for your contribution @mielverkerken , we appreciate it! :)

@ehsandeep ehsandeep merged commit 1620aaa into projectdiscovery:dev Jan 14, 2025
8 checks passed
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

Successfully merging this pull request may close these issues.

5 participants