Class StrategyMultibit
java.lang.Object
com.jsql.model.injection.strategy.AbstractStrategy
com.jsql.model.injection.strategy.StrategyMultibit
-
Field Summary
Fields inherited from class com.jsql.model.injection.strategy.AbstractStrategy
FORMAT_CHECKING_STRATEGY, FORMAT_SKIP_STRATEGY_DISABLED, FORMAT_STRATEGY_NOT_IMPLEMENTED, injectionModel, isApplicable, KEY_LOG_CHECKING_STRATEGY, KEY_LOG_VULNERABLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidChange model strategy to current applicable strategy only when not already set.voidallow(int... i) Inform the view that this strategy can be used.voidTest if this strategy can be used to inject SQL.getName()Get the injection strategy name.Get number of characters you can obtain from the strategy.inject(String sqlQuery, String startPosition, AbstractSuspendable stoppable, String metadataInjectionProcess) Start the strategy work.voidunallow(int... i) Inform the view that this strategy can't be used.Methods inherited from class com.jsql.model.injection.strategy.AbstractStrategy
isApplicable, logChecking, markVulnerability, setApplicable, toString
-
Constructor Details
-
StrategyMultibit
-
-
Method Details
-
checkApplicability
Description copied from class:AbstractStrategyTest if this strategy can be used to inject SQL.- Specified by:
checkApplicabilityin classAbstractStrategy- Throws:
StoppedByUserSlidingException
-
allow
public void allow(int... i) Description copied from class:AbstractStrategyInform the view that this strategy can be used.- Specified by:
allowin classAbstractStrategy
-
unallow
public void unallow(int... i) Description copied from class:AbstractStrategyInform the view that this strategy can't be used.- Specified by:
unallowin classAbstractStrategy
-
inject
public String inject(String sqlQuery, String startPosition, AbstractSuspendable stoppable, String metadataInjectionProcess) throws StoppedByUserSlidingException Description copied from class:AbstractStrategyStart the strategy work.- Specified by:
injectin classAbstractStrategy- Returns:
- Source code
- Throws:
StoppedByUserSlidingException
-
activateWhenApplicable
public void activateWhenApplicable()Description copied from class:AbstractStrategyChange model strategy to current applicable strategy only when not already set. Union > Stacked > Error > Multibit > Blind > Time- Specified by:
activateWhenApplicablein classAbstractStrategy
-
getPerformanceLength
Description copied from class:AbstractStrategyGet number of characters you can obtain from the strategy.- Specified by:
getPerformanceLengthin classAbstractStrategy
-
getName
Description copied from class:AbstractStrategyGet the injection strategy name.- Specified by:
getNamein classAbstractStrategy
-