mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: added saveJSON function to the session scripting runtime
This commit is contained in:
parent
eff8135d99
commit
28371084d3
2 changed files with 29 additions and 2 deletions
|
@ -313,6 +313,7 @@ func (s *Session) Start() error {
|
|||
plugin.Defines["env"] = jsEnvFunc
|
||||
plugin.Defines["run"] = jsRunFunc
|
||||
plugin.Defines["loadJSON"] = jsLoadJSONFunc
|
||||
plugin.Defines["saveJSON"] = jsSaveJSONFunc
|
||||
plugin.Defines["onEvent"] = jsOnEventFunc
|
||||
plugin.Defines["session"] = s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue