摘要: #介绍 在C中,整数有短整型 (short),整型 (int),长整型 (long)三种类型,如下所示: 类型 字节 范围 short int 2byte(word) 0 ~ 32767(0 ~ 0x7fff) -32768 ~ -1(0x8000 ~ 0xffff) unsigned short 阅读全文
posted @ 2020-08-04 23:16 PwnKi 阅读(914) 评论(0) 推荐(0) 编辑
摘要: ##exp from pwn import * context.binary = './b0verfl0w' #io = process('./b0verfl0w') io = remote('node3.buuoj.cn','27459') jmp_esp = 0x8048504 shellcod 阅读全文
posted @ 2020-08-04 14:38 PwnKi 阅读(380) 评论(0) 推荐(0) 编辑
摘要: ##exp from pwn import * #context.log_level ='debug' elf = ELF('./oneshot_tjctf_2016') #io = process('./oneshot_tjctf_2016') io = remote('node3.buuoj.c 阅读全文
posted @ 2020-08-04 13:42 PwnKi 阅读(286) 评论(0) 推荐(0) 编辑
摘要: ##思路 利用unlink分配到存储chunk的ptr数组处,改chunk的地址为got表地址即可泄露libc,然后通过edit函数将atoi_got改为system函数的地址,让程序再次执行atoi,并输入参数"/bin/sh\x00",即执行system("/bin/sh")拿shell。 ## 阅读全文
posted @ 2020-08-04 10:58 PwnKi 阅读(419) 评论(0) 推荐(0) 编辑