日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 综合教程 >内容正文

综合教程

4.nps搭建socks5代理

發(fā)布時(shí)間:2023/12/15 综合教程 33 生活家
生活随笔 收集整理的這篇文章主要介紹了 4.nps搭建socks5代理 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

0x01.nps介紹

在滲透測(cè)試過程中 , 我們肯定會(huì)遇到內(nèi)網(wǎng)的滲透 , 如果是團(tuán)隊(duì)合作那么代理肯定不能少了 , 推薦一款工具nps

一款輕量級(jí)、高性能、功能強(qiáng)大的內(nèi)網(wǎng)穿透代理服務(wù)器。支持tcp、udp、socks5、http等幾乎所有流量轉(zhuǎn)發(fā),可用來訪問內(nèi)網(wǎng)網(wǎng)站、本地支付接口調(diào)試、ssh訪問、遠(yuǎn)程桌面,內(nèi)網(wǎng)dns解析、內(nèi)網(wǎng)socks5代理等等……,并帶有功能強(qiáng)大的web管理端。a lightweight, high-performance, powerful intranet penetration proxy server, with a powerful web management terminal

github地址: https://github.com/cnlh/nps/releases

選擇對(duì)應(yīng)平臺(tái)的下載 , 解壓

0x02.部署nps

1.配置服務(wù)端

這里我們把服務(wù)端部署在vps上 , 方便多人運(yùn)動(dòng) , 解壓好的服務(wù)端壓縮包會(huì)有三個(gè)文件

conf nps web

這里我們只需要對(duì)conf下的nps.conf進(jìn)行修改就可以了 , 如果你的vps某些常見的端口已經(jīng)使用了 , 必須要修改一下nps.conf

appname = nps
#Boot mode(dev|pro)
runmode = dev

#HTTP(S) proxy port, no startup if empty
http_proxy_ip=0.0.0.0
http_proxy_port=81
https_proxy_port=443
https_just_proxy=true
#default https certificate setting
https_default_cert_file=conf/server.pem
https_default_key_file=conf/server.key

##bridge
bridge_type=tcp
bridge_port=8024
bridge_ip=0.0.0.0

# Public password, which clients can use to connect to the server
# After the connection, the server will be able to open relevant ports and parse related domain names according to its own configuration file.
public_vkey=123

#Traffic data persistence interval(minute)
#Ignorance means no persistence
#flow_store_interval=1

# log level LevelEmergency->0  LevelAlert->1 LevelCritical->2 LevelError->3 LevelWarning->4 LevelNotice->5 LevelInformational->6 LevelDebug->7
log_level=7
#log_path=nps.log

#Whether to restrict IP access, true or false or ignore
#ip_limit=true

#p2p
#p2p_ip=127.0.0.1
#p2p_port=6000

#web
web_host=a.o.com
web_username=admin   # 默認(rèn)賬號(hào)
web_password=123       # 默認(rèn)密碼
web_port = 8086            # 默認(rèn)端口
web_ip=0.0.0.0
web_base_url=
web_open_ssl=false
web_cert_file=conf/server.pem
web_key_file=conf/server.key
# if web under proxy use sub path. like http://host/nps need this.
#web_base_url=/nps

#Web API unauthenticated IP address(the len of auth_crypt_key must be 16)
#Remove comments if needed
#auth_key=test
auth_crypt_key =1234567812345678

#allow_ports=9001-9009,10001,11000-12000

#Web management multi-user login
allow_user_login=false
allow_user_register=false
allow_user_change_username=false


#extension
allow_flow_limit=false
allow_rate_limit=false
allow_tunnel_num_limit=false
allow_local_proxy=false
allow_connection_num_limit=false
allow_multi_ip=false
system_info_display=false

#cache
http_cache=false
http_cache_length=100

#get origin ip
http_add_origin_header=false

#pprof debug options
#pprof_ip=0.0.0.0
#pprof_port=9999

#client disconnect timeout
disconnect_timeout=60

修改好端口后 , 回到nps所在的目錄 , 啟動(dòng)nps

./nps

啟動(dòng)的時(shí)候會(huì)檢查端口占用情況 , 如果有的已經(jīng)占用的 , 修改之前的配置文件即可

訪問npsweb端

http://ip:8086/login/index
默認(rèn)賬號(hào): admin
密碼: 123

新增一個(gè)客戶端

保存好客戶端命令 , 以及basic認(rèn)證的用戶名和密碼 , 下面會(huì)用到

新建socks5代理

2.配置客戶端

這里用winserver2008演示 , 實(shí)戰(zhàn)中就是一臺(tái)你拿下的有雙網(wǎng)卡的主機(jī)

然后在客戶端上執(zhí)行以下命令

npc.exe -server=119.3.12.54:8024 -vkey=xwj6qcpr0uuhq1ns -type=tcp

客戶端連接成功 , 服務(wù)端上線成功

0x03.配置Proxifier

已知winserver2008所在的內(nèi)網(wǎng)有臺(tái)機(jī)器(192.168.143.132)開了一個(gè)web界面 , 現(xiàn)在通過配置proxifier訪問內(nèi)網(wǎng)

添加代理服務(wù)器

配置代理規(guī)則 , 如果你讓這臺(tái)機(jī)器的所有應(yīng)用 , 訪問所有ip都走代理的話 , 流量很大 , 容易被覺察 , 所以我們只配一下firefox訪問內(nèi)網(wǎng)走代理 , 其他直接放行

打開火狐訪問內(nèi)網(wǎng)web頁面

總結(jié)

以上是生活随笔為你收集整理的4.nps搭建socks5代理的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

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