decompiling

Java inner class inconsistency between descriptor and signature attribute? (class file)

瘦欲@ 提交于 2019-12-04 04:09:18
I'm trying to understand if there's a reason in the spec for the discrepany between java descriptors and signatures for inner classes. (I'm looking directly at the content of the class files here, but I use javap to illustrate). ( n.b. I have tried this on JDK 1.6.0_33 and 1.7.0_05, both have the same issue when viewed with javap from Java 7 - java 6's javap doesn't seem to show any generic signature info, as per Sean's answer below. ) Update : Thanks to those discussing - my take is The descriptor (which doesn't contain generic information) is correct. The signature (which is an attribute of

java decompilation

邮差的信 提交于 2019-12-04 03:50:37
When decompiling a specific jar using java decompiler (http://java.decompiler.free.fr/) I got some strange code I cannot identify what is. can someone help me? the code is something like: Foo.access$004(Foo.this); or this Bar.access$006(Bar.this); or else Baz.access$102(Baz.this, true) What are these methods access$004 , access$006 and access$102 ? Synthetic methods like this get created to support acessing private methods of inner classes. Since inner classes were not part of the initial jvm version, the access modifiers could not really handle this case. The solution was to create additional

How to decompile c++ dll? [duplicate]

久未见 提交于 2019-12-04 02:21:50
问题 This question already has answers here : How does one disassemble Pro*C/C++ programs? [closed] (3 answers) Closed 6 years ago . I am doing research on reverse engineering. I am able to decompile .net dll files with reflector. But in reflector we can't decompile c++ dll files. Is there any other decompiler available to decompile c++ dll Files? 回答1: It's not that easy. C++ gets translated into (sometimes) very optimized machine code. There's a detailed article on http://www.codeproject.com

Java 7 String switch decompiled: unexpected instruction

拥有回忆 提交于 2019-12-03 23:49:13
问题 I have decompiled a very simple class that uses the new Java 7 String Switch feature. The class: public class StringSwitch { public static void main(String[] args) { final String color = "red"; switch (color) { case "red": System.out.println("IS RED!"); break; case "black": System.out.println("IS BLACK"); break; case "blue": System.out.println("IS BLUE"); break; case "green": System.out.println("IS GREEN"); break; } } } Running the Java 7 "javap" against this class, generates an interesting

Finding constants from a decrypted iOS app executable

送分小仙女□ 提交于 2019-12-03 17:35:11
I'm trying to find a constant (something like a secret token) from inside of an iOS app in order to build an app using an undocumented web API (by the way, I'm not into something illegal). So far, I have the decrypted app executable on my Mac (jailbreak + SSH + dumping decrypted executable as file). I can use the strings command to get a readable list of strings, and I can use the class-dump tool ( http://stevenygard.com/projects/class-dump/ ) to get a list of interface definitions (headers) of the classes. Although this gives me an idea of the app's inner workings, I still can't find what I'm

How to convert CIL to a LINQ Expression Tree [closed]

廉价感情. 提交于 2019-12-03 16:32:33
Has any work been done on the direct conversion of CIL to LINQ expression trees? This would include class libraries, blogs, books, academic papers, etc. What are the known mismatches between CIL and LINQ Expression API? I have seen a project that significantly extended the Expression API to support an almost complete mapping between C# and LINQ Expressions. What work arounds would be suggested to accommodate any of these mismatches? Is there something fundamentally wrong about converting directly from CIL to LINQ Expressions? If so, why? 来源: https://stackoverflow.com/questions/12824201/how-to

How can I decompile many jars at once?

*爱你&永不变心* 提交于 2019-12-03 16:01:07
Well, I guess subject says it all :) The ideal solution would find all jars within a certain folder (they might be in sub-folders), and write all the sources found into a single "src" directory, of course maintaing the package folders. Concrete use case: decompile all Eclipse plugin jars dogbane Download JAD Decompiler . Unjar all your jar files (using the command jar xvf ) to some directory. Let's call this ${unjar.dir} . Create a directory for JAD to write out the decompiled sources. Let's call this ${target.dir} . Execute the following command: jad -o -r -sjava -d${target.dir} ${unjar.dir}/

How can I find the dynamic libraries required by an ELF Binary in C++?

本小妞迷上赌 提交于 2019-12-03 14:35:33
How can I get a list of all the dynamic libraries that is required by an elf binary in linux using C++? Once I've managed to extract the information (filename?) from the binary I can find the actual file by searching through the PATH , but I haven't been able to find any information regarding extracting unmangled information from the ELF binary. Thoughts? The list of required shared objects is stored in the so-called dynamic section of the executable. The rough algorithm of getting the necessary info would be something like this: Parse the ELF header , check that the file is a dynamic

Decompilation of (binary,NDK) C apps vs. Java apps (Dalvik bytecode)

心不动则不痛 提交于 2019-12-03 10:16:15
问题 Well, since I'm interested in reengineering I spend a lot of time on Android reengineering so far. Nevertheless I got to a point, where I had the problem of compiled, binary C-Code (NDK) and I got to know that it's very difficult to decompile it back to C/C++ than decompiling a DEX-file back to more or less well Java sources. What's the reason for this? I mean the bytecode is executed by the Dalvik VM and in case of a usual binary file it's executed by the real processor directly instead.

How to decompile an android app from the google play store

丶灬走出姿态 提交于 2019-12-03 10:14:51
问题 I want to decompile one android app that is available on google play store. Can anybody suggest to me an online tool or any apktool that will help me to decompile source code of apk? Thanks in advance. 回答1: Install which app you need from the playstore. Install Apk Extractor from playstore. Extract the apk using that Apk Extractor app. Just go to this link JavaDecompilers Choose file and do Upload and DEcompile. You will get the zip file. 来源: https://stackoverflow.com/questions/43752446/how