Merge pull request #247 from n0clues/master

Change paths from %TEMP% to %PUBLIC% for spawnas module
1.6
Matt Nelson 2016-06-24 21:24:48 -04:00 committed by GitHub
commit fae79cef1d
1 changed files with 2 additions and 2 deletions

View File

@ -137,7 +137,7 @@ class Module:
launcherCode = l.generate() launcherCode = l.generate()
# PowerShell code to write the launcher.bat out # PowerShell code to write the launcher.bat out
script += "$tempLoc = \"$env:temp\debug.bat\"" script += "$tempLoc = \"$env:public\debug.bat\""
script += "\n$batCode = @\"\n" + launcherCode + "\"@\n" script += "\n$batCode = @\"\n" + launcherCode + "\"@\n"
script += "$batCode | Out-File -Encoding ASCII $tempLoc ;\n" script += "$batCode | Out-File -Encoding ASCII $tempLoc ;\n"
script += "\"Launcher bat written to $tempLoc `n\";\n" script += "\"Launcher bat written to $tempLoc `n\";\n"
@ -150,6 +150,6 @@ class Module:
if(domain and domain != ""): if(domain and domain != ""):
script += "-Domain %s " %(domain) script += "-Domain %s " %(domain)
script += "-Cmd \"$env:temp\debug.bat\"" script += "-Cmd \"$env:public\debug.bat\""
return script return script