攻防世界 re ey or - Odoiys/ctf GitHub Wiki

没有弄懂的题目,一种新型的语言,elymas,看了wp之后觉得爆破方法很值得学习一下,直接上脚本:

import sys

import subprocess

ans = []

while True:

`for j in range(256):`

    `if j % 16 == 15:`

      `  print j`
    `p = subprocess.Popen("./ey_or.elf", stdin=subprocess.PIPE, stdout=subprocess.PIPE)`

for x in ans:

p.stdin.write(str(x) + '\n') p.stdin.write(str(j) + '\n')

p.stdin.close()

    `ret = p.wait()`

if ret != 1:

        `ans.append(j)`
        `print ans`
        `break`