obfuscation

Which C# method names should not be obfuscated?

那年仲夏 提交于 2019-12-20 05:45:27
问题 I'm working on a C# obfuscation program, and I'm wondering if there are method names that are "hardwired" into the framework and should therefore not be modified. The ones that spring to mind are .ctor, .cctor and Dispose. Are there any others I should avoid modifying? Edit: To elaborate, and inspired by Paul Alexander (thanks for your answer), I'm doing this by modifying the IL source code. Here are some typical(?) .method statements: .method family hidebysig virtual instance void Dispose

Obfuscate Objective-C code for a reusable iOS package [duplicate]

倖福魔咒の 提交于 2019-12-20 03:36:26
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Objective-C Code Obfuscation I am trying to put together an iOS package that can be reused in multiple apps. I would like to be able to bundle it up for others to easily plug in and use, and I would like to obfuscate the code so that no one can read it. What would you recommend between building a framework, a static library, or another solution to accomplish this and why? 回答1: A framework is the standard Cocoa

Do method names get compiled into the EXE?

纵然是瞬间 提交于 2019-12-19 19:41:32
问题 Do class, method and variable names get included in the MSIL after compiling a Windows App project into an EXE? For obfuscation - less names, harder to reverse engineer. And for performance - shorter names, faster access. e.g. So if methods ARE called via name: Keep names short , better performance for named-lookup. Keep names cryptic , harder to decompile. 回答1: Yes, they're in the IL - fire up Reflector and you'll see them. If they didn't end up in the IL, you couldn't build against them as

Obfuscating ASP.Net dll breaks web application

感情迁移 提交于 2019-12-19 10:21:55
问题 I wouldn't usually bother to obfuscate a web application DLL but right now I have to share some server space with someone who might have a conflict of interest and might be tempted to steal the deal and decompile it. Not an ideal solution I know but hey. So I am using VS 2005, a web deployment project (which compiles into a single DLL) and Dotfuscator community edition. When I obfuscate the DLL the web application breaks and I get some message like Could not load type 'Browse' from assembly

Why some package-private classes are not obfuscated by Proguard?

被刻印的时光 ゝ 提交于 2019-12-19 09:27:20
问题 Working with an Android project in Android Studio 3.2, having enabled Proguard and some specific rules, I'm not able to figure out the following: a specific package (and its subpackages) in a library module, used by client code, is preserved through the rule: -keep public class com.mylib.mypackage.** { public protected *; } Now, within this package there are also a number of package-private classes, which should not be picked by that rule. Some of those classes are effectively obfuscated,

Obfuscate Strings in Java

泪湿孤枕 提交于 2019-12-19 04:47:05
问题 I'm working on a project and I need specific URL calls to be hidden, I do not want this URL to be seen here is the example method of what the URL call would look like public void example(View view) { goToUrl("example.com"); } 回答1: You really can't. You can obfuscate method names because in the end the original method name never needs to be known. You can just work with the obfuscation. Here you do eventually need to know the real URL. So there would need to be an unobfuscate function. Which

What language will protect my source code?

假如想象 提交于 2019-12-19 03:21:49
问题 I wish to create shareware software that contains a registration algorithm. I am looking for a programming language, that cannot be easily decompiled into readable code. For example, C# can be decompiled into readable code. What are my options? Edit: I'm looking for something that can be only decompiled into assembly. Delphi, for example, cannot be decompiled like C# or Java, but from what I've heard, Delphi is dying. 回答1: Delphi is not dying, it is alive and well. As is the community, at

Remove C++ class names from binary dll file

懵懂的女人 提交于 2019-12-19 02:52:07
问题 I have a C++ project under Visual Studio 2010 which compiles into a dll. I have several private implementation-specific classes defined in my project, e.g. CMyClass . This class is not exported from the dll or by any interface function. However, when I check generated dll file, there is a string "CMyClass" stored in it. It is a release build, and I don't want this string to appear in the dll file. This dll is shipped to customers, and I want all names I used in my project to be stripped off

Variable declaration between function name and first curly brace

旧时模样 提交于 2019-12-18 18:47:34
问题 I am reading an article about code obfuscation in C, and one of the examples declares the main function as: int main(c,v) char *v; int c;{...} I've never saw something like this, v and c are global variables? The full example is this: #include <stdio.h> #define THIS printf( #define IS "%s\n" #define OBFUSCATION ,v); int main(c, v) char *v; int c; { int a = 0; char f[32]; switch (c) { case 0: THIS IS OBFUSCATION break; case 34123: for (a = 0; a < 13; a++) { f[a] = v[a*2+1];}; main(0,f); break;

What does 1[d=b] mean?

我的未来我决定 提交于 2019-12-18 18:36:38
问题 I was working through the 160 byte BrainFuck code trying to figure out what things do, and I cant seem to figure out what 1[d=b] does. s[99],*r=s,*d,c;main(a,b){char*v=1[d=b];for(;c=*v++%93;)for(b=c&2,b=c%7?a&&(c&17 ?c&1?(*r+=b-1):(r+=b-1):syscall(4-!b,b,r,1),0):v;b&&c|a**r;v=d)main(!c,&a);d=v;} Heres the code, its about midway through the first line http://j.mearie.org/post/1181041789/brainfuck-interpreter-in-2-lines-of-c I'm not asking what it does in that context but what 1[] does in the