---
# System prepended metadata

title: 2019/12/03

---

# 2019/12/03
- 完成 ta.foxo.tw 的 pwntools，並附上程式碼
>![](https://i.imgur.com/xglQW3O.png)

```python=
from pwn import*

#r = process("./pwntools")
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()

```
