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

String Comparison API hook #104

Open
brunoaduarte opened this issue Nov 22, 2022 · 2 comments
Open

String Comparison API hook #104

brunoaduarte opened this issue Nov 22, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@brunoaduarte
Copy link
Contributor

Shouldn't the args be printed in the args fields instead of only their types?

[API_Monitor]
{
  "category": "String Comparison",
  "class": "java.lang.String",
  "method": "equals",
  "args": "[\"<instance: java.lang.Object, $className: java.lang.String>\"]",
  "returnValue": "true",
  "calledFrom": "\u0007"
}
@brunoaduarte
Copy link
Contributor Author

brunoaduarte commented Nov 22, 2022

Hi @m0bilesecurity , how can I print the string of the mapped keys and values? for Input and Output instead of the type

Class: com.facebook.msys.mci.NetworkUtils
Method: public static android.util.Pair httpHeaderMapToKeysAndValues(java.util.Map)
Called by: com.facebook.msys.mci.UrlResponse.<init>(:290439)
Input: [object Object]
Output: Pair{[Ljava.lang.String;@e41046b [Ljava.lang.String;@6c9abc8}
StackTrace:
        at com.facebook.msys.mci.NetworkUtils.httpHeaderMapToKeysAndValues(Native Method)
        at X.1dq.A00(:328004)
        at com.facebook.redex.RunnableRunnableShape3S0300000_I1.run(:668801)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at com.facebook.redex.RunnableRunnableShape10S0200000_I0_8.run(:508286)
        at java.lang.Thread.run(Thread.java:764)

@m0bilesecurity
Copy link
Owner

Ciao @brunoaduarte, you need to analyse every object one by one.
Do you have some time to improve the API_Monitor script?

function api_monitor_Android(api_to_monitor)

Thanks

@m0bilesecurity m0bilesecurity added the enhancement New feature or request label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants