decompiling

Google Closure decompiler?

 ̄綄美尐妖づ 提交于 2019-12-04 15:39:11
I was looking for a way to decompile JavaScript that was compiled by Google Closure. I did find a Decompiler class ( https://code.google.com/p/closure-compiler/source/browse/lib/rhino/src/org/mozilla/javascript/Decompiler.java?name=v20140407 ), however I haven't had much luck with it. Anyone try this before or know of some other method? Usually, I just run the code through the Closure Compiler in WHITESPACE mode and enable the pretty printing options. 来源: https://stackoverflow.com/questions/9321648/google-closure-decompiler

Android smali question

余生长醉 提交于 2019-12-04 13:51:33
问题 I'm currently doing some research on smali/"code obfuscator" and I'm trying to get familar with the decompiled source codes at the moment. For this I created a simple app and decompiled it by smali. I'm trying to understand the decompiled source code now to improve and compare the security (against decompiling) after using a code obfuscator later. While most of the smali source code is not that difficult, I'm still having sometimes problems with the format conversion of figures. May you

Decompile & recompile single file from jar

折月煮酒 提交于 2019-12-04 13:05:22
This problem has been solved witht he help of the comments: It was necessary to recompile the java with the correct target version. In my case javac -source 1.3 -target 1.3 instead of simply javac did the trick. Problem Description: I have a compiled .jar java program in which a single url string needs to be modified. Using JD I was able to decompile the code and make the changes. As I would like to avoid having to recompile the entire project I thought I could simply recompile the single .java file I modified into a .class and replace the original with it. However, after repackaging the jar,

Fail-safe way of round-tripping JVM byte-code to text-representation and back

时间秒杀一切 提交于 2019-12-04 11:41:33
I'm looking for a fail-safe way to round-trip between a JVM class file and a text representation and back again. One strict requirement is that the resulting round-tripped JVM class file is exactly functionally equivalent to the original JVM class file as long as the text representation is left unchanged. Furthermore, the text representation must be human-readable and editable. It should be possible to make small changes to the the text representation (such as changing a text string or a class name, etc.) which are reflected in the resulting class file representation. The simplest solution

Decompiling java with JAD - limitations

ε祈祈猫儿з 提交于 2019-12-04 11:32:30
I am trying to decompile a couple of jar files using JAD in Java (I tried JD-GUI as well with even less luck), but I get quite a lot of errors. One type (easy to fix) seems to be with internal classes, but I also found this bit of code: static int[] $SWITCH_TABLE$atp$com$OrderType() { $SWITCH_TABLE$atp$com$OrderType; if($SWITCH_TABLE$atp$com$OrderType == null) goto _L2; else goto _L1 _L1: return; _L2: JVM INSTR pop ; int ai[] = new int[OrderType.values().length]; try { ai[OrderType.LIMIT.ordinal()] = 2; } catch(NoSuchFieldError _ex) { } try { ai[OrderType.MARKET.ordinal()] = 1; } catch

How to debug a Java application without access to the source code?

拥有回忆 提交于 2019-12-04 11:04:37
问题 I need to debug a Java application I have no source code for. It is running locally on a Jetty server. Decompiling using JD-GUI works fine. Attaching JDB via a socket connection or shared memory works fine, too. Where I fail is joining the pieces together. I mainly tried Eclipse with the JD-Eclipse plugin and remote debugging. I failed to find a way to successfully attach the debugger to a running process. Everything seems to assume that I have at least parts of the application available as

Are these encoded codes? [duplicate]

浪子不回头ぞ 提交于 2019-12-04 06:43:49
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: What does the jsr keyword mean? i used a decompiler to decompile a .class file it seems that it decompiled everything except some code at the bottom are very strange and since im new to java im not sure what they mean: static { String[] tmp5_2 = new String[6]; jsr 50; tmp5_2[0] = "pH@JeAE"; String[] tmp13_5 = tmp5_2; jsr 42; tmp13_5[1] = "lRMMoF"; String[] tmp21_13 = tmp13_5; jsr 34; tmp21_13[2] = "KHUT;\f\19VSv

How do I decompile a .jar file? [duplicate]

依然范特西╮ 提交于 2019-12-04 05:58:39
This question already has answers here : Closed 8 years ago . Possible Duplicates: Where can I find a Java decompiler? How to decompile a whole Jar file? I have a .jar file. Its a single file, but I want to "decompile" it to get at the original java code (or at whatever would be closest to the Java code - something I could understand, and edit). I believe my file is (specifically) a java applet, but its saved as an executable jar file (.jar). How would I do such a thing? Kal Take a look at Java Decompiler . It allows you to decompile jar files with the JD-GUI and browse the class files as

JADClipse not working with Eclipse 3.6

旧街凉风 提交于 2019-12-04 05:47:48
Does Jadclipse work on Eclipse 3.6 ? I have installed Jadclipse 3.3.0 on my Eclipse 3.6 by copying the jar into the plugins directory and restated eclipse. Now I have the jadclipse menu under Windows->Preferences but when trying to de-compile any class it simply does not de-compile. I get the usual eclipse screen saying the source is unavailable. There are no errors in the Error Log . Any idea? RonK I eventually found the answer here . Running eclipse with -clean switch and setting the file association between *.class and the jadclipse plug-in solved the problem. Set the JAD path correctly in

Any open source Java Decompiler for Windows 7 [closed]

懵懂的女人 提交于 2019-12-04 04:48:28
I am looking for free open source java decompilers. Any suggestions? We are using Windows 7 I found out that Dcompiler is open source, and downloadeded it. (It has come as a RAR file, nothing is there in it except its class files) . Could you please suggest one which is a open source? http://cavaj-java-decompiler.en.softonic.com/ http://java.decompiler.free.fr/ It's not open source but it's free: DJ JAVA Decompiler Here is one more and it is Open Source. I found it on SourceForge.net http://jdec.sourceforge.net/ Are you looking for a tool to decompile or looking to learn how to write one