Skip to content

Commit 5bc0828

Browse files
author
Justine Osborne
committed
fixing all the java plugins i broke last push - properties files were not
being loaded
1 parent b913c61 commit 5bc0828

File tree

7 files changed

+20
-3
lines changed

7 files changed

+20
-3
lines changed

AndroidSSLBypass/asb.jar

295 Bytes
Binary file not shown.

AndroidSSLBypass/defaults.prop

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
adb.location=/home/freeze/android-sdks/platform-tools/adb
1+
adb.location=/home/user/tools/sdk/platform-tools/adb
22

AndroidSSLBypass/libs/ddmlib.jar

10.5 KB
Binary file not shown.

AndroidSSLBypass/libs/tools.jar

245 Bytes
Binary file not shown.

AndroidSSLBypass/plugins/plugins.jar

0 Bytes
Binary file not shown.

AndroidSSLBypass/src/com/isecpartners/android/jdwp/pluginservice/AbstractJDIPlugin.java

+18-1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ public abstract class AbstractJDIPlugin extends QueueAgent implements JDIPlugin
2929
private final static org.apache.log4j.Logger LOGGER = Logger
3030
.getLogger(AbstractJDIPlugin.class.getName());
3131

32+
protected static final String DEFAULT_JAVA_PLUGIN_DIR = "plugins";
33+
3234
protected Event currentEvent = null;
3335
protected ArrayList<EventRequest> eventRequestList = new ArrayList<EventRequest>();
3436
protected boolean mDone = false;
@@ -43,10 +45,25 @@ public abstract class AbstractJDIPlugin extends QueueAgent implements JDIPlugin
4345

4446
protected String basePath = null;
4547

46-
private File propsFile;
48+
private File propsFile = null;
4749

4850
public AbstractJDIPlugin(String name){
4951
this.name = name;
52+
String fname = DEFAULT_JAVA_PLUGIN_DIR + File.separator
53+
+ this.name + ".prop";
54+
this.propsFile = new File(fname);
55+
FileInputStream fis;
56+
try {
57+
fis = new FileInputStream(this.propsFile);
58+
this.properties.load(fis);
59+
} catch (FileNotFoundException e) {
60+
LOGGER.error("could not load properties file, may cause problems for plugins that require it!");
61+
LOGGER.error(e.toString());
62+
} catch (IOException e) {
63+
LOGGER.error("could not load properties file, may cause problems for plugins that require it!");
64+
LOGGER.error(e.toString());
65+
}
66+
5067
}
5168

5269
public void output(String message){

SSLTestApp/src/com/isec/ssltest/SSLTestActivity.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void onCreate(Bundle savedInstanceState) {
5353
}
5454

5555
private InputStream testHttpsUrlPinned() throws IOException, NoSuchAlgorithmException, CertificateException, KeyManagementException, KeyStoreException {
56-
URL url = new URL("https://10.0.2.2/");
56+
URL url = new URL("https://10.0.2.2");
5757
Context context = this.getApplicationContext();
5858
AssetManager assetManager = context.getAssets();
5959

0 commit comments

Comments
 (0)