Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why SmaliVM use node.getContext() return String == Unknow #164

Open
HexZZ opened this issue Sep 16, 2021 · 3 comments
Open

Why SmaliVM use node.getContext() return String == Unknow #164

HexZZ opened this issue Sep 16, 2021 · 3 comments

Comments

@HexZZ
Copy link

HexZZ commented Sep 16, 2021

Uploading LSGNIGSQ6X(C6IPQGJDR6.png…

@CalebFenton
Copy link
Owner

Can you provide a bit more context?

@HexZZ
Copy link
Author

HexZZ commented Sep 16, 2021

Can you provide a bit more context?
1
like it

main
String smaliOrDexPath = "C:\\Users\\Administrator\\Desktop\\ApkTool\\classes.dex"; VirtualMachineFactory vmFactory = new VirtualMachineFactory(); // this is Java, so factory VirtualMachine vm = vmFactory.build(smaliOrDexPath); String methodSignature = "Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->run()V"; ExecutionGraph graph; graph = vm.execute(methodSignature);

then on NonInteractiveMethodExecutor.java ExecutionNode node = step(); Breakpoint

return node.getContext ==
Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->()V State: params: 0, locals: 1
v0: type=I, value=164
Class state: Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000; Fields:
Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->O000000000:Ljava/lang/String; = type=Ljava/lang/String;, value=unknown
Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->O00000000:Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity; = type=Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity;, value=unknown
Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->O0000000000:Ljava/lang/String; = type=Ljava/lang/String;, value=unknown
Lcom/sharpshooter/gm2/plugin/LoginSharpshooterActivity$O000000;->ۦ۬ۜ:[S = type=[S, value=null
Class state: Ljava/lang/Runnable; Fields:

i want print smali and locals to "trace.txt" then analyze CFG Unflattening

@HexZZ
Copy link
Author

HexZZ commented Sep 16, 2021

Can you provide a bit more context?
classes.zip
this is dex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants