服务端的配置文件支持部分重载功能。在Linux和Darwin系统上,你可以使用命令 sudo nps reload 进行重载;而在Windows系统上,则应使用 nps.exe reload。请注意,当前仅支持部分配置的重载,如 allow_user_login, auth_crypt_key, auth_key, web_username, web_password 等。未来版本将支持更多配置的重载功能。服务端...
nps(一款轻量级、高性能、功能强大的内网穿透代理服务器)中的"auth_key未授权访问漏洞"指的是当nps服务器的配置文件nps.conf中的auth_key参数未正确配置时,攻击者可以通过伪造特定的请求包,绕过身份验证机制,从而获取服务器后台的访问权限。具体来说,如果auth_key未被设置或设置不当,攻击者可以利用时间戳和MD5算法生...
log_level 日志输出级别 auth_crypt_key 获取服务端authKey时的aes加密密钥,16位 p2p_ip 服务端Ip,使用p2p模式必填 p2p_port P2P模式开启的UDP端口 pprof_ip debug pprof 服务端ip pprof_port debug pprof 端口 disconnect_timeout 客户端连接超时,单位 5s,默认值 60,即 300s = 5mins 按照需求修改即可 然后...
说明: 仅支持部分配置重载,例如allow_user_login auth_crypt_key auth_key web_username web_password 等,未来将支持更多 服务端停止或重启 如果是daemon启动 AI检测代码解析 ./nps stop|restart 1.服务端配置文件 /conf/nps.conf 名称 含义 web_port web管理端口 web_password web界面管理密码 web_username web...
auth_crypt_key获取服务端authKey时的aes加密密钥,16位 p2p_ip服务端Ip,使用p2p模式必填 p2p_portp2p模式开启的udp端口 pprof_ipdebug pprof 服务端ip pprof_portdebug pprof 端口 disconnect_timeout客户端连接超时,单位 5s,默认值 60,即 300s = 5mins ...
只需要配置文件中auth_key的内容即可通过验证,设置session中的isadmin为true。在nps的配置文件中,auth_key默认是被注释的。 -w675 所以代码中beego.AppConfig.String("auth_key")获取的结果就是空。这样crypt.Md5(configKey+strconv.Itoa(timestamp)就相当于只需要把timestamp进行md5即可。poc: ...
说明:仅支持部分配置重载,例如allow_user_loginauth_crypt_keyauth_keyweb_usernameweb_password等,未来将支持更多 服务端停止或重启 对于linux、darwin sudo nps stop|restart 1. 对于windows nps.exe stop|restart 1. 客户端应用 先在网站中创建客户端
只需要配置文件中auth_key的内容即可通过验证,设置session中的isadmin为true。在nps的配置文件中,auth_key默认是被注释的。 -w675 所以代码中beego.AppConfig.String("auth_key")获取的结果就是空。这样crypt.Md5(configKey+strconv.Itoa(timestamp)就相当于...
web_key_file=conf/server.key #ifweb under proxy use sub path. like http://host/nps need this.#web_base_url=/nps #Web API unauthenticated IP address(thelenof auth_crypt_key must be16) #Remove commentsifneeded #auth_key=test #auth_crypt_key =1234567812345678auth_crypt_key =admin123admin...
auth_crypt_keyㅤ 获取服务端authKey时的aes加密密钥,16位 p2p_ipㅤ 服务端Ip,使用p2p模式必填 p2p_portㅤ p2p模式开启的udp端口 默认web端口是8080,客户端连接端口是8024,对于有防火墙的服务器,需要提前打开这两个端口。 新增客户端 在客户端标签页新增客户端配置 ...