Package net.continuumsecurity.runner

Source Code of net.continuumsecurity.runner.WConsole

/*******************************************************************************
*    BDD-Security, application security testing framework
*
* Copyright (C) `2014 Stephen de Vries`
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program.  If not, see `<http://www.gnu.org/licenses/>`.
******************************************************************************/
package net.continuumsecurity.runner;


import groovy.ui.Console;
import net.continuumsecurity.Config;
import net.continuumsecurity.web.Application;
import net.continuumsecurity.web.drivers.ProxyFactory;
import net.continuumsecurity.web.drivers.DriverFactory;
import org.apache.log4j.PropertyConfigurator;


public class WConsole {
    Application app;

    public WConsole() {
        PropertyConfigurator.configure("log4j.properties");
        app = Config.createApp();
        app.enableDefaultClient();
    }

    public void run() {
        Console console = new Console();
        console.setVariable("app",app);
        //TODO fixme
        //console.setVariable("driver",app.getDriver());
        console.setVariable("burpDriver",DriverFactory.getDriver(Config.getProxyDriver()));
        console.setVariable("proxy", ProxyFactory.getLoggingProxy());
        console.setVariable("scanner", ProxyFactory.getScanningProxy());
        console.run();
    }

    public static void main(String... args) {
        WConsole c = new WConsole();
        c.run();
    }
}
TOP

Related Classes of net.continuumsecurity.runner.WConsole

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.