owasp-amass / amass

In-depth attack surface mapping and asset discovery
https://owasp.org/www-project-amass/
Other
11.78k stars 1.86k forks source link

Integrate amass into go project #919

Open YugoCode opened 1 year ago

YugoCode commented 1 year ago

In https://github.com/owasp-amass/amass/issues/808 it has been mentioned that there was once information about integrating amass into a go project. Unfortunately, I cannot find these information anymore.

@caffix In that issue from a year ago, you have stated that the internals are often changing and therefore a reliable interface for integration cannot be provided. Has this changed and if not - will it change in the near future?

In case it's still not possible to provide anything official, could you please provide some guidance on how to integrate the latest version of amass into a go project and start an exemplaric scan?

When I import "github.com/owasp-amass/amass/v3", I get following error:

go: finding module for package github.com/owasp-amass/amass/v3
go: downloading github.com/owasp-amass/amass/v3 v3.23.1
example.com/demo/app/tools imports
        github.com/owasp-amass/amass/v3: module github.com/owasp-amass/amass/v3@latest found (v3.23.1), but does not contain package github.com/owasp-amass/amass/v3

Thank you very much! :)