use of com.jsql.model.injection.strategy.blind.InjectionBlind in project jsql-injection by ron190.
the class StrategyInjectionBlind method checkApplicability.
@Override
public void checkApplicability() throws StoppedByUserSlidingException {
if (MediatorModel.model().getVendor().instance().sqlTestBlindFirst() == null) {
LOGGER.info("No Blind strategy known for " + MediatorModel.model().getVendor());
} else {
LOGGER.trace(I18n.valueByKey("LOG_CHECKING_STRATEGY") + " Blind...");
this.blind = new InjectionBlind();
this.isApplicable = this.blind.isInjectable();
if (this.isApplicable) {
LOGGER.debug(I18n.valueByKey("LOG_VULNERABLE") + " Blind injection");
this.allow();
Request requestMessageBinary = new Request();
requestMessageBinary.setMessage(Interaction.MESSAGE_BINARY);
requestMessageBinary.setParameters(this.blind.getInfoMessage());
MediatorModel.model().sendToViews(requestMessageBinary);
} else {
this.unallow();
}
}
}
Aggregations