Exploit database

GH-8abc690d7197e0bfa71fcc4be39a24eb

27470-sw/ftcrobotcontroller

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 files16

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

TeamCode/src/main/java/org/firstinspires/ftc/teamcode/robot/Defender.java

Java · 822 bytes
package org.firstinspires.ftc.teamcode.robot;

import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.util.RobotLog;

public class Defender
{
  public Defender(HardwareMap map) { this.hwMap = map; }

  public boolean init(){

    boolean success;

    try{
      defendServo = hwMap.get(Servo.class, "Defender");
      success = true;
      setDefendPos(RobotConstants.DefendStow);
    }catch (Exception e)
    {
      RobotLog.ee(TAG, "ERROR: Defend Servo missing");
      success = false;
    }
    return success;
  }

  public void setDefendPos(double pos)
  {
    if (defendServo == null) return;
    defendServo.setPosition(pos);
  }

  private static final String TAG = "SJH_DEF";
  public Servo defendServo;
  protected HardwareMap hwMap;
}