Search in sources :

Example 11 with InjectionModel

use of com.jsql.model.InjectionModel 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);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Example 12 with InjectionModel

use of com.jsql.model.InjectionModel in project jsql-injection by ron190.

the class OracleNormalGetTestSuite 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", "0")));
    ConnectionUtil.setMethodInjection(MethodInjection.QUERY);
    MediatorModel.model().beginInjection();
    MediatorModel.model().setStrategy(StrategyInjection.NORMAL);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Example 13 with InjectionModel

use of com.jsql.model.InjectionModel in project jsql-injection by ron190.

the class PostgreBlindGetTestSuite 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 + "/pg_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);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Example 14 with InjectionModel

use of com.jsql.model.InjectionModel in project jsql-injection by ron190.

the class PostgreNormalGetTestSuite 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 + "/pg_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);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Example 15 with InjectionModel

use of com.jsql.model.InjectionModel in project jsql-injection by ron190.

the class PostgreTimeGetTestSuite 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 + "/pg_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);
}
Also used : InjectionModel(com.jsql.model.InjectionModel) SimpleEntry(java.util.AbstractMap.SimpleEntry) SystemOutTerminal(com.jsql.view.terminal.SystemOutTerminal) BeforeClass(org.junit.BeforeClass)

Aggregations

InjectionModel (com.jsql.model.InjectionModel)22 SystemOutTerminal (com.jsql.view.terminal.SystemOutTerminal)21 BeforeClass (org.junit.BeforeClass)21 SimpleEntry (java.util.AbstractMap.SimpleEntry)15 JFrameView (com.jsql.view.swing.JFrameView)1 AWTError (java.awt.AWTError)1 Dimension (java.awt.Dimension)1 HeadlessException (java.awt.HeadlessException)1