use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class PostTest 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_post.php");
ParameterUtil.setRequest(Arrays.asList(new SimpleEntry<String, String>("lib", "0")));
ConnectionUtil.setMethodInjection(MethodInjection.REQUEST);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class CubridNormalGetTestSuite 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 + "/cubrid_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);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class DB2BlindGetTestSuite 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 + "/db2_simulate_get.php");
ParameterUtil.setQueryString(Arrays.asList(new SimpleEntry<String, String>("lib", "1")));
ConnectionUtil.setMethodInjection(MethodInjection.QUERY);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.BLIND);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class DB2NormalGetTestSuite 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 + "/db2_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);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class MysqlBlindHeaderTestSuite method initialize.
@BeforeClass
public static void initialize() throws MalformedURLException {
InjectionModel model = new InjectionModel();
MediatorModel.register(model);
model.displayVersion();
MediatorModel.model().addObserver(new SystemOutTerminal());
PreferencesUtil.setNotTestingConnection(true);
ParameterUtil.initQueryString("http://" + AbstractTestSuite.HOSTNAME + "/simulate_header.php");
ParameterUtil.initRequest("");
ParameterUtil.initHeader("lib: 1*");
ConnectionUtil.setMethodInjection(MethodInjection.HEADER);
ConnectionUtil.setTypeRequest("POST");
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.BLIND);
}
Aggregations