mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-11-10 17:37:57 -10:00
GetClassConstructor handed the same Go value to every object it constructed, in every runtime. All generated JS classes use it, so every new ssh.SSHClient() in a scan was one client: one script's Connect or Close changed the connection that scripts on other targets were using, and those writes raced. Each constructed object now starts as a shallow copy of the instance passed in. The generated bindings all pass a zero value, so every new object starts empty. Signed-off-by: Dwi Siswanto <[email protected]>