decompiler

How Can I Protect My C# Code From Being Decompiled? [duplicate]

隐身守侯 提交于 2019-12-06 07:28:34
This question already has answers here : Closed 8 years ago . Possible Duplicate: .Net Obfuscation Alternative for Obfuscation in the .NET world Just a few minutes ago, I read that there are a number of tools, many free, that allow you to convert a C# .exe back to a VB solution. This means that my proprietary code can be viewed, edited, and recompiled/redistributed. Is there a way to prevent this? Mark Hall In short you need to use Obfuscation . To name a few. Dotfuscator Obfuscator Skater (Freeware) DeployLX CodeVeil Plus Visual Studio comes with a light version of Dotfuscator. You can read

decompile a .class file programmatically

匆匆过客 提交于 2019-12-06 06:27:26
问题 I am currently working on a project which demands me to decompile a .class file to java file programmatically. I.E. I have a program that should read a class file and decompile it and the resultant java source code is written into a file. Please help me out to do it. EDIT: I am completely new to the world of decompilers. I have gone through a few APIs, but i don't know precisely how to use and which one to use. Any sort of help will be really appreciable EDIT: I tried using: import com

Encrypting password in compiled C or C++ code

吃可爱长大的小学妹 提交于 2019-12-06 05:39:59
问题 I know how to compile C and C++ Source files using GCC and CC in the terminal, however i would like to know if its safe to include passwords in these files, once compiled. For example.. i check user input for a certain password e.g 123, but it appears compiled C/C++ programs is possible to be decompiled. Is there anyway to compile a C/C++ source file, while keeping the source completely hidden.. If not, could anyone provide a small example of encrypting the input, then checking against the

ILSpy, how to resolve dependencies?

拈花ヽ惹草 提交于 2019-12-06 01:59:23
问题 I want to disassemble an entire .NET assembly with ILSpy. I used this code as base: http://skysigal.xact-solutions.com/Blog/tabid/427/entryid/2488/Default.aspx And it works fine, just when I have an assembly that references Npgsql.dll (or any other non-gac assembly), then I get an AssemblyResolutionException. Failed to resolve assembly: 'Npgsql, Version=2.0.11.92, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7' I know how I can get the referenced assemblies, but how can I add them to ast ?

Decompiling and recompiling APK file

一世执手 提交于 2019-12-05 22:35:11
I'm currently working on analyzing some android malwares and i need to decompile APK files. Reading an answer and many other answers like it, i know that we can extract java source code and other resources, create a new project and put those files in, make some modifications and compile the project. Is this approach applicable to every APK file ? If we aim to make very little or no modifications in the java source code, does this approach work for every APK file? If not, what is the main reason? As another question, i remember i read somewhere (can not find it now) that said converting dex to

What would be a more accurate decompiler than jad for Eclipse to get rid of <-MISALIGNED ->?

强颜欢笑 提交于 2019-12-05 19:33:16
I have used jad for many years, most of these with the Jadclipse plugin to eclipse which makes it quite usable. Especially with the "Align code for debugging" which allows you to see the decompiled code for any line in a stack trace. Very nice. Unfortunately I've seen more and more that the <- MISALIGNED -> comment sneaks in, which is most likely because jad expects the classfile to be in order which clearly is not the case for the Java 6 runtime library. Hence when writing the file, and an instruction says "this is line 100" then 99 empty lines are written, and if then the next instruction

Decompiled DLL - Clues to help tell whether it was C# or VB.NET?

江枫思渺然 提交于 2019-12-05 18:17:16
When using something like DotPeek to decompile a DLL, how do I tell whether it was originally coded in VB.Net or C#? I gather there's no easy way to tell, but that there may be tell-tale signs (ie. clues) in some of the decompiled code? You can look for a reference to the Microsoft.VisualBasic library. If that is present, it's very probable that the code was made using VB. The library is sometimes included in C# projects also, but that is not very common. If the reference is not there, it's certainly not VB. (Well, it's possible to compile VB without the library using the command line compiler

What is this referencing?

跟風遠走 提交于 2019-12-05 15:54:42
Suppose I have this class: public class class1 extends Applet implements Runnable { private String s; private URL u; ... } And a second class: class TS extends Thread { private final class1 _$97913; public TS(class1 paramclass1) { this._$97913 = paramclass1; } ... public void PostData() { ... class1.access$16(this._$97913, new Socket(class1.access$17(this._$97913), 80); ... } ... } Can someone explain how class1.access$16(this._$97913, new Socket(class1.access$17(this._$97913), 80); is referencing private URL u; from class1? Where does the access$16 come from? What is this called and where can

How to decompile obfuscated java programs avoiding class/package name collisions

倾然丶 夕夏残阳落幕 提交于 2019-12-05 03:04:04
问题 I want to decompile a java program and recompile the derived (obfuscated) source. I unpacked the .jar archive and got a directory structure like that: com/ com/foo/A/ com/foo/A/A.class com/foo/A/B.Class com/foo/B/A.class ... com/foo/A.class com/foo/B.class org/foo/Bar.class ... The problem is that there are name collisions between packages and classes, which makes it impossible to recompile the decompiled class files. A decompiled class will look like this: package org.foo; import com.foo.A;

ANN for decompiler?

安稳与你 提交于 2019-12-04 19:17:55
Has there ever been any attempts at utilizing artificial neural networks in decompilation? It would be nice if it was possible to provide the trimmed semantics of source along with the code in to a neural network so it could learn the connection between the two. I assume this would likely lose it's effectiveness when there is optimizations and maybe work better for high level languages too but I'm interested in hearing any attempts anyone has had at this. I'm assuming you mean decompilation to human readable C/C++ as compared to Assembly then, Given the input size (optimized/compiled code) and