decompilingRelated issues-Collection of common programming errors
Deepak Azad
java switch-statement java-7 decompiling
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 set of instructions (the
ateiob
java android encryption reverse-engineering decompiling
Android and Java provide a crypto API that is relatively easy to use for crypto non-experts.But since we know that no code can really be protected from reverse engineering, especially string constants used as seeds or shared secrets, I am wondering: What is the point of going through the ordeal of encrypting and decrypting in Android applications?Am I missing something?Trying to make my question clearer and more concrete: Suppose I have an application in which certain strings used by the code a
nnythm
scala closures decompiling
How are the variables outside of the scope of the function pulled into the function when it’s created? I tried decompiling, but I had trouble understanding it. It looked like it uses putfield. Does putfield make a pointer to an object reference?
Peter Mortensen
java jvm decompiling
How do I lock compiled Java classes to prevent decompilation?I know this must be very well discussed topic on the Internet, but I could not come to any conclusion after referring them.Many people do suggest obfuscator, but they just do renaming of classes, methods, and fields with tough-to-remember character sequences but what about sensitive constant values?For example, you have developed the encryption and decryption component based on a password based encryption technique. Now in this case, a
Mikhail
java class reflection decompiling
I need to change existing compiled .class file. Actually I have even sources of it, but I cannot just change and recompile it because of many dependencies that I don’t have. So I need to change 2 methods. Both them have void return type. The first contains just 2 lines that are calls of another methods of the same class, i.e. public void a() {System.out.println(“a”); }public void b() {System.out.println(“b”); }public void ca() {a();b();}And I need to change method ca sp that it calls only a() me
tehtros
java decompiling gcj
Now, I know that…Anything can be reverse engineered, given enough time and resources.However, would compiling your Java code to native code with a tool like GCJ make it more difficult to decompile? I mean, given a few minutes, I can decompile a .jar using JD-GUI, and it is relatively accurate. Most of the “Java to EXE” converters are just .exe launchers for the JVM, and while there are many benefits to the JVM, I have been led to believe that security of the source code is not one of them.Bott
RexE
.net decompiling disassembling
I came across this post on the MSMobiles.com blog that says the following, among other things:.Net is great in so many ways but forcommercial apps? No way! Anybody canjust look at your source code. A highend obfuscator will help a lot but anydetermined hacker will fix your codein less than a day. I know this fromsad experience despite spending $1000son anti-piracy and obfuscation tools.It then says the following about developing commercial Windows Mobile apps in .NET:be prepared for 1-day delay
tycoon177
java bytecode decompiling disassembling disassembly
This question already has an answer here:Is there a java classfile / bytecode editor to edit instructions?4 answersI want to be able to edit bytecode and recompile into executable class files. I have no idea how to do this. I have tried decompiling with javap -c and -v, edit something, and change it back to my Class file, but I get an error “Error: Could not find or load main class Test.class”. I would also like to generate java source from the bytecode. Any help? I want to do this myself withou
Bart van Heukelom
java code-generation decompiling .class-file
I want to write a tool which generates some code using a compiled .class file as input. Specifically, I want to read from this class file:Methods, with annotations Method parameters, with annotationsThe input class file will likely refer to several types that are not in the tool’s classpath. This is ok, I don’t need to do anything with them, just need to read fully qualified type names as strings. I do need to get some information from the annotations, but they will be in the tool’s classpath.Is
user959631
vb.net encryption executable decompiling
I don’t know if this is the correct place to post this question, so sorry if it is in the incorrect place.Question:How easy is it for a third-party person to decompile my vb.net application? I mean is it even possible?For example, I have an .exe, would someone just put that .exe into a decompiler and… BAAM!!, they can see all the code? Speaking of code, when compiling, does the code get encrypted? If not, is there a way to encrypt the code?I have used SWF decompiler to decompile a .SWF to .FLA
Web site is in building