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 73 0
作者:Kyrie-Lrving
41
提交0
收入相关WriteUP
-
SusCTF2017-Crack Zip
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 3年前
-
SusCTF2017-misc1 Writeup
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 3年前
-
一张含有信息的图片
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前
-
traffic
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前
-
Xp0intCTF-2017-重重flag背后隐藏的秘密
***收费WriteUP请购买后查看,VIP用户可免费查看***
- MISC
- 1年前