Giter Site home page Giter Site logo

Comments (14)

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

这种手法的关键点是环境变量 LD_PRELOAD,只有 linux 才有这个变量,不支持 windows。

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

我也用centos搭建了,还是不行.

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

image
权限有问题吗

from bypass_disablefunc_via_ld_preload.

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

我也用centos搭建了,还是不行.

x86 or x64?

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

64的

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

我直接全部默认配置 还是不行.

from bypass_disablefunc_via_ld_preload.

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

你贴下 phpinfo() 输出中的 disable_functions 和 safe_mode 的内容,文字版,我测试下。

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

disable_functions | no value | no value

sql.safe_mode | Off | Off

我是直接yum install php 然后测试的

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

大佬可以加个微信交流吗,我也在成都.

from bypass_disablefunc_via_ld_preload.

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

QQ: 3297083841,要得,加起聊。

from bypass_disablefunc_via_ld_preload.

xiaoyiddos avatar xiaoyiddos commented on July 24, 2024

加你了大神~

from bypass_disablefunc_via_ld_preload.

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

原因是 SELinux。

你用 apache 身份运行 id,输出 uid=48(apache) gid=48(apache) groups=48(apache) context=system_u:system_r:httpd_t:s0,看到最后的 context=system_u:system_r:httpd_t:s0没,就是 SELinux 在作祟。

from bypass_disablefunc_via_ld_preload.

Malayke avatar Malayke commented on July 24, 2024

该用户不存在,加不上你啊,我也想研究一下这个漏洞,我之前看到过使用LD_PRELOAD进行提权的文章,这个方法很棒,能提供下这个环境更详细点的信息吗?

我想虚拟机搭建一个相同的环境,学习一下这种方法。

比如是什么系统 , PHP是什么版本,除了 disable_function, 还有需要配置之类的

from bypass_disablefunc_via_ld_preload.

yangyangwithgnu avatar yangyangwithgnu commented on July 24, 2024

该用户不存在,加不上你啊,我也想研究一下这个漏洞,我之前看到过使用LD_PRELOAD进行提权的文章,这个方法很棒,能提供下这个环境更详细点的信息吗?

我想虚拟机搭建一个相同的环境,学习一下这种方法。

比如是什么系统 , PHP是什么版本,除了 disable_function, 还有需要配置之类的

那是 QQ 不是微信 :-)

由于 LD_PRELOAD 的特殊性,既可以用于提权,又能用于绕过 disable_functions 执行命令,我这个 repo. 主要是后者。

from bypass_disablefunc_via_ld_preload.

Related Issues (3)

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.