Search in sources :

Example 1 with InjectionBlind

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();
        }
    }
}
Also used : InjectionBlind(com.jsql.model.injection.strategy.blind.InjectionBlind) Request(com.jsql.model.bean.util.Request)

Aggregations

Request (com.jsql.model.bean.util.Request)1 InjectionBlind (com.jsql.model.injection.strategy.blind.InjectionBlind)1