decompiling

Kotlin Decompiler generates erroneous code - Is it possible to prevent?

霸气de小男生 提交于 2019-12-12 04:17:57
问题 class CheckInventory(target: Target) : Command(target) { } When decompiling the above Kotlin code using the IntelliJ's " Show Kotlin bytecode " option, it keeps generating a statement above the super() call: class CheckInventory extends Command { public CheckInventory(Target target) { Intrinsic.checkParameterIsNotNull(target, "target"); super(target); //error, must be first call } } There are a few other issues, such as generating top-level classes with an access modifier for WhenMapping:

Hex-Rays decompiles array to int

拈花ヽ惹草 提交于 2019-12-12 02:59:31
问题 I decompiled one dll using Hex-Ray but it decompiled array type input argument of dll to int. Any idea how to handle this ?? double dzSell(int a1, double a2, int a3, int a4, int a5) int a1 is array type in dll 回答1: here is the example how Hex-Rays decompile pointers /* The computational routine */ extern "C" __declspec(dllexport) void myfun2 (double x, double *y, double *z, int n) { int i; /* multiply each element y by x */ for (i=0; i<n; i++) { z[i] = x * y[i]; } } /* int __cdecl myfun2

Convert .jar file to JAVA DOC

老子叫甜甜 提交于 2019-12-12 02:08:29
问题 How can I put my jar file to web. i.e is there a software that decompile jar file and make html pages of it? In other words I want to make a java doc. 回答1: [Edit according to user comment] So you want to extract javadoc from a jar... First you must understand that if your jar doesn't contain the sources, but only the compiled code that your javadoc will not show any comment. Then you just need to extract the file in your jar using any zip program (for exemple on windows, rename file to .zip,

Decompiled assembly, which programming language was used

好久不见. 提交于 2019-12-11 23:56:10
问题 How would you know if a decompiled assembly was written in C# or VB.net? 回答1: I am not aware of any explicit "I was compiled with..." information in the manifest / attributes. You could perhaps use feature detection (in particular, things like how anonymous types are implemented, and module-level methods), but: in most cases it shouldn't matter compilers you don't know about could appear similar, giving you false answers not all IL comes from a compiler; it could be assembled from raw IL,

jad “Version mismatch: major.minor = 49.0, expected = 45.3”, what's version of .class file?

别来无恙 提交于 2019-12-11 19:37:46
问题 I used jad to decompile the class but in AIX system, such error thrown. Version mismatch: major.minor = 49.0, expected = 45.3 I don't know what's the version of .class file, how can I avoid this? 回答1: The class was compiled for JDK5, your tools only support JDK1.1. You probably need a newer version of jad (or the whole JDK) on that machine (or compile your code for an older version of Java). major version number of the class file format being used: J2SE 7 = 51 (0x33 hex), J2SE 6.0 = 50 (0x32

Is there software akin to an “ultimate” decompiler that will work for any language?

微笑、不失礼 提交于 2019-12-11 06:51:56
问题 I do not know what language a program was written in, but I'd like to find a decompiler that can decompile its source code and find it out what language it was written in. If it is made in pascal, c, bas, vb, qb or something this way and decode/save as a readable .src Something like exe2bin or exe2src I have a coupple DOS-programs, I think were made in pascal. I need to decompile these programs so I can make them a Win32 application. 回答1: Hexrays http://www.hex-rays.com/decompiler.shtml is a

Self exploding and rejaring jar file during execution

依然范特西╮ 提交于 2019-12-10 15:53:48
问题 I am currently working on a program to make sitting charts for my teacher's classroom. I have put all of the data files in the jar. These are read in and put in to a table. After running the main function of the program, it updates the files to match what the tables values are. I know I need to explode the jar and then rejar it during excution in order to edit the files, but I can't find any explination on how to rejar during excution. Does anyone have any ideas? 回答1: Short answer: Put data

Finding differences between versions of a Java class file

醉酒当歌 提交于 2019-12-10 14:43:42
问题 I am working with a large Java web application from a commercial vendor. I've received a patch from the vendor in the form of a new .class file that is supposed to resolve an issue we're having with the software. In the past, applying patches from this vendor have caused new and completely unrelated problems to arise, so I want to understand the change being made even before applying it to a test instance. I've got the two .class files side by side, the one extracted from the currently

Get C#-style type reference from CLR-style type full name

落花浮王杯 提交于 2019-12-10 13:13:57
问题 Given a .NET type object found through reflection, is it possible to pretty print or decompile this type as a C# declaration, taking into account C# type aliases, etc.? For example, Int32 -> int String -> string Nullable<Int32> -> int? List<au.net.ExampleObject> -> List<ExampleObject> I want to be able to print out methods close to what was originally written in the source. If there isn't anything in the .NET framework, is there a third-party library? I might possibly have a look at ILSpy.

Is it possible to prevent decompilation of .NET MSIL DLL?

让人想犯罪 __ 提交于 2019-12-10 07:00:46
问题 Almost all the .net assemblies can be de-compiled using Reflection .Which means that all .net products are open source since the code can be easily be used by other developers. Isnt there a way so that we can encrypt the codes (at least for some security logic) so that it cannot be easily cracked or misused. Edit Old question Is winforms .net really equal to open source? was edited considering comments regarding proper use of the word Open Source 回答1: No All code can be reverse engineered,