Exploit database

GH-89786c7d19f1094f9762e90b692942e5

25wangj/ftcintothedeep16460

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2019-11358

1,181 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files21

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/command/BoolCommand.java

Java · 961 bytes
package org.firstinspires.ftc.teamcode.command;
import java.util.function.BooleanSupplier;
public class BoolCommand extends Command {
    private Command command;
    private Command onTrue;
    private Command onFalse;
    private BooleanSupplier decide;
    public BoolCommand(BooleanSupplier decide, Command onTrue, Command onFalse) {
        this.decide = decide;
        this.onTrue = onTrue;
        this.onFalse = onFalse;
        subsystems.addAll(onTrue.subsystems);
        subsystems.addAll(onFalse.subsystems);
    }
    @Override
    public void init(double time) {
        command = decide.getAsBoolean() ? onTrue : onFalse;
        command.init(time);
    }
    @Override
    public void run(double time) {
        command.run(time);
    }
    @Override
    public void end(double time, boolean canceled) {
        command.end(time, canceled);
    }
    @Override
    public boolean done(double time) {
        return command.done(time);
    }
}