Rick.X
Rick.X

Reputation: 633

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 .war analysis? And is there any relevant help info?

Upvotes: 0

Views: 119

Answers (1)

钵钵鸡实力代购
钵钵鸡实力代购

Reputation: 1042

no direct support but not that hard to hack, giving Soot load bytecodes by SourceLocator, pre-defined support types are jar, zip, apk, dex, directory, jrt ,see here, the simplest workaround is by extracting the war file and set inputs (a.k.a set_process_dir) to the unzipped WEB_INFO/classes directory, but you can extend war format supporting by hacking getClassesUnder and getClassSource

Upvotes: 2

Related Questions