secure-software-engineering / FlowDroid

FlowDroid Static Data Flow Tracker
GNU Lesser General Public License v2.1
1.02k stars 292 forks source link

Entry Point #629

Closed juLialily closed 1 year ago

juLialily commented 1 year ago

Hi, i'm trying to analyze a Java program with Flowdroid. Until now, i have used DefaultEntryPointCreator. I have defined like this <packagename.classname: void main(java.lang.String[])> . But i want to implement to find class automatically without defining class name. Is there any way to automatically find entry point?

StevenArzt commented 1 year ago

We don't have that yet. There may be multiple classes with main methods in your Java program. You could implement logic that assumes that there is only such class, which might work for at least some program. You can also parse the JARs manifest to check whether it defines a main class (that's what our commercial code scanner does).

juLialily commented 1 year ago

Thanks for your reply:)