JSB '19 - P1

View as PDF

Submit solution

Points: 5
Time limit: 5.0s
Memory limit: 64M

Problem type
Allowed languages

Please call the method flag() in the class Secret.

Download the Java agent here.

Download the source code of the agent here.

You can test locally using the command java -javaagent:p1_agent.jar YourClass.

Source Code

File: Agent.java
import java.lang.instrument.*;

class Secret {
    private void flag() {

public class Agent {
    public static void premain(final String agentArgs, final Instrumentation inst) {
        // thank goodness there's nothing here


There are no comments at the moment.