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