Giter Site home page Giter Site logo

关于url路由部分的疑问 about jyso HOT 3 CLOSED

qi4l avatar qi4l commented on August 28, 2024
关于url路由部分的疑问

from jyso.

Comments (3)

qi4L avatar qi4L commented on August 28, 2024 1

OK,我加,等有时间全写了

from jyso.

qi4L avatar qi4L commented on August 28, 2024

第一点,可兼容加个参数即可,问下特殊的链构造是那几个。
第二点,溯源也是溯源的我把,对使用者应该没啥影响,实在在意我改成常用的名。
第三点,这样就会非常的僵硬了,对应的短路径只能干一件事情且不好修改。

from jyso.

ViCrack avatar ViCrack commented on August 28, 2024

1、特殊链是LdapAttr。见:https://github.com/5l1v3r1/ysoserial-1/blob/4888f68782953c98de09f81f44f563d9c0cc1376/src/main/java/org/su18/ysuserial/payloads/CommonsBeanutils4.java#L12

构造出来是路径是\,替换成/应该就行

2、理论上是先溯源到你,不过用了特殊的单词也有被WAF当特征的隐患,当然这也只是小建议

3、对于路由转换,我补充下我的设想做法,代码我没看那么细,可能有说的不对的地方

  • 路径加密解密

src\main\java\com\qi4l\jndi\LdapServer.java#processSearchResult处加上解密代码

图片

这个加上去是完全兼容的,不会影响以前的用法,相当于套了一层加密,不会看出调用了什么命令

  • 路径映射

src\main\java\com\qi4l\jndi\HTTPServer.java中增加一个map变量

图片

并且加一个http接口,给外部脚本调用,比如post http://1.1.1.1:3456/setPathAlias?a=xxxxxxxxxxxxxxxxxxxx&b=ok

这样就可以在LdapServer中尝试获取

图片

这个加上去是完全动态的,映射关系随时可以修改,也可以添加多个,而且兼容不会影响以前的用法

from jyso.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.