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
2 answers

Is there a way to identify the object calling a specific method in java?

I need to be able identify the Object which is calling a specific method. So if for example I have the following JLabel l = new JLabel("Hello"); JLabel label = new JLabel("HELLO"); label.setText("BYE"); I need to be able to identify the…
ict1991
  • 2,060
  • 5
  • 26
  • 34
0
votes
1 answer

Why am I getting this error using Soot operations from the Eclipse Soot plug-in?

I am trying out Soot for the first time. I followed the explanation on their website for installing the Eclipse plug-in. It seemed to download just fine. I then tried to create a Java project with a simple Java program so that I could try converting…
jbranchaud
  • 5,909
  • 9
  • 45
  • 70
0
votes
2 answers

Flow analysis for android

Is there a control flow graph generator for Android applications. (preferrably open source) I wish to do some flow analysis on applications. But I could not find any such static analyzer. If there is no such software, can soot be extended to do the…
spin
  • 13
  • 5
0
votes
1 answer

Why SOOT Cannot find the method calls from a dynamic loaded class?

I am a beginner in learning soot and I was tormented by this strange problem: I create a instance of a class and I cannot find its methodcalls. Here is the source code that I want to analyze: package com.example.hello; public class TestInputMain { …
0
votes
0 answers

How to retain Generic Datatype information in Jimple using Java Soot Framework?

How can I retain Generic Datatype information in Java Soot Framework? I think Soot offers some options features where it can be configured that Soot must also include Generic datatype information during Jimple creation. Example: List
akash
  • 1
0
votes
0 answers

How to get references of variables in APK?

I'm doing the static analysis on Android APK file. Given the following source code: protected void OkHttpClientCheck() throws IOException { OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() …
Andrew
  • 1
0
votes
0 answers

Can soot deal with java files can not be compiled?

For example, in the CallGraphs.java file below, the doStuff1 function is not defined, so the file can not be compiled. When I use the command java -cp soot.jar soot.Main -cp .:soot.jar -pp -allow-phantom-refs -allow-phantom-elms -src-prec java…
杨国强
  • 1
  • 1
0
votes
3 answers

How to obtain test cases

Recently I focused on the static analysis software, especially the Indus and and Soot Java frameworks. I want to test these software. Can anyone can provide comprehensive test cases? I think the test cases I write are not typical enough.
Fiary
  • 203
  • 2
  • 11
0
votes
1 answer

Soot: How to analyze a java file in a package?

I have two java files under the tests directory. I use the following code to set up Soot for further analysis(i.e., construct a call graph) but meet an error of are the packages set properly?. Main.java: public class Main { static void…
MissSirius
  • 152
  • 11
0
votes
0 answers

Given a test failure how can you extract all code statements that the test execution ran?

Given a test failure, I have to extract all code statements that the test execution ran. Let's say unit test 1 has failed. I have to extract all the codes it executed. public class Driver { method1 { } method2 { } method3 { } …
Exploring
  • 2,493
  • 11
  • 56
  • 97
0
votes
1 answer

Soot - Map from java class to jimple

With the following code I can get the jimple representation of a java .class file: soot.Main.main(args); SootClass mainClass = Scene.v().getMainClass(); String methodSignature = "void main(java.lang.String[])"; …
0
votes
1 answer

Soot - Get JimpleBody from a CFG

I'd like to get UnitGraph from a Java Class. I load it by ClassFile and get the method_info of main(). Then I create a CFG and try to convert it into a UnitGraph. My method is to get JimpleBody of the CFG and then create a UnitGraph. However, I…
0
votes
1 answer

soot.SootResolver$SootClassNotFoundException: couldn't find class: kotlin.Metadata (is your soot-class-path set properly?)

I am trying to use soot to analyze the kotlin project. I have written a HelloWorld.kt script and compiled it. I bring the snippet of code bellow: fun main(args: Array) { println("Hello World!") } However, when I use soot to…
Hilbob
  • 1
0
votes
1 answer

How to use VTA algorithm to create call graph with soot and spark for java?

I'm new in analysis with soot framework and now I need to implement the VTA algorithm and use it to create call graphs. How can I implement VTA? and how can I use VTA implementation in soot?
0
votes
1 answer

Soot: can Soot analyze .war package?

Soot is a Java optimization framework. I am using Soot to analyze some micro-service projects. Now, all I know is that Soot accepts .jar, .zip, .dex, .apk and source codes as input. However, some of them will be packaged into .war. Does Soot support…
Rick.X
  • 513
  • 5
  • 10
1 2 3
8 9