L-codes / Neo-reGeorg

Neo-reGeorg is a project that seeks to aggressively refactor reGeorg
GNU General Public License v3.0
2.84k stars 439 forks source link

请求添加反向端口映射功能 #81

Closed Wuy1f4n closed 11 months ago

Wuy1f4n commented 1 year ago

情况描述:只有正向http代理(Neo-reGeorg),内网存在log4j,不出网,需要将vps上的端口映射到webshell的内网端口上,请师傅完善

参考工具:https://github.com/SecarmaLabs/chunkyTuna

监听端口,内部网路网络开启端口映射到服务器上;实际测试报错 nocosks

python3 chunkytuna.py http://10.10.1.1/shell.jsp -r 127.0.0.1:1234 -t 0.0.0.0:12345 L

L-codes commented 1 year ago

neoreg 支持 -t 参数正向连接,你可以在服务器上跑frp或者iox等工具实现 反向端口映射,但是我更建议你直接把log4j工具丢服务器上

Wuy1f4n commented 1 year ago

师傅,这个环境比较苛刻,由于目标环境问题(缺少依赖、权限不足等问题),工具不能落地,或者落地报错,frp或者iox等需要目标能出网,现在目标是任何协议都不出网,只有web端口映射外网我能访问到,所以只能用webshell类的

L-codes commented 1 year ago

你用https://github.com/FunnyWolf/pystinger 试试吧,有反向代理

Wuy1f4n commented 1 year ago

看过啦,这个只能支持HTTP协议,其他的需要改

L-codes commented 1 year ago

那还是建议落地文件,不计划弄反向代理