obfuscation

C++ swap two numbers using 11 chars of code [closed]

前提是你 提交于 2019-12-23 04:03:27
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . My friend sent me a exercise that he can't do: (C++) int main() { unsigned int x = 0xB0FF14a5; unsigned int y = 0x7340c00e; // enter code here if(x==0x7340c00e && y==0xB0FF14a5) victory(); return 0; } The main

Server MAC address and obfuscation

↘锁芯ラ 提交于 2019-12-23 03:40:30
问题 I am developing a VB.net windows forms application. My application connects to a name specified computer on network and gets its MAC address and performs a check, in order to prevent the use of the application "out-of-office". The Mainpage load event is as follows: Private Declare Function inet_addr Lib "wsock32.dll" (ByVal s As String) As Integer Private Declare Function SendARP Lib "iphlpapi.dll" (ByVal DestIP As Integer, ByVal SrcIP As Integer, ByRef pMACAddr As Integer, ByRef PhyAddrLen

JavaScript Obfuscation and Minification

你说的曾经没有我的故事 提交于 2019-12-23 01:55:18
问题 How well can modern JavaScript obfuscation/minification tools protect my code from reverse engineering? Also, what obfuscation platforms are the best for preventing this? It seems it would be rather easy to make a program to deobfuscate code and make the process rather pointless. If this is not something that is perfect, are there any solutions that rely on code being served remotely? 回答1: All you can do with obfuscation is make a determined hacker work more in order to borrow your code or

How do I make the manifest of a .net assembly private?

為{幸葍}努か 提交于 2019-12-22 09:31:56
问题 What should I do if I want to release a .net assembly but wish to keep its internals detailed in the manifest private (from a utility such as ildasm.exe) ? 回答1: I think what you're talking about is "obfuscation". There are lots of articles about it on the net: http://en.wikipedia.org/wiki/Obfuscation The "standard" tool for obfuscation on .NET is by Preemptive Solutions: http://www.preemptive.com/obfuscator.html They have a community edition that ships with Visual Studio which you can use.

x or y: acceptable idiom, or obfuscation?

女生的网名这么多〃 提交于 2019-12-22 08:59:10
问题 I have to extract values from a variable that may be None, with some defaults in mind. I first wrote this code: if self.maxTiles is None: maxX, maxY = 2, 2 else: maxX, maxY = self.maxTiles Then I realized I could shorten it to: maxX, maxY = self.maxTiles if self.maxTiles is not None else (2, 2) But then I realized this might be the most succinct and easily readable: maxX, maxY = self.maxTiles or (2, 2) Is the latter acceptable, or too hackish? 回答1: About, specifically, self.maxTiles if self

When and how should I obfuscate my Delphi code?

╄→гoц情女王★ 提交于 2019-12-22 07:59:09
问题 What should I know about code obfuscation in Delphi? Should I or shouldn't I do it? How it is done and is there any good tools (commercial/free) to automate it? 回答1: Why would you need to? As a whole Delphi does not decompile back, unlike .net, so, while decompilation is always a bit of a risk, Ive never found a decompiler that actually did it to a useful way, lots of areas got left as assembler and so on. If people want to rework your work, they can, no matter what, obfuscation or not, heck,

To preallocate or not to preallocate lists in Python

徘徊边缘 提交于 2019-12-22 04:30:35
问题 When should and shouldn't I preallocate a list of lists in python? For example, I have a function that takes 2 lists and creates a lists of lists out of it. Quite like, but not exactly, matrix multiplication. Should I preallocate the result, X = Len(M) Y = Len(F) B = [[None for y in range(Y)] for x in range(X)] for x in range(X): for y in range(Y): B[x][y] = foo(M[x], F[y]) return B or dynamically create it as I go? B = [] for m in M: B.append([]) for f in F: B[-1].append(foo(m, f)) return B

Anti-Virus Detection on a legitimate program

若如初见. 提交于 2019-12-22 01:33:37
问题 Basically, my program runs along side another jar file. Here is the code for the download function: public void saveUrl(final String filename, final String urlString) throws MalformedURLException, IOException { BufferedInputStream in = null; FileOutputStream fout = null; try { in = new BufferedInputStream(new URL(urlString).openStream()); fout = new FileOutputStream(filename); final byte data[] = new byte[1024]; int count; while ((count = in.read(data, 0, 1024)) != -1) { fout.write(data, 0,

conflicts with existing, non-compatible bean definition of same name and class after proguard obfuscation

旧时模样 提交于 2019-12-21 23:02:08
问题 after Proguard obfuscation i get the following error : Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'a' for bean class [com.company.project.b.a.a.a] conflicts with existing, non-compatible bean definition of same name and class [com.company.project.a.a] i'm using annotation based spring configuration , how can i avoid having two classes with the same

ConfUserEx excluding a namespace from obfuscation

做~自己de王妃 提交于 2019-12-21 17:33:01
问题 In ConfUserEX Obfuscation (https://yck1509.github.io/ConfuserEx/) How to EXCLUDE just one Namespace from rename module? For example : [assembly: Obfuscation(Exclude = true, Feature = "namespace 'ABC.XYZ':-rename")] Looks it does not work. I have a objectmodels for Json parsing in a namespace and this throwing error. Also I am using .crproj file for obfuscating using CLI. 回答1: Please download latest version v0.6.0 by this link. Exclude field from true to false . And that's it. For example: