decompiling

Rewrite a method of a .Net DLL

久未见 提交于 2020-01-14 10:44:09
问题 I have an old .NET DLL which I have lost the source code to and I wanted to see if I could change its behavior. It has a method that takes in a string and returns a string. I would want to rewrite this method such that I can return startStr + " test"; I tried .NET reflector but the project it produced has a bunch of strange errors so I cannot recompile it. I then tried Reflexil, but it only offers assembly level changes. Is there any way I could rewrite the method in C# and have the DLL use

Eclipse Plugin to Convert Class Files to Java Source Code [closed]

寵の児 提交于 2020-01-13 09:08:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . Is there available an Eclipse plugin to decompile class files when source is not available (generate .java source code from .class files), something similar to what Resharper does for C# in VS.NET? Alternatively, is there a plugin which enables a friendlier view of the API of a class files than the default

Simple hiding/obfuscation of strings in APK?

做~自己de王妃 提交于 2020-01-10 14:13:46
问题 Sometimes you need to store a password in the app itself, such as a username/password for communicating with your own server. In these cases it's not possible to follow the normal process of storing passwords - i.e. hash the password, store the hash, compare to hashed user input - because you don't have any user input to compare the hash to. The password needs to be provided by the app itself. So how to protect the stored password in the APK? Would a password-generating function like the one

How to modify code to the initComponents() method on Net Beans? [closed]

落爺英雄遲暮 提交于 2020-01-10 06:11:09
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago . I know this question is similar to another question in stackoverflow. But it doesnt same. I want to modify initcomponents method because I have old version source code of my jar file , and I have my new jar file(source code is deleted by mistakenly) I decompile my new jar and I got source but I

Marshal loading and exec-ing

廉价感情. 提交于 2020-01-03 05:25:09
问题 I have this Python code: import marshal, imp if imp.get_magic() == '\x03\xf3\r\n': __code = marshal.loads('c\x00\x00\x00\x00.....\x00d\x01\x00k\x00.....\t\t\r\x01') del marshal, imp exec __code The if condition checks wheter the Python version is the "right" version. Then marshal is used to load a string containing some code. First question: How was that string generated? Maybe compile() ? But how exactly? and second question: Can I decompile that string? How? 回答1: As far as how its created,

How does decompiling work?

左心房为你撑大大i 提交于 2019-12-31 12:04:08
问题 I have heard the term "decompiling" used a few times before, and I am starting to get very curious about how it works. I have a very general idea of how it works; reverse engineering an application to see what functions it uses, but I don't know much beyond that. I have also heard the term " disassembler ", what is the difference between a disassembler and a decompiler? So to sum up my question(s): What exactly is involved in the process of decompiling something? How is it usually done? How

How are Scala closures transformed to Java objects?

我是研究僧i 提交于 2019-12-31 10:23:12
问题 I'm currently looking at closure implementations in different languages. When it comes to Scala, however, I'm unable to find any documentation on how a closure is mapped to Java objects. It is well documented that Scala functions are mapped to FunctionN objects. I assume that the reference to the free variable of the closure must be stored somewhere in that function object (as it is done in C++0x, e.g.). I also tried compiling the following with scalac and then decompiling the class files

How are Scala closures transformed to Java objects?

独自空忆成欢 提交于 2019-12-31 10:23:05
问题 I'm currently looking at closure implementations in different languages. When it comes to Scala, however, I'm unable to find any documentation on how a closure is mapped to Java objects. It is well documented that Scala functions are mapped to FunctionN objects. I assume that the reference to the free variable of the closure must be stored somewhere in that function object (as it is done in C++0x, e.g.). I also tried compiling the following with scalac and then decompiling the class files

Recompile decompiled Java (JD / JAD) source that contains goto instructions

笑着哭i 提交于 2019-12-30 08:28:22
问题 (Related question: Java compilers or JVM languages that support goto?) I have decompiled a jar (Legally, for debugging purposes) and want to recompile it. I've used both JAD and JD and both don't compile due to goto instructions E.g. goto _L1 ... L1: return true; Is there an easy way (or any way) to recompile it? (Except to manually refactor and remove the goto 's) 回答1: No, there isn't. In your case, neither JD nor JAD were able to decompile the class files correctly. The 'goto' statements

How to prevent decompilation of any C# application [closed]

坚强是说给别人听的谎言 提交于 2019-12-28 05:07:05
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . We are planning to develop a client server application using C# and MySQL. We plan to sell the product on the shelf like any other software utility. We are worried about the decompilation of our product which does have some sort of edge over our competitors in terms of usability