Skip to content

Instantly share code, notes, and snippets.

@rkalit
Created July 11, 2020 23:33
Show Gist options
  • Select an option

  • Save rkalit/894181e9f43a74d1281695fb56c5971f to your computer and use it in GitHub Desktop.

Select an option

Save rkalit/894181e9f43a74d1281695fb56c5971f to your computer and use it in GitHub Desktop.
Use to Solve MathSolver KKSI 2019
from pwn import *
r = remote('192.168.3.100',6699)
for i in range(1,11):
r.recvuntil('No: (%d) ' % i)
calc = r.recvuntil('=>', drop=True)
print ('%d %s' % (i , str(eval(calc))))
r.send(str(eval(calc)) + '\n')
print (r.recvall())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment