Using Nuclei as Library
Nuclei was primarily built as a CLI tool, but with increasing choice of users wanting to use nuclei as library in their own automation, we have added a simplified Library/SDK of nuclei in v3
Installation
To add nuclei as a library to your go project, you can use the following command:
Or add below import to your go file and let IDE handle the rest:
Basic Example of using Nuclei Library/SDK
Advanced Example of using Nuclei Library/SDK
For Various use cases like batching etc you might want to run nuclei in goroutines this can be done by using nuclei.NewThreadSafeNucleiEngine
More Documentation
For complete documentation of nuclei library, please refer to godoc which contains all available options and methods.
Note
❗ Disclaimer |
---|
This project is in active development. Expect breaking changes with releases. Review the release changelog before updating. |
This project was primarily built to be used as a standalone CLI tool. Running nuclei as a service may pose security risks. It's recommended to use with caution and additional security measures. |