当前位置:网站首页>[frp intranet penetration]
[frp intranet penetration]
2022-08-03 05:50:00 【A piece of paper - barren】
Article table of contents
Foreword
frp is an open source intranet penetration software. The working process is as follows:
The server runs on a server with a public IP and listens on a certain port, waiting for the client to connect;
The clientRunning on the internal network machine that needs to be penetrated, after connecting to the server, the server starts to monitor the designated port that the client needs to penetrate;
External network users connect to the designated port monitored by the server, and then the server forwards the user data to the internal networkClient, to achieve intranet penetration.
Simply put, frp acts as a proxy to forward the traffic of internal and external network communication, so that the internal and external networks can communicate.
I. Experiment introduction
Simple topology map
The goal of this experiment is pc3, which isI use kali's host to have access to pc2's shared directory.Kali acts as the frp server and pc1 acts as the client to forward traffic from the external network to the internal network pc2.
pc1 has two network cards, 192.168.20.196 can communicate with kali, but 10.40.1.10 cannot; both pc1 and pc2 have the smb service enabled, and the username and password are both administrator and [email protected]
Remarks: In fact, the more common way to use it is to use frp on the public network, which is the 2 and 3 routes in the above topology diagram, because it itself belongs to the intranet.
Just because the experimental environment is built locally, there is no need to use the frp of the public network, but use kali as the frp server, and take the route 1 route.
Second, mount the shared directory
Since pc1 has enabled the smb service, we can mount it locally so that we can upload files.
mount -t cifs -o 'username=administrator,password=[email protected]' //192.168.20.192/123 /mnt
Third, configure frp
Server configuration
Open frp service
Configure the client file, because the target system is Windows, so use the Windows configuration file
Send the client's configuration files, frpc.exe and frpc.ini to the mount directory, and upload it to pc1
The next step is to open the client. A wmiexec.py script is used here, which can directly execute the pc1 file locally, provided that the user name and password are known.
Take a look at the file
Run the client again
Successful operation
Fourth, use proxy software to connect frp
Use SSTap software on pc3 host
Test Connection
Because we didn't configure UDP in the first place, it's normal to fail the test, tcp is OK, it doesn't affect.
Then add the route to the target host
Then test the smb connection
Enter the user name and password on the machine to connect successfully, you can view the shared directory.
Summary
The article briefly introduces the use of frp, but when it is practical, the public network frp is used, and the core principles are the same. I hope it will help everyone in the use and understanding of frp.
边栏推荐
猜你喜欢
优雅的拦截TabLayout的点击事件
嵌入式实验四
Execute the mysql script file in the docker mysql container and solve the garbled characters
pta a.1030的dijkstra+DFS方法
【DC-2靶场渗透】
【IDEA】字体修改-护眼主题-文件注释头设置
Let small program development into ` tailwind jit ` era
亲身分享一次 字节跳动 真实面试经历和面试题
Django从入门到放弃三 -- cookie,session,cbv加装饰器,ajax,django中间件,redis缓存等
令人愉快的 Nuxt3 教程 (二): 快速轻松地搭建博客
随机推荐
速来围观,17个运维实用技巧
【HQL】(一)json字符串处理json_tuple和get_json_object
Try setting CHROME_EXECUTABLE to a Chrome executable
中国水煤浆行业“十四五”规划与运营模式分析报告2022~2028年
MySQL 安装报错的解决方法
uni-app 滚动到顶部/指定位置
`monorepo` 中 `hoist` 机制导致加载配置文件路径的变化
Sqli-labs-master shooting range 1-23 customs clearance detailed tutorial (basic)
7.17(7)
【反弹shell与提权】
Delightful Nuxt3 Tutorial (1): Application Creation and Configuration
C语言简单实现扫雷小游戏
小码农的第一篇博客
Browser multi-threaded off-screen rendering, compression and packaging scheme
中国生活服务O2O行业发展现状与市场规模预测报告2022~2028年
3588. 排列与二进制
嵌入式实验二
Oracle 密码策略详解
Let small program development into ` tailwind jit ` era
【DC-4靶场渗透】