obfuscation

How to workaround renaming of object properties in Closure Compiler?

百般思念 提交于 2019-12-10 23:18:16
问题 I have a JS library that uses has something like the following method: this.on('doAction', function (args) { console.log(args.name); console.log(args.arg1 + ' ' 9 args.arg2); }); this.trigger('doAction', {name: 'write', arg1: 1, arg2: 2}); But after advanced optimization objects properties name , arg1 and arg2 will be a , b , c , so I can't get them in doAction handler. I know I can to use quotes for a property names to prevent it from changing, but is there any better approach like special

Can I use mono's AOT feature to natively “pre-compile” .NET DLLs/EXEs to make them harder to reverse engineer?

空扰寡人 提交于 2019-12-10 19:10:44
问题 Can I use mono's AOT (Ahead of Time compilation) feature to natively "pre-compile" all or part of some of my own .NET DLLs (and or EXEs) to make them harder to reverse engineer? I'm using Windows (7 / x64 but I have an x86 XP machine as well) and .NET 3.5 (VS 2008) and I'm curious if mono/AOT can be/has been used for this purpose? (Tying them to x86 is acceptable at this point.) See also this question where I tried this and had no luck. 回答1: AFAIK, mono's AOT doesn't remove the metadata which

Code analysis fails on project referencing obfuscated assembly

断了今生、忘了曾经 提交于 2019-12-10 17:44:43
问题 Visual Studio 2010 code analysis fails to run now that we've incorporated a 3rd-party assembly into our project. Project : error : CA0055 : Could not load C:\Programming\MyAssembly.dll. Project : error : CA0052 : No targets were selected. Project : error : CA0058 : The referenced assembly 'TheirAssembly, Version=1.0.0.0, Culture=neutral, PublicKeyToken=...' could not be found. This assembly is required for analysis and was referenced by: C:\Programming\MyAssembly.dll. When opening the 3rd

ProGuard : Obfuscated jar is not working but un-obfuscated jar is working

自闭症网瘾萝莉.ら 提交于 2019-12-10 17:24:26
问题 I have one project which is part of another one. I am using maven build process to make project's jar. I used ProGuard to obfuscate it. I have some controllers which handles UI requests. Q. My problem is un-obfuscated jar is working. All controllers are getting hit, but obfuscated jar is not working (none controller gets hit). Whats the issue with obfuscation ? My Servlet.XML : <context:component-scan base-package="myPackage.controllers" /> <mvc:annotation-driven /> Sample controller code :

Is there a performance hit when running obfuscated code? [closed]

非 Y 不嫁゛ 提交于 2019-12-10 17:10:16
问题 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 5 years ago . All, I am proposing the addition of code obfuscation to the standard build process at my organization. One of the questions being asked is whether there is a performance hit to running obfuscated code vs. running unobfuscated code. What is your experience? Have you seen a

Abnormal behavior while using proguard

人走茶凉 提交于 2019-12-10 15:12:32
问题 My Original code is : private String hello; private int i = 0; public void test() { if (i == 0) { hello = "asdas"; } else { hello = "asasvfasfas"; } } After Obfuscating with proguard : private String a; private int c = 0; public void a() { if (this.c == 0); for (this.a = "asdas"; ; this.a = "asasvfasfas") return; } In project properties : proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt My proguard-project.txt file is empty, so I guess it should be using the

Minify and variable names

核能气质少年 提交于 2019-12-10 14:34:50
问题 I know that minification is responsible for removing: white space characters, new line characters, comments, and sometimes block delimiters. Not long ago I read it's also responsible for shorten variable names. But I always thought it's a part of obfuscation. Am I right? Or now minification libraries also include such functionality? 回答1: Well, since the objective of minification is to reduce the size of the code as much as possible, renaming variables is an effective way of doing just that. A

Is JavaScript source encryption useful for obfuscation?

点点圈 提交于 2019-12-10 11:14:56
问题 I am thinking about creating mini-games in JavaScript that a public social website (yourworldoftext.com) and I had a thought, I am a user of the site and would be embedding my JavaScript in a link's href that others can click on to start the game. One way I was thinking about would be something like this Compress/obfuscate the JavaScript as much as possible Encrypt the JavaScript into a sctring and wrap everything with a small decryption JavaScript that will evaluate the decrypted string (the

Obfuscating Jar files with other Jar files embedded

与世无争的帅哥 提交于 2019-12-10 09:37:51
问题 So figure we have a Jar file with our Java application, and it has inside of it the Jar files for the libraries it depends of, a the jdbc or any other third party jar. How do you proceed to obfuscate it with free software? I mean, obfuscate your code and leave the Jars untouched. I tried with Proguard, to no avail. Even the author told me at the sourceforge forums it wasn't possible. But you can do it manually with an ugly hack involving the renaming of the jar to zip and mangling with the

What is the DynamicProxyGenAssembly2 assembly?

瘦欲@ 提交于 2019-12-10 01:08:17
问题 I use Moq for my unit tests. To test internal interfaces I have to declare the InternalsVisibleTo attribute to the DynamicProxyGenAssembly2 assembly. We run our tests obfuscated, which is useful because we could found some problems with obfuscation with this approach. Caused by the DynamicProxyGenAssembly2 assembly my component is not obfuscated. Therefore I need to know what is the DynamicProxyGenAssembly2 assembly? I could not found it anywhere on my disk. Is it compiled into the moq.dll or