Class MediatorStrategy
java.lang.Object
com.jsql.model.injection.strategy.MediatorStrategy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionBuild correct data for GET, POST, HEADER.getBlind()
getError()
getMeta()
getTime()
void
setStrategy
(AbstractStrategy strategy) boolean
testStrategies
(AbstractMap.SimpleEntry<String, String> parameterToInject) Find the insertion character, test each strategy, inject metadata and list databases.
-
Constructor Details
-
MediatorStrategy
-
-
Method Details
-
getMeta
-
buildPath
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 dataisUsingIndex
- False if request doesn't use indexessqlTrail
- SQL statement- Returns:
- Final data
-
testStrategies
public boolean testStrategies(AbstractMap.SimpleEntry<String, String> parameterToInject) throws JSqlExceptionFind 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
-
getSpecificNormal
-
getError
-
getBlind
-
getMultibit
-
getTime
-
getStacked
-
getStrategies
-
getStrategy
-
setStrategy
-