JordanSamhi / JuCify

Apache License 2.0
24 stars 9 forks source link

How to generate a control flow diagram using JuCify? #14

Open 2315433606 opened 9 months ago

2315433606 commented 9 months ago

Hello, can I get a big control flow diagram with JuCify? I used taint analysis but didn't know we got a control flow diagram.

JordanSamhi commented 9 months ago

Hi,

Yes of course you can get a CFG. You can modify JuCify or use it as a library (but you would have to slightly modify it I think, I do not have it right now to do that). Before trigerring the Taint Analysis which you can deactivate, you can get the CFG for single methods.

2315433606 commented 9 months ago

Okay, thank you very much for your reply, which means that if I want to get CFG, I need to make some changes to JuCify myself, so can we get DFG? Because we did a stain analysis, I was interested in DFG, but I haven't been able to find where it is.

JordanSamhi commented 9 months ago

JuCify does not directly provide a DFG but it is built on top of Soot, it means if Soot (or Flowdroid) provide a DFG, then JuCify will provide a DFG. Otherwise you have to build it yourself.

2315433606 commented 9 months ago

Ok, I see, thank you very much for your reply