use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class MysqlNormalHeaderTestSuite method initialize.
@BeforeClass
public static void initialize() throws Exception {
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: 0");
ConnectionUtil.setMethodInjection(MethodInjection.HEADER);
ConnectionUtil.setTypeRequest("POST");
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class MysqlTimeHeaderTestSuite method initialize.
@BeforeClass
public static void initialize() throws Exception {
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.TIME);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class OracleBlindGetTestSuite 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 + "/oracle_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 SQLServerBlindGetTestSuite 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 + "/sqlserver_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 SQLServerTimeGetTestSuite 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 + "/sqlserver_simulate_get.php");
ParameterUtil.setQueryString(Arrays.asList(new SimpleEntry<String, String>("lib", "1")));
ConnectionUtil.setMethodInjection(MethodInjection.QUERY);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.TIME);
}
Aggregations