AIS3 EOF 2021 Writeup

Chumy | Jan 16, 2022 min read

leetcall

題目

image

限制

image

payload

# Problem 1: Hello
print(getattr("Hello, {:}!", 'format')(getattr('!\nHello, ', 'join')(getattr(getattr(open(0),'read')(),'splitlines')())))

# Problem 2: Fibonacci
print(getattr('\n','join')(map(str,map(round,map(getattr(0.4472135954999579,'__mul__'),map(getattr(1.618033988749895,'__pow__'),map(int,getattr(open(0),'readlines')())))))))

# Problem 3: FizzBuzz
getattr('','format')(setattr(__builtins__,'a',range(1,10001)),setattr(__builtins__,'b',list(map(bool,map(getattr(3,'__rmod__'),a)))),setattr(__builtins__,'c',list(map(bool,map(getattr(5,'__rmod__'),a)))),print(getattr('\n','join')(map(getattr(str,'__add__'),map(getattr(str,'__add__'),map(getattr(str,'__mul__'),map(str,a),map(getattr(bool,'__and__'),b,c)),map(getattr('Fizz','__mul__'),map(getattr(0,'__eq__'),b))),map(getattr('Buzz','__mul__'),map(getattr(0,'__eq__'),c))))))

image

flag

FLAG{actually_you_can_also_solve_those_leetcode_challenges_in_this_way:D}

SSRF Challenge or Not?

題目

image

網址

https://ssrf.h4ck3r.quest/

解題

image image image image image image image image image image image

flag

FLAG{well, maybe not? XD}