JSB '19 - P1

View as PDF

Submit solution

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

Author:
Problem type
Allowed languages
Java

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() {
        System.out.println("CTF-00000000000000000000000000000000");
    }
};

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

Comments

There are no comments at the moment.