pwnable.kr shellshock之write up

上源代码:

#include <stdio.h>
int main(){
    setresuid(getegid(), getegid(), getegid());
    setresgid(getegid(), getegid(), getegid());
    system("/home/shellshock/bash -c 'echo shock_me'");
    return 0;
}

感觉没什么思路,百度查一下shellshock,是一个破壳漏洞,参考链接:

http://www.freebuf.com/articles/system/45390.html

根据链接提供的利用方法写出语句:

图片.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容