pattern
This task was part of the TFC CTF 2022 competition.
This is a basic command injection challenge. Just review the provided source code, and you'll find that you need to exploit the message
object of Message
class.
The source code shows that the __repr__
method is being set to the same function as __str__
. This means that when repr(message)
or str(message)
is called, it returns the message
string. So you need to manipulate how the message
string is processed.
Last updated