Class StrategyInjectionTime
java.lang.Object
com.jsql.model.injection.strategy.AbstractStrategy
com.jsql.model.injection.strategy.StrategyInjectionTime
-
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Change model strategy to current applicable strategy only when not already set.void
allow
(int... i) Inform the view that this strategy can be used.void
Test 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.void
unallow
(int... i) Inform the view that this strategy can't be used.Methods inherited from class com.jsql.model.injection.strategy.AbstractStrategy
isApplicable, markVulnerability, setApplicable, toString
-
Constructor Details
-
StrategyInjectionTime
-
-
Method Details
-
checkApplicability
Description copied from class:AbstractStrategy
Test if this strategy can be used to inject SQL.- Specified by:
checkApplicability
in classAbstractStrategy
- Throws:
StoppedByUserSlidingException
-
allow
public void allow(int... i) Description copied from class:AbstractStrategy
Inform the view that this strategy can be used.- Specified by:
allow
in classAbstractStrategy
-
unallow
public void unallow(int... i) Description copied from class:AbstractStrategy
Inform the view that this strategy can't be used.- Specified by:
unallow
in classAbstractStrategy
-
inject
public String inject(String sqlQuery, String startPosition, AbstractSuspendable stoppable, String metadataInjectionProcess) throws StoppedByUserSlidingException Description copied from class:AbstractStrategy
Start the strategy work.- Specified by:
inject
in classAbstractStrategy
- Returns:
- Source code
- Throws:
StoppedByUserSlidingException
-
activateWhenApplicable
public void activateWhenApplicable()Description copied from class:AbstractStrategy
Change model strategy to current applicable strategy only when not already set. Normal > Stacked > Error > Multibit > Blind > Time- Specified by:
activateWhenApplicable
in classAbstractStrategy
-
getPerformanceLength
Description copied from class:AbstractStrategy
Get number of characters you can obtain from the strategy.- Specified by:
getPerformanceLength
in classAbstractStrategy
-
getName
Description copied from class:AbstractStrategy
Get the injection strategy name.- Specified by:
getName
in classAbstractStrategy
-