Search in sources :

Example 1 with PacketForger

use of org.csploit.android.plugins.PacketForger in project android by cSploit.

the class MainFragment method registerPlugins.

private void registerPlugins() {
    if (!System.getPlugins().isEmpty())
        return;
    System.registerPlugin(new RouterPwn());
    System.registerPlugin(new Traceroute());
    System.registerPlugin(new PortScanner());
    System.registerPlugin(new Inspector());
    System.registerPlugin(new ExploitFinder());
    System.registerPlugin(new LoginCracker());
    System.registerPlugin(new Sessions());
    System.registerPlugin(new MITM());
    System.registerPlugin(new PacketForger());
}
Also used : MITM(org.csploit.android.plugins.mitm.MITM) RouterPwn(org.csploit.android.plugins.RouterPwn) Traceroute(org.csploit.android.plugins.Traceroute) Sessions(org.csploit.android.plugins.Sessions) Inspector(org.csploit.android.plugins.Inspector) ExploitFinder(org.csploit.android.plugins.ExploitFinder) PacketForger(org.csploit.android.plugins.PacketForger) LoginCracker(org.csploit.android.plugins.LoginCracker) PortScanner(org.csploit.android.plugins.PortScanner)

Example 2 with PacketForger

use of org.csploit.android.plugins.PacketForger in project android by cSploit.

the class CSploitApplication method onCreate.

@Override
public void onCreate() {
    SharedPreferences themePrefs = getSharedPreferences("THEME", 0);
    Boolean isDark = themePrefs.getBoolean("isDark", false);
    if (isDark)
        setTheme(R.style.DarkTheme);
    else
        setTheme(R.style.AppTheme);
    super.onCreate();
    ACRA.init(this);
    Services.init(this);
    // initialize the system
    try {
        System.init(this);
    } catch (Exception e) {
        // ignore exception when the user has wifi off
        if (!(e instanceof NoRouteToHostException))
            System.errorLogging(e);
    }
    ACRA.setConfig(ACRA.getConfig().setApplicationLogFile(System.getCorePath() + "/cSploitd.log"));
    // load system modules even if the initialization failed
    System.registerPlugin(new RouterPwn());
    System.registerPlugin(new Traceroute());
    System.registerPlugin(new PortScanner());
    System.registerPlugin(new Inspector());
    System.registerPlugin(new ExploitFinder());
    System.registerPlugin(new LoginCracker());
    System.registerPlugin(new Sessions());
    System.registerPlugin(new MITM());
    System.registerPlugin(new PacketForger());
}
Also used : RouterPwn(org.csploit.android.plugins.RouterPwn) SharedPreferences(android.content.SharedPreferences) Traceroute(org.csploit.android.plugins.Traceroute) Sessions(org.csploit.android.plugins.Sessions) PacketForger(org.csploit.android.plugins.PacketForger) LoginCracker(org.csploit.android.plugins.LoginCracker) PortScanner(org.csploit.android.plugins.PortScanner) NoRouteToHostException(java.net.NoRouteToHostException) NoRouteToHostException(java.net.NoRouteToHostException) MITM(org.csploit.android.plugins.mitm.MITM) Inspector(org.csploit.android.plugins.Inspector) ExploitFinder(org.csploit.android.plugins.ExploitFinder)

Example 3 with PacketForger

use of org.csploit.android.plugins.PacketForger in project android by cSploit.

the class MainActivity method onCreate.

@Override
public void onCreate(Bundle savedInstanceState) {
    SharedPreferences themePrefs = getSharedPreferences("THEME", 0);
    Boolean isDark = themePrefs.getBoolean("isDark", false);
    boolean connectivityAvailable;
    if (isDark)
        setTheme(R.style.DarkTheme);
    else
        setTheme(R.style.AppTheme);
    super.onCreate(savedInstanceState);
    setContentView(R.layout.target_layout);
    lv = (ListView) findViewById(R.id.android_list);
    lv.setOnItemClickListener(new ListView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            if (mActionMode != null) {
                ((TargetAdapter) lv.getAdapter()).toggleSelection(position);
                return;
            }
            Target target = (Target) mTargetAdapter.getItem(position);
            System.setCurrentTarget(target);
            new Thread(new Runnable() {

                @Override
                public void run() {
                    startActivityForResult(new Intent(MainActivity.this, ActionActivity.class), WIFI_CONNECTION_REQUEST);
                    overridePendingTransition(R.anim.fadeout, R.anim.fadein);
                }
            }).start();
            Toast.makeText(MainActivity.this, getString(R.string.selected_) + System.getCurrentTarget(), Toast.LENGTH_SHORT).show();
        }
    });
    isWifiAvailable = Network.isWifiConnected(this);
    connectivityAvailable = isWifiAvailable || Network.isConnectivityAvailable(this);
    // startup
    if (!System.isInitialized()) {
        // :(
        if (isWifiAvailable) {
            // retry
            try {
                System.init(MainActivity.this.getApplicationContext());
                System.registerPlugin(new RouterPwn());
                System.registerPlugin(new Traceroute());
                System.registerPlugin(new PortScanner());
                System.registerPlugin(new Inspector());
                System.registerPlugin(new ExploitFinder());
                System.registerPlugin(new LoginCracker());
                System.registerPlugin(new Sessions());
                System.registerPlugin(new MITM());
                System.registerPlugin(new PacketForger());
            } catch (Exception e) {
                if (!(e instanceof NoRouteToHostException))
                    System.errorLogging(e);
                onInitializationError(System.getLastError());
                return;
            }
        }
    } else {
        System.reloadNetworkMapping();
    }
    boolean coreInstalled = System.isCoreInstalled();
    boolean coreBeating = System.isCoreInitialized();
    if (coreInstalled && !coreBeating) {
        coreBeating = startCore();
        if (coreBeating) {
            onCoreBeating();
        } else if (isRootMissing) {
            return;
        }
    }
    if (!connectivityAvailable) {
        if (!coreInstalled) {
            onInitializationError(getString(R.string.no_core_no_connectivity));
            return;
        } else if (!coreBeating) {
            onInitializationError(getString(R.string.heart_attack));
            return;
        }
    }
    if (!coreInstalled) {
        UPDATE_MESSAGE = getString(R.string.missing_core_update);
    } else if (!coreBeating) {
        UPDATE_MESSAGE = getString(R.string.heart_attack_update);
    } else if (!isWifiAvailable) {
        UPDATE_MESSAGE = getString(R.string.no_wifi_available);
    }
    if (connectivityAvailable)
        startUpdateChecker();
    if (coreBeating && isWifiAvailable)
        startNetworkRadar();
    createLayout();
}
Also used : Traceroute(org.csploit.android.plugins.Traceroute) LoginCracker(org.csploit.android.plugins.LoginCracker) NoRouteToHostException(java.net.NoRouteToHostException) Target(org.csploit.android.net.Target) ListView(android.widget.ListView) Inspector(org.csploit.android.plugins.Inspector) ExploitFinder(org.csploit.android.plugins.ExploitFinder) RouterPwn(org.csploit.android.plugins.RouterPwn) SharedPreferences(android.content.SharedPreferences) Sessions(org.csploit.android.plugins.Sessions) PacketForger(org.csploit.android.plugins.PacketForger) Intent(android.content.Intent) PortScanner(org.csploit.android.plugins.PortScanner) ImageView(android.widget.ImageView) View(android.view.View) AdapterView(android.widget.AdapterView) TextView(android.widget.TextView) ListView(android.widget.ListView) SuppressLint(android.annotation.SuppressLint) NoRouteToHostException(java.net.NoRouteToHostException) IOException(java.io.IOException) MITM(org.csploit.android.plugins.mitm.MITM)

Aggregations

ExploitFinder (org.csploit.android.plugins.ExploitFinder)3 Inspector (org.csploit.android.plugins.Inspector)3 LoginCracker (org.csploit.android.plugins.LoginCracker)3 PacketForger (org.csploit.android.plugins.PacketForger)3 PortScanner (org.csploit.android.plugins.PortScanner)3 RouterPwn (org.csploit.android.plugins.RouterPwn)3 Sessions (org.csploit.android.plugins.Sessions)3 Traceroute (org.csploit.android.plugins.Traceroute)3 MITM (org.csploit.android.plugins.mitm.MITM)3 SharedPreferences (android.content.SharedPreferences)2 NoRouteToHostException (java.net.NoRouteToHostException)2 SuppressLint (android.annotation.SuppressLint)1 Intent (android.content.Intent)1 View (android.view.View)1 AdapterView (android.widget.AdapterView)1 ImageView (android.widget.ImageView)1 ListView (android.widget.ListView)1 TextView (android.widget.TextView)1 IOException (java.io.IOException)1 Target (org.csploit.android.net.Target)1