frp使用
0x01 frp搭建
下载链接:https://github.com/fatedier/frp/releases
由于该程序的功能较多,并且是Golang打包的二进制文件,所以文件体积会比较大,在实战环境中可以先用UPX(https://github.com/upx/upx/releases)压缩壳,压缩后再使用。
压缩后frp文件的体积只有原来的四分之一:
Upx.exe -9 frpc.exe
Upx.exe -9 frps.exe
socks5环境VPS配置:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
[common] |
启动服务端:
|
1
|
nohup ./frps -c frps.ini & |
目标主机上配置:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#上传,文件较大<br>#编辑frpc.ini内容如下,与frpc一并上传到服务器# chmod +x frpc(最好将其改个名,比如deamon)common] [plugin_socks]type = tcpremote_port = 46075plugin = socks5plugin_user = adminplugin_passwd = hahha@@###use_encryption = trueuse_compression = true |
在目标机器上执行:
|
1
|
nohup ./frpc -c frpc.ini & |

浙公网安备 33010602011771号