use of com.jsql.model.InjectionModel in project jsql-injection by ron190.
the class HeaderTest method initialize.
@BeforeClass
public static void initialize() throws InjectionFailureException {
InjectionModel model = new InjectionModel();
MediatorModel.register(model);
model.displayVersion();
MediatorModel.model().addObserver(new SystemOutTerminal());
ConnectionUtil.setUrlBase("http://" + AbstractTestSuite.HOSTNAME + "/simulate_header.php");
ParameterUtil.setHeader(Arrays.asList(new AbstractMap.SimpleEntry<>("lib", "0")));
ConnectionUtil.setMethodInjection(MethodInjection.HEADER);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
use of com.jsql.model.InjectionModel in project jsql-injection by ron190.
the class InformixNormalGetTestSuite method initialize.
@BeforeClass
public static void initialize() throws InjectionFailureException {
InjectionModel model = new InjectionModel();
MediatorModel.register(model);
model.displayVersion();
MediatorModel.model().addObserver(new SystemOutTerminal());
ConnectionUtil.setUrlBase("http://" + AbstractTestSuite.HOSTNAME + "/informix_simulate_get.php");
ParameterUtil.setQueryString(Arrays.asList(new SimpleEntry<String, String>("lib", "0")));
ConnectionUtil.setMethodInjection(MethodInjection.QUERY);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
Aggregations