from pwn import *
# io = process('../src/chall.py')
io = remote('challs.n00bzunit3d.xyz', 13541)
def solve(x,y):
possible = []
answer = 0
for i in range(1,y):
possible.append(str(i))
for i in possible:
answer += i.count(str(x))
return answer
for i in range(1,101):
if i > 1:
io.readline()
io.readline()
io.readuntil(b'How many ')
line = io.readline().strip()
x = chr(int(line[0]))
y = int(line.replace(f"{x}'s appear till ".encode(),b"").replace(b"?",b""))
answer = solve(x,y)
io.sendline(str(answer).encode())
io.interactive()
Numbers
Kyrie-Lrving 2024-11-04 18:01:22 17 0
作者:Kyrie-Lrving
40
提交0
收入相关WriteUP
-
SusCTF2017-Crack Zip
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 3年前
-
SusCTF2017-misc1 Writeup
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 3年前
-
2018-网鼎杯-mirror
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前
-
强网先锋打野
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前
-
被加密的生产流量
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前