problem about decompiling-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

  • Breed Hansen
    java ubuntu decompiling decompiler .class-file
    I want to change .class file’s method. I installed JD Eclipse Decompiler and opened the .class file. I added some codes and save .class file. But, .class file is not changing. I don’t know how to use decompiler. And if is it possible, how to change .class file without using decompiler.I am using Ubuntu.RegardsEDIT:Here is my decompiled code: /* */ package org.hibernate.id; /* */ /* */ import java.io.Serializable; /* */ import java.sql.ResultSet; /* */ import java.sql.SQLExce

  • Daanish
    java class decompiling decompiler
    Is it possible to decompile a java .class file within another program ? I’m aware of tools like CAVAJ and DJ Java Decompiler. Why ? : I’m modifying a class file within the program and dumping it into the same. I want to then parse the source file of the modified class file. Thanks in advance.

  • namco
    c# decompiling
    i am interested in decompilers like ILSpy or .Net Reflector and etc. Can anybody tell me how this decompiler convert exe or dll files written in c# to its original source code?

  • borislemke
    android package apk decompiling classname
    I am developing an app that should be able to launch another app installed on the phone. Currently, I am successful with launching facebook as the ActivityPackage and ActivityClass is known. I want to launch other apps such as twitter, gplus, gtalk, gmail etc. How do I find out the corresponding Class Names? Finding out the package name is easy with packagemanager, but I dont find the class name with the same method.

  • Peter Boughton
    java coldfusion decompiling coldfusion-8 cfml
    Good Day,I was wondering if it was possible to view/debug/hack into the coldfusion.runtime source code.Specifically, I’m getting out of memory errors that look like the following:allocLargeObjectOrArray: [C, size 8388624 java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 8388624 at java.util.Arrays.copyOf(Arrays.java:2882) at java.io.CharArrayWriter.write(CharArrayWriter.java:105) at coldfusion.runtime.CharBuffer.replace(CharBuffer.java:37) at coldfusion.runtime.CharBuffer.replace(Ch

  • CJ7
    encryption vb6 cryptography decompiling
    Option Explicit Dim sSecretData sSecretData = “Here is some very secret data.” ‘ Build up the key Dim wshNetwork, sComputerName Set wshNetwork = WScript.CreateObject(“WScript.Network”) sComputerName = wshNetwork.ComputerNameDim capEData Set capEData = CreateObject(“CAPICOM.EncryptedData”)capEData.Algorithm = 3 ‘Use 3DES capEData.SetSecret sComputerName capEData.Content = sSecretDataDim sCipherText sCipherText = capEData.EncryptcapEData.Algorithm = 3 capEData.SetSecret sComputerName capEData.D

  • animuson
    exe decompiling disassembling user32
    I have a .exe which is compiled from a combination of .for (fortran), and .c source files. It does not run on anything later than Win98, due to an error with the graphics server:”access violation error in User 32.dll at Ox7e4467a9″Unless there is some other way around the above error (?), I assume I have to recompile the .exe from source using a more modern graphics server. I have all the files to do this bar one .lib file!Is it possible to pull any info on the missing lib file out of the curren

  • Abdus Sami Khan
    android eclipse jar decompiling
    I was working on an Android app but yesterday my Hard disk got crashed and all the data has been gone. What I’m now left with is a .apk file which I kept as a back up. I somehow managed to get my code back from that .apk file but not sure of how to import the whole project in Eclipse. The source along with other folders like drawables, values, manifest etc are saved in one folder. Any help would be highly appreciated.

  • CheapSteaks
    c# .net resources decompiling reflector
    There’s a .net program for students that I’ve been messing around with in Reflector and Reflexil, but it doesn’t look like they can work with resource files. I want to replace the default background with a custom one. How feasible is this? I’ve tried exporting the assembly as a C# project and maybe rebuilding with the resource files swapped, but a few classes won’t decompile right when exporting and crashes Reflector when I try to view the full source code inside reflector (after clicking ‘expa

  • Justin Dearing
    .net visual-studio debugging decompiling
    Their has been a bit of a renaissance of .NET decompiler development since RedGate announced they will stop producing the free version of RedGate Reflector. One opensource decompiler, ILSpy, allows you to do step through debugging of a compiled assembly. I was using this to debug some assemblies I lack the source code for. However, its crashes too often for the level of nested debugging I need to do.Ideally, I’d prefer something that integrates with Visual Studio 2010, or 2008, but I’ll settle f

  • Ron Peyce
    flash swf decompiling decompiler
    Spent two weeks creating a flash presentation hundreds of photos and the file became corrupted when Nero 7 crashed 🙁 and my pc restarted. A quick seach told me of some decompilers (showmycode.com) could save the file… but it shows me not one line of code :(it works fine with other .swf files.does anyone know why there is not any code shown?thanks

  • Forrest
    java obfuscation decompiling
    As we know , there are a lot of java decompiler tools which can convert .class to .java file.Therefore,we need to protect our .java files against decompiler. I know this is a big topic,and maybe there is no ending.Usually, there are two ways : obfuscator and customized classloader.Is there any mature solution or open source framework, which combined those two ways ?Another aspect is related with exe4j, which package jars to exe file,seems like it can protect java codes , because what we can see

  • abatishchev
    c++ c reverse-engineering decompiling
    This question already has an answer here:Whats a good C decompiler?4 answersDuplicate of http://stackoverflow.com/questions/193896/whats-a-good-c-decompiler and http://stackoverflow.com/questions/205059/is-there-a-c-decompiler taken together.Does somebody know any opensource C/C++ decompiler? I don’t want to use any commercial solution like IDA Pro.

  • Octavian Damiean
    decompiling
    I opened a jar file in jd-gui but when I try to save the all resources it stops working. I don’t know where to look for the logs of jd-gui.How can I save all the decompiled source files?

  • Iron
    licensing compilation protection decompiling copy-protection
    I’m using Eziriz Intellilock to protect a .NET windows application. The application targets .NET 2.0 and is built with “Any CPU” target. When it’s unlocked it works fine in both 32bit and 64bit Vista. However, when I lock it with Eziriz Intellilock, I can only run the locked version in 32bit Vista. When trying to run in Vista 64bit I get an APPCRASH exception when initializing the program.Has anyone been through such issue? Is there a solution?I tried to contact their support but didn’t receive

  • John

  • ASP
    android android-resources decompiling android-apk
    The hard drive on my laptop just crashed and I lost all the source code for an app that I have been working on for the past two months (I know I am an idiot for not backing it up) All I have is the APK file that is stored in my email from when I sent it to a friend. My question is: Is there any way to extract my source code from this APK file? I realize that is is most likely a shot in the dark… but I am really desperate.I have read about tools like smali and apktool… could these be of help?

Web site is in building