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

rabin2 -qc is not exactly quiet #14147

Closed
radare opened this issue May 24, 2019 · 1 comment
Milestone

Comments

@radare
Copy link
Collaborator

@radare radare commented May 24, 2019

imho it should list the classnames only, without any offset or range at all

current ouput:

0x000ab75c [0x00244e48 - 0x00244ea2] Lkotlin/jvm/internal/MutableLocalVariableReference Lkotlin/jvm/internal/MutablePropertyReference0;
0x000ab77c [0x00244eb4 - 0x00244f64] Lkotlin/jvm/internal/MutablePropertyReference0Impl Lkotlin/jvm/internal/MutablePropertyReference0;
0x000ab79c [0x0024508c - 0x0024514a] Lkotlin/jvm/internal/MutablePropertyReference1Impl Lkotlin/jvm/internal/MutablePropertyReference1;
0x000ab7bc [0x00245274 - 0x0024533c] Lkotlin/jvm/internal/MutablePropertyReference2Impl Lkotlin/jvm/internal/MutablePropertyReference2;
0x000ab7dc [0x0025a6d8 - 0x0025aa74] Lkotlin/text/StringsKt__StringNumberConversionsKt Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;
0x000ab7fc [0x0021f4f4 - 0x0021f6a4] Lkotlin/collections/CollectionsKt__ReversedViewsKt Lkotlin/collections/CollectionsKt__MutableCollectionsKt;
0x000ab81c [0x0025aa84 - 0x0025bb5c] Lkotlin/text/StringsKt__StringsJVMKt Lkotlin/text/StringsKt__StringNumberConversionsKt;
0x000ab83c [0x0021f6b4 - 0x0021f7fa] Lkotlin/collections/CollectionsKt___CollectionsJvmKt Lkotlin/collections/CollectionsKt__ReversedViewsKt;
0x000ab85c [0x0025be08 - 0x0025f268] Lkotlin/text/StringsKt__StringsKt Lkotlin/text/StringsKt__StringsJVMKt;
0x000ab87c [0x0021f99c - 0x00224ff2] Lkotlin/collections/CollectionsKt___CollectionsKt Lkotlin/collections/CollectionsKt___CollectionsJvmKt;
0x000ab89c [0x0025f278 - 0x0025f2d4] Lkotlin/text/StringsKt___StringsJvmKt Lkotlin/text/StringsKt__StringsKt;
0x000ab8bc [0x00225004 - 0x0022500c] Lkotlin/collections/CollectionsKt Lkotlin/collections/CollectionsKt___CollectionsKt;
0x000ab8dc [0x0025f664 - 0x00262e14] Lkotlin/text/StringsKt___StringsKt Lkotlin/text/StringsKt___StringsJvmKt;
0x000ab8fc [0x00262e24 - 0x00262e2c] Lkotlin/text/StringsKt Lkotlin/text/StringsKt___StringsKt;

expected output:

$ rabin2 -qc classes.dex |cut -d ' ' -f 5-

Lkotlin/jvm/internal/PropertyReference2Impl Lkotlin/jvm/internal/PropertyReference2;
Lkotlin/sequences/SequencesKt Lkotlin/sequences/SequencesKt___SequencesKt;
Lkotlin/text/StringsKt__StringNumberConversionsJVMKt Lkotlin/text/StringsKt__StringBuilderKt;
Lkotlin/collections/CollectionsKt__MutableCollectionsKt Lkotlin/collections/CollectionsKt__MutableCollectionsJVMKt;
Lkotlin/jvm/internal/MutableLocalVariableReference Lkotlin/jvm/internal/MutablePropertyReference0;
Lkotlin/jvm/internal/MutablePropertyReference0Impl Lkotlin/jvm/internal/MutablePropertyReference0;
Lkotlin/jvm/internal/MutablePropertyReference1Impl Lkotlin/jvm/internal/MutablePropertyReference1;
Lkotlin/jvm/internal/MutablePropertyReference2Impl Lkotlin/jvm/internal/MutablePropertyReference2;
Lkotlin/text/StringsKt__StringNumberConversionsKt Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;
Lkotlin/collections/CollectionsKt__ReversedViewsKt Lkotlin/collections/CollectionsKt__MutableCollectionsKt;
Lkotlin/text/StringsKt__StringsJVMKt Lkotlin/text/StringsKt__StringNumberConversionsKt;
Lkotlin/collections/CollectionsKt___CollectionsJvmKt Lkotlin/collections/CollectionsKt__ReversedViewsKt;
Lkotlin/text/StringsKt__StringsKt Lkotlin/text/StringsKt__StringsJVMKt;
Lkotlin/collections/CollectionsKt___CollectionsKt Lkotlin/collections/CollectionsKt___CollectionsJvmKt;
Lkotlin/text/StringsKt___StringsJvmKt Lkotlin/text/StringsKt__StringsKt;
Lkotlin/collections/CollectionsKt Lkotlin/collections/CollectionsKt___CollectionsKt;
Lkotlin/text/StringsKt___StringsKt Lkotlin/text/StringsKt___StringsJvmKt;
Lkotlin/text/StringsKt Lkotlin/text/StringsKt___StringsKt;

before you ask.. current rabin2 -c output (without -q)

0x00261fe4 method 117 spf  Lkotlin/text/StringsKt___StringsKt.method.windowed(Ljava/lang/CharSequence;IIZLkotlin/jvm/functions/Function1;)Ljava/util/List;
0x00261f58 method 118 sph  Lkotlin/text/StringsKt___StringsKt.method.windowed$default(Ljava/lang/CharSequence;IIZILjava/lang/Object;)Ljava/util/List;
0x00261f88 method 119 sph  Lkotlin/text/StringsKt___StringsKt.method.windowed$default(Ljava/lang/CharSequence;IIZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/util/List;
0x00262ca8 method 120 spf  Lkotlin/text/StringsKt___StringsKt.method.windowedSequence(Ljava/lang/CharSequence;IIZ)Lkotlin/sequences/Sequence;
0x00262cd4 method 121 spf  Lkotlin/text/StringsKt___StringsKt.method.windowedSequence(Ljava/lang/CharSequence;IIZLkotlin/jvm/functions/Function1;)Lkotlin/sequences/Sequence;
0x00262c48 method 122 sph  Lkotlin/text/StringsKt___StringsKt.method.windowedSequence$default(Ljava/lang/CharSequence;IIZILjava/lang/Object;)Lkotlin/sequences/Sequence;
0x00262c78 method 123 sph  Lkotlin/text/StringsKt___StringsKt.method.windowedSequence$default(Ljava/lang/CharSequence;IIZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lkotlin/sequences/Sequence;
0x00261054 method 124 spf  Lkotlin/text/StringsKt___StringsKt.method.withIndex(Ljava/lang/CharSequence;)Ljava/lang/Iterable;
0x00262064 method 125 spf  Lkotlin/text/StringsKt___StringsKt.method.zip(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/util/List;
0x002620f4 method 126 spf  Lkotlin/text/StringsKt___StringsKt.method.zip(Ljava/lang/CharSequence;Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function2;)Ljava/util/List;
0x0026218c method 127 spf  Lkotlin/text/StringsKt___StringsKt.method.zipWithNext(Ljava/lang/CharSequence;)Ljava/util/List;
0x00262218 method 128 spf  Lkotlin/text/StringsKt___StringsKt.method.zipWithNext(Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function2;)Ljava/util/List;
0x000ab8fc [0x00262e24 - 0x00262e2c]      8 class 2819 Lkotlin/text/StringsKt super: Lkotlin/text/StringsKt___StringsKt;
0x00262e24 method 0 PC   Lkotlin/text/StringsKt.method.<init>()V
@radare

This comment has been minimized.

Copy link
Collaborator Author

@radare radare commented May 24, 2019

basically, right now -q shows only classes, not methods. so maybe we should add -qqc to list only classnames

@radare radare added this to the 3.6.0 milestone May 24, 2019
@radare radare closed this in 8e88497 May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.