Capa-scripts: parsing imported classes, static methods, regular methods, and class attributes. #1108
Unanswered
adamstorek
asked this question in
Ideas
Replies: 1 comment 5 replies
-
I think your algorithm would work well. Before we go there though, is this something limiting us right now or causing issues soon? Could we also get away with focusing on just the method calls and/or properties (are they unique enough)? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So far, capa-scripts is only able to parse newly instantiated objects and static methods such as:
However, we would also like to capture regular method calls without following objects around (potentially intractable) such as:
and similarly class attribute assignments such as:
My idea how this could be done without explicitly tracking types and new objects:
Within each function:
This is nowhere near foolproof but it might be good enough - what do you think?
Beta Was this translation helpful? Give feedback.
All reactions