-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[feature] Menu Action to copy as frida code snippets #1355
Comments
Also adding overloads automatically will be very helpful since it is the most annoying thing while writing frida snipppets. |
@eybisi sure, submit a PR! |
@eybisi The copied code snippet has a problem if the class member name is a unprintable character. For example, the following code will have parsing problems when "onStartCommand" is a unprintable character.
A better way would be something like the following
Or we can encode the characters, like this
|
@only52607 Sounds like a reasonable approach, even if I would prefer to use the JavaScript unicode escaping instead of encoding everything Base64 as this would leave the readable parts of the function name. |
Some classes or methods in this dex file above contain some strange characters, which you can find here or elsewhere.
|
What I would prefer is to just copy the class name in some type of encoding, rather than including it in the code snippet. But jadx doesn't seem to offer the option to just copy the class name, so if I want to copy the class name or method name I have to select and copy it in the source code, and this approach causes problems when strange characters appear. |
This is common obfuscator technique. Even though jadx says those are not valid java name, they are valid actually. Those are Arabic letters. Look for |
Yes, so we need a better way to display these characters in jadx-gui instead of printing them directly, such as by hex or unicode escaping. This makes it easier for us to locate these classes or methods in frida. |
@only52607
I think it should work for the classes.dex you had posted. It bases the latest changes I have implemented for escaping classnames, methodnames and fieldnames (for fiedlnames I don't know if it would work as there is the simple |
I just tested this code snippet on my frida and it works fine. I think it's better than Base64 or other encodings. Nice work. |
In action menu bar when user right clicks to methods/classes there will be option to
copy as frida code snippet
. It will get class name from methodnode, get argument names and create frida code snippet.Example scenario will be : right clicking on onStartCommand creates and saves created text to clipboard :
PR is ready to be fired when we agree on this feature : https://github.com/eybisi/jadx/tree/frida
The text was updated successfully, but these errors were encountered: