Questions tagged [soot]

Soot is an open source Java optimization framework.

Soot is an open source Java optimization framework that provides different intermediate representations for Java bytecode. Besides optimization, Soot can be used for static analyses and bytecode manipulation.

GitHub home page @ github.com
Legacy home page @ sable.mcgill.ca

131 questions
0
votes
1 answer

Using FlowDroid programmatically with the Soot framework?

I am working on a Java project which aims to perform forward slicing technique using the Soot framework . The global picture of my project is to convert some bytecode files to Jipmle form and then perform forward slicing technique accordingly,…
ANter
  • 1
  • 3
0
votes
1 answer

How can I run a Jimple file?

I used soot-2.5.0 and generated a Test.Jimple file. Now I want to run it but I just can't figure out how. I also have a Test.Class file. At first I thought maybe it contains the instructions that I added (the ones that can be seen in the Jimple…
Nevo Mashiach
  • 79
  • 1
  • 4
0
votes
1 answer

How to get the end of a catch block with Soot?

I am trying to do java bytecode analysis for try/catch with Soot. I can get the statements in try block and the first statement of the catch block, but I can't know where the catch block end. How can I get the end statement?
panQAQ
  • 1
0
votes
1 answer

Instrumenting java class using soot

I'm trying to instrument byte code by converting it to jimple, adding code lines to jimple and compiling the jimple back to byte code. The problem is that I can't compile the jimple code back to byte code at all, is it possible?
Nitzan Farhi
  • 175
  • 2
  • 12
0
votes
2 answers

Moving all statements from one method to another

So I have a Method public modifiers Foo foo(Bar bar){ blah; blah; veryInterestingStmt; moreBlah(); return XYZ; } I now want to split this method s.t. everything in its body is extracted into a separate method…
User1291
  • 7,664
  • 8
  • 51
  • 108
0
votes
2 answers

Failed to load java.lang.CharSequence error

I tried to run this command using Java version 8 on windows. java -cp soot.jar soot.Main -cp ".;C:\Program Files\Java\jre1.8.0_151\lib\rt.jar" Example_4 I keep getting: Exception in thread "main" java.lang.Error: Error: Failed to load…
0
votes
1 answer

Can I use JDT to generate control flow graph?

Does JDT provide any APIs to generate control flow graph? I used soot to generate control flow graph,but can I use JDT to generate control flow graph?
0
votes
2 answers

How can I set up Soot when using it as a library?

I want to use Soot library to build an SSA from *.java file. But all the examples I found use Soot as standalone tool, not library. Can anyone give me example hot to do it in program? For a start I am just trying to load my class from the source…
kivi
  • 379
  • 1
  • 5
  • 17
0
votes
0 answers

adding throw of a new RuntimeException

So I'm trying to insert a RuntimeException in soot and I've written a method to help me do just that: private static final RefType STRING_TYPE = RefType.v("java.lang.String"); private static final RefType ERROR_TYPE =…
User1291
  • 7,664
  • 8
  • 51
  • 108
0
votes
2 answers

Soot : no callgraph present in Scene ! Failed to apply jb

Using Soot, I am trying to build the call graph. To my knowledge, the problem was that, dealing with APIs, there are no main methods to be used as entrypoints. I check more thoroughly what Soot was loading. The classes used are "correctly loaded" (I…
0
votes
1 answer

How to build and run Flowdroid and use it to generate static function call graph?

I wish to generate a static function call graph for API calls in an android application after its decompilation using APK tool. I searched for ways for doing the same and I found Flowdroid. I downloaded github projects for Jasmin, Heros, Soot,…
0
votes
1 answer

Soot get methodbodies of basic classes

I wrote an small side-effect detection for java using soot. it delivers me the expected output for functions i wrote on my own. But for basic classes (java.lang., java.awt.) it doesn't work. I want to analyse the following function with Soot: public…
osanger
  • 2,276
  • 3
  • 28
  • 35
0
votes
2 answers

SOOT - CompilationDeathException (and a phantom army)

here is the command I use on WIndows 10 command shell : java -cp .\soot-2.5.0.jar soot.Main -cp ".;R:\...\OCLRuler\lib;C:\...\jdk1.8.0_144\bin" -pp -process-dir R:\...\OCLRuler\src\ -src-prec java -d R:\...\test\soot -allow-phantom-refs…
0
votes
1 answer

Soot plugin and command line - windows - jdk1.7

I've created a simple plugin following the instructions found here and here. However, when I launch Soot from command line I get an error (I also get a similar error when using the full path of the jars) C:\..\folder>java -cp…
0
votes
2 answers

How to get the subclass of a class by soot?

I can get the superclass of a class by SootClass.getSuperclass(), but I don't know how to get its subclass. Have I need to load the subclass first? There is no getSubclass() function. Thanks!
1 2 3
8 9