Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple navigation drawer (WIP) #492

Open
wants to merge 22 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
8dc8045
Start adding a navigation drawer. Very basic and...
fat-tire Nov 9, 2015
1594224
use kinda boring but less creative variable names
fat-tire Nov 11, 2015
7d26892
More work on fragments-- make settings work
fat-tire Nov 11, 2015
479865f
fixes null pointer exception when interface name is not valid.
tux-mind Nov 19, 2015
14b7476
fixes NullPointerException when no ActionBar has been associated
tux-mind Nov 19, 2015
6c8ba29
reformat code
tux-mind Nov 19, 2015
06236ad
changed drawer implementation.
tux-mind Nov 19, 2015
1bba604
Merge remote-tracking branch 'origin/develop' into HEAD
fat-tire Nov 20, 2015
92472c2
fixed synchronization on null object ( getActivity returns null while…
tux-mind Nov 20, 2015
929e38a
reformat code
tux-mind Nov 20, 2015
bb11075
redefining UI ( WIP )
tux-mind Nov 27, 2015
53230fc
manage the navigation drawer from AbstractDrawerActivity.
tux-mind Dec 1, 2015
6142bea
dynamic drawer
tux-mind Dec 2, 2015
a5a7a25
transformed Hijacker activity into a fragment
tux-mind Dec 19, 2015
ff6eb57
clean system on exit
tux-mind Dec 21, 2015
731f6fe
create a BaseLiveListAdapter to adapt live lists to UI
tux-mind Dec 21, 2015
d6e3e75
lazy load list.
tux-mind Dec 21, 2015
f59945a
first, simple, dummy port list fragment draft
tux-mind Dec 21, 2015
9451424
changed a little open port represenatation
tux-mind Dec 23, 2015
c6bf68b
use sparse array for port protocols
tux-mind Dec 27, 2015
b11a6a9
use default storage directory when system is not initialized ( heartl…
tux-mind Dec 27, 2015
308b9cd
initialize critical and light stuff when System is firstly accessed.
tux-mind Dec 29, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions cSploit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ allprojects {
mavenCentral()
}
}
apply plugin: 'com.android.application'
apply plugin: 'com.android.application'

dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:23.1.1'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
Expand All @@ -33,7 +34,7 @@ dependencies {
compile 'com.googlecode.juniversalchardet:juniversalchardet:1.0.3'
compile 'org.tukaani:xz:1.5'
compile 'ch.acra:acra:4.6.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:recyclerview-v7:23.1.1'
}

android {
Expand All @@ -55,7 +56,7 @@ android {
targetSdkVersion 22
versionCode 4
versionName "1.7.0-unstable"
if(System.getenv("NIGHTLY_BUILD")) {
if (System.getenv("NIGHTLY_BUILD")) {
versionName += "+" + System.getenv("NIGHTLY_BUILD_COMMIT").substring(0, 7)
}
}
Expand Down
110 changes: 59 additions & 51 deletions cSploit/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.csploit.android">
<manifest package="org.csploit.android"
xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.ACCESS_SUPERUSER"/>
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission
android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="18" />
<uses-permission android:name="android.permission.READ_LOGS" />
android:maxSdkVersion="18"/>
<uses-permission android:name="android.permission.READ_LOGS"/>

<application
android:name=".CSploitApplication"
Expand All @@ -28,113 +28,121 @@
android:label="@string/title_activity_main"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

<activity android:name="org.acra.CrashReportDialog"
android:theme="@style/Theme.Dialog"
android:launchMode="singleInstance"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true" />
<activity
android:name="org.acra.CrashReportDialog"
android:excludeFromRecents="true"
android:finishOnTaskLaunch="true"
android:launchMode="singleInstance"
android:theme="@style/Theme.Dialog"/>

<!-- suppress AndroidDomInspection -->
<service
android:name=".services.UpdateService"
android:enabled="true" />

android:name=".services.UpdateInstaller"
android:enabled="true"/>
<service
android:name=".core.MultiAttackService"
android:enabled="true" />
android:enabled="true"/>

<activity
android:name=".WifiScannerActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".SettingsActivity"
android:theme="@style/Theme.AppCompat.Light"

android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"
android:theme="@style/Theme.AppCompat.Light"/>
<activity
android:name=".gui.DirectoryPicker"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".gui.MsfPreferences"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".gui.Console"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".ActionActivity"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.RouterPwn"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.Traceroute"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.PortScanner"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.Inspector"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.Sessions"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.ExploitFinder"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.mitm.MITM"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.mitm.Sniffer"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.mitm.PasswordSniffer"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.mitm.DNSSpoofing"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
<activity
android:name=".plugins.mitm.hijacker.Hijacker"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.mitm.hijacker.HijackerWebView"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.LoginCracker"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".plugins.PacketForger"
android:configChanges="orientation|screenSize"
android:label="@string/title_activity_main" />
android:label="@string/title_activity_main"/>
<activity
android:name=".gui.FileEdit"
android:label="@string/title_activity_main"
android:parentActivityName=".plugins.mitm.PasswordSniffer" >
android:parentActivityName=".plugins.mitm.PasswordSniffer">
</activity>
<activity
android:name=".TargetListActivity"
android:label="@string/title_target_list"
android:theme="@style/AppTheme">
</activity>
<activity
android:name=".TargetDetailActivity"
android:label="@string/title_target_detail"
android:parentActivityName=".TargetListActivity"
android:theme="@style/AppTheme">
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="org.csploit.android.TargetListActivity"/>
</activity>
</application>

Expand Down
11 changes: 3 additions & 8 deletions cSploit/src/main/java/org/csploit/android/ActionActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

public class ActionActivity extends AppCompatActivity {
import org.csploit.android.gui.fragments.PluginList;

ActionFragment f;
public class ActionActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
Expand All @@ -39,14 +39,9 @@ protected void onCreate(Bundle savedInstanceState) {
if (savedInstanceState != null) {
return;
}
f = new ActionFragment();
PluginList f = new PluginList();
getSupportFragmentManager().beginTransaction()
.add(R.id.mainframe, f).commit();
}
}

@Override
public void onBackPressed() {
f.onBackPressed();
}
}
Loading