new: added removeEventListener builtin function (closes #1139)

This commit is contained in:
evilsocket 2024-11-20 14:30:17 +01:00
parent a7e4572416
commit 169b0cb8c9
2 changed files with 85 additions and 26 deletions

View file

@ -330,6 +330,7 @@ func (s *Session) Start() error {
plugin.Defines["saveJSON"] = jsSaveJSONFunc
plugin.Defines["saveToFile"] = jsSaveToFileFunc
plugin.Defines["onEvent"] = jsOnEventFunc
plugin.Defines["removeEventListener"] = jsRemoveEventListenerFunc
plugin.Defines["session"] = s
// load the script here so the session and its internal objects are ready