mirror of
https://github.com/bettercap/bettercap
synced 2025-07-30 11:40:33 -07:00
new: added loadJSON function to the session scripting runtime
This commit is contained in:
parent
22de9d3d4f
commit
eff8135d99
2 changed files with 27 additions and 0 deletions
|
@ -312,6 +312,7 @@ func (s *Session) Start() error {
|
|||
// js and session
|
||||
plugin.Defines["env"] = jsEnvFunc
|
||||
plugin.Defines["run"] = jsRunFunc
|
||||
plugin.Defines["loadJSON"] = jsLoadJSONFunc
|
||||
plugin.Defines["onEvent"] = jsOnEventFunc
|
||||
plugin.Defines["session"] = s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue