---
# System prepended metadata

title: 2019/12/03
tags: [108 SecureCoding]

---

# 2019/12/03
###### tags: `108 SecureCoding`

- 完成 ta.foxo.tw 的 pwntools，並附上程式碼
````
from pwn import *
r = remote("140.134.25.138",20000)
for i in range (0,100):
    data = r.recvline().split()
    result = 0
    print data
    if (data[1]=="+"):
        result = int(data[0])+int(data[2])
    elif (data[1]=="-"):`
        result = int(data[0])-int(data[2])
    else :`
        result = int(data[0])*int(data[2])
    r.sendline(str(result))
print r.recvline
````
![](https://i.imgur.com/1YrWzSa.png)
