Skip to content

Instantly share code, notes, and snippets.

@0xswitch
Created October 3, 2019 06:28
Show Gist options
  • Save 0xswitch/65faf1acd26ae03a3b09ee50922fc7e6 to your computer and use it in GitHub Desktop.
Save 0xswitch/65faf1acd26ae03a3b09ee50922fc7e6 to your computer and use it in GitHub Desktop.

Revisions

  1. 0xswitch created this gist Oct 3, 2019.
    11 changes: 11 additions & 0 deletions finding_offset.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    from pwn import *

    elf = ELF("./vuln")

    p = process("./vuln")
    p.sendline(cyclic(200, n=8))
    p.wait()

    core = p.corefile

    print cyclic_find(core.read(core.rsp, 8), n=8)