add session as optional argument to NucleiClient initiation
tlukkezen opened this issue · 1 comments
tlukkezen commented
Allow the user to provide their own requests.Session
object to initiate a NucleiClient
instance. This should then be assigned to self.session. A new session can still be created if the argument is None.
Usecase: Bring your own Session with custom request-hooks. Allows insertion of the "old" nuclei authentication method with the latest nuclei client.
tlukkezen commented
session attribute can be overwritten after initiation without side-effects. So let's not do this.