Skip to content

Commit 3cace5c

Browse files
committed
reload ruby and msf environment on ToolBox.reload
1 parent 1c62763 commit 3cace5c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

cSploit/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
33
package="org.csploit.android"
44
android:versionCode="1"
5-
android:versionName="1.4.5" >
5+
android:versionName="1.4.6" >
66

77
<uses-sdk
88
android:minSdkVersion="9"

cSploit/src/org/csploit/android/tools/Msf.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ protected void registerSettingReceiver() {
4242
}
4343

4444
@Override
45-
protected void setupEnvironment() {
45+
public void setupEnvironment() {
4646
super.setupEnvironment();
4747

4848
mEnv[1] += ":" + ExecChecker.msf().getRoot();

cSploit/src/org/csploit/android/tools/Ruby.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,10 @@ protected void unregisterSettingReceiver() {
6565

6666
public void onSettingChanged(String key) {
6767
setEnabled();
68-
69-
if(mEnabled)
70-
setupEnvironment();
7168
}
7269
};
7370

74-
75-
protected void setupEnvironment() {
71+
public void setupEnvironment() {
7672
String rubyRoot;
7773
String path;
7874
mEnv = new String[3];

cSploit/src/org/csploit/android/tools/ToolBox.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,11 @@ public void reload() {
6363
tcpDump.setEnabled();
6464
msf.setEnabled();
6565
networkRadar.setEnabled();
66+
67+
if(ruby.isEnabled())
68+
ruby.setupEnvironment();
69+
70+
if(msf.isEnabled())
71+
msf.setupEnvironment();
6672
}
6773
}

0 commit comments

Comments
 (0)