secure-software-engineering / droidforce Goto Github PK
View Code? Open in Web Editor NEWDroidForce Project Repository. See our ARES'2014 paper for the details on DroidForce.
License: GNU Lesser General Public License v2.1
DroidForce Project Repository. See our ARES'2014 paper for the details on DroidForce.
License: GNU Lesser General Public License v2.1
I changed my SDK few days ago for professional reason and reinstalled it. Tried to instrument from Eclipse as well from my Server and I get this error:
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/MoreObjects
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:91)
at org.jf.dexlib2.DexFileFactory.loadDexFile(DexFileFactory.java:72)
at soot.DexClassProvider.classesOfDex(DexClassProvider.java:121)
at soot.DexClassProvider.readDexFile(DexClassProvider.java:97)
at soot.DexClassProvider.buildDexIndex(DexClassProvider.java:88)
at soot.DexClassProvider.find(DexClassProvider.java:56)
at soot.SourceLocator.getClassSource(SourceLocator.java:75)
at soot.SootResolver.bringToHierarchy(SootResolver.java:209)
at soot.SootResolver.bringToSignatures(SootResolver.java:266)
at soot.SootResolver.bringToBodies(SootResolver.java:304)
at soot.SootResolver.processResolveWorklist(SootResolver.java:167)
at soot.SootResolver.resolveClass(SootResolver.java:131)
at soot.Scene.tryLoadClass(Scene.java:679)
at soot.Scene.loadBasicClasses(Scene.java:1339)
at soot.Scene.loadNecessaryClasses(Scene.java:1418)
at de.ecspride.Settings.initialiseSoot(Settings.java:120)
at de.ecspride.Main.main(Main.java:44)
Caused by: java.lang.ClassNotFoundException: com.google.common.base.MoreObjects
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 17 more
I guess that this error only happens on my installation but it would kind of critical that I success in solving it? Does someone has an idea? It appears to be related to guava
but this library is exported in the heros
project...
Good afternoon,
As a TUM Student, I take part in the Securing Android practical course.
Therefore, we're trying to instrument many APK from the FDroid repository (Open Source Android Repository) and for some unknown reason we get this error:
Exception in thread "main" java.lang.RuntimeException: getInvokeExpr() called with no invokeExpr present!
at soot.jimple.internal.AbstractStmt.getInvokeExpr(AbstractStmt.java:56)
at de.ecspride.pep.PolicyEnforcementPoint.instrumentSourceToSinkConnections(PolicyEnforcementPoint.java:363)
at de.ecspride.pep.PolicyEnforcementPoint.doAccessControlChecks(PolicyEnforcementPoint.java:198)
at de.ecspride.pep.PolicyEnforcementPoint.onResultsAvailable(PolicyEnforcementPoint.java:139)
at soot.jimple.infoflow.Infoflow.runAnalysis(Infoflow.java:415)
at soot.jimple.infoflow.Infoflow.computeInfoflow(Infoflow.java:137)
at soot.jimple.infoflow.android.SetupApplication.runInfoflow(SetupApplication.java:698)
at de.ecspride.Main.runFlowDroid(Main.java:114)
at de.ecspride.Main.main(Main.java:84)
The APK I tried can be found here:
https://f-droid.org/repo/com.doomy.overflow_4.apk
Did we miss something or is it really a bug in the InstrumentationPEP ?
Good afternoon,
As a TUM Student, I take part in the Securing Android
Praktikum.
Therefore, we're trying to instrument many APK from the FDroid repository (Open Source Android Repository) and for some unknown reason (even if the app is pretty trivial), we get this error:
java.io.FileNotFoundException: ./sootOutput/AndroidManifest.xml (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at soot.jimple.infoflow.android.axml.ApkHandler.addFilesToApk(ApkHandler.java:213)
at soot.jimple.infoflow.android.axml.ApkHandler.addFilesToApk(ApkHandler.java:121)
at de.ecspride.util.UpdateManifestAndCodeForWaitPDP.replaceManifest(UpdateManifestAndCodeForWaitPDP.java:161)
at de.ecspride.Main.runFlowDroid(Main.java:150)
at de.ecspride.Main.main(Main.java:84)
Exception in thread "main" java.lang.RuntimeException: error when writing new manifest: java.io.FileNotFoundException: ./sootOutput/AndroidManifest.xml (No such file or directory)
at de.ecspride.util.UpdateManifestAndCodeForWaitPDP.replaceManifest(UpdateManifestAndCodeForWaitPDP.java:164)
at de.ecspride.Main.runFlowDroid(Main.java:150)
at de.ecspride.Main.main(Main.java:84)
The Instrumented apk, can be found there
Did we miss something or is it really a bug in the InstrumentationPEP
Hey,
I think you removed the -d option from the parsing of the command line (InstrumentationPEP/Settings.java
) but it remains in the help (printHelp
).
It would be actually nice to have this debug option if possible! ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.