[Feature] Add cross site scripting
This commit is contained in:
parent
753242a949
commit
6ba3272dc0
2 changed files with 49 additions and 2 deletions
|
|
@ -118,6 +118,10 @@ func (a *Agent) RunScript(code string, shell string, args []string, timeout int,
|
|||
ext = "*.py"
|
||||
case "cmd":
|
||||
ext = "*.bat"
|
||||
case "nushell":
|
||||
ext = "*.nu"
|
||||
case "deno":
|
||||
ext = "*.ts"
|
||||
}
|
||||
|
||||
tmpDir := a.WinTmpDir
|
||||
|
|
@ -151,6 +155,10 @@ func (a *Agent) RunScript(code string, shell string, args []string, timeout int,
|
|||
cmdArgs = []string{tmpfn.Name()}
|
||||
case "cmd":
|
||||
exe = tmpfn.Name()
|
||||
case "nushell":
|
||||
exe = tmpfn.Name()
|
||||
case "deno":
|
||||
exe = tmpfn.Name()
|
||||
}
|
||||
|
||||
if len(args) > 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue