Class MediatorStrategy

java.lang.Object
com.jsql.model.injection.strategy.MediatorStrategy

public class MediatorStrategy extends Object
  • Constructor Details

    • MediatorStrategy

      public MediatorStrategy(InjectionModel injectionModel)
  • Method Details

    • getMeta

      public String getMeta()
    • buildPath

      public String buildPath(String urlBase, boolean isUsingIndex, String sqlTrail)
      Build correct data for GET, POST, HEADER. Each can be either raw data (no injection), SQL query without index requirement, or SQL query with index requirement.
      Parameters:
      urlBase - Beginning of the request data
      isUsingIndex - False if request doesn't use indexes
      sqlTrail - SQL statement
      Returns:
      Final data
    • testStrategies

      public boolean testStrategies(AbstractMap.SimpleEntry<String,String> parameterToInject) throws JSqlException
      Find the insertion character, test each strategy, inject metadata and list databases.
      Parameters:
      parameterToInject - to be tested, null when injection point
      Returns:
      true when successful injection
      Throws:
      JSqlException - when no params' integrity, process stopped by user, or injection failure
    • getNormal

      public AbstractStrategy getNormal()
    • getSpecificNormal

      public StrategyInjectionNormal getSpecificNormal()
    • getError

      public StrategyInjectionError getError()
    • getBlind

      public AbstractStrategy getBlind()
    • getMultibit

      public AbstractStrategy getMultibit()
    • getTime

      public AbstractStrategy getTime()
    • getStacked

      public AbstractStrategy getStacked()
    • getStrategies

      public List<AbstractStrategy> getStrategies()
    • getStrategy

      public AbstractStrategy getStrategy()
    • setStrategy

      public void setStrategy(AbstractStrategy strategy)