Exploit database

GH-5f0eaed843b4b2cc77a960347b2c0cdd

aaronhero03/ftcteleoperate

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 files7

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/PruebaCore.java

Suggested starting fileJava · 1,387 bytes
    package org.firstinspires.ftc.teamcode;

    import com.qualcomm.robotcore.eventloop.opmode.Disabled;
    import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
    import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
    import com.qualcomm.robotcore.hardware.DcMotor;
    import com.qualcomm.robotcore.hardware.DcMotorEx;
    import com.qualcomm.robotcore.hardware.DcMotorSimple;

    @Disabled
    @TeleOp
    public class PruebaCore extends LinearOpMode {

        DcMotor Arm;

        @Override
        public void runOpMode() throws InterruptedException {

            Arm = hardwareMap.get(DcMotor.class, "Arm");
            Arm.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);
            Arm.setTargetPosition(0);
            Arm.setMode(DcMotor.RunMode.RUN_TO_POSITION);
            ((DcMotorEx)Arm).setVelocity(100);
            Arm.setDirection(DcMotorSimple.Direction.REVERSE);

            waitForStart();
            if (isStopRequested()) return;

            while(opModeIsActive()){
                if(gamepad1.y){
                    Arm.setTargetPosition(125);
                }
                /*
                else if(gamepad1.a){
                    Arm.setTargetPosition(0);
                }
                */
                telemetry.addData("Arm: ", Arm.getCurrentPosition());
                telemetry.update();
            }
        }
    }