use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class MysqlErrobasedHeaderTestSuite 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.ERROR);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class SQLServerNormalGetTestSuite 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", "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 CookieTest method initialize.
// pour chaque vendor/m�thode/strategy
/**
* liste db, table, colonne, value
* valeur � rallonge
* caract�re sp�cial \
* @throws InjectionFailureException
*/
@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_cookie.php");
ParameterUtil.setHeader(Arrays.asList(new AbstractMap.SimpleEntry<>("Cookie", "lib=0")));
ConnectionUtil.setMethodInjection(MethodInjection.HEADER);
MediatorModel.model().beginInjection();
MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
use of com.jsql.view.terminal.SystemOutTerminal in project jsql-injection by ron190.
the class GetTest 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_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 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);
}
Aggregations