protection

What's the protection flags of memory allocated by malloc?

落花浮王杯 提交于 2019-12-04 01:26:57
问题 According to this thread,memory allocated by malloc at least have PROT_READ | PROT_EXEC ,otherwise the contaned function can't be executed . man malloc doesn't mention anything about protection thus the question. 回答1: malloc is not the right tool for allocating memory for code. You should use mmap , and depending on the paranoid security policies on your system, you might need to use mprotect too for changing the permissions. Among the reasons malloc is not the right tool: Permissions are set

Preventing Users to view my JavaScript source file

耗尽温柔 提交于 2019-12-03 18:07:41
问题 How can I prevent users from Viewing my sites source and opening my JavaScript source file? 回答1: The user agents need to see and interpret the contents of the javascript. Hence unless your script belongs to a server side program (like node.js) you cannot prevent the user agent from accessing the script and in result the user from opening the javascript source file. But, what you can do is to use obfuscation tools which would make your javascript code difficult to read for humans. With enough

userinterfaceonly:=true doesn't seem to allow VBA changes to conditional formatting?

怎甘沉沦 提交于 2019-12-03 14:52:15
I'm running a piece of code via the Worksheet_Change Event and I have it working with a call to an unprotect sub at the beginning of the event and a matching call to a protect sub at the end of the event. This works as expected. I'm trying to work with setting the protection to userinterfaceonly:=true in the workbook open event to negate the need to unprotect and reprotect each time the change event fires (more just to explore the functionality than anything else). Problem is that the code to change conditional formatting on a locked range inevitably errors if the worksheet is protected (even

What is the best way to protect sensitive data in the code?

喜你入骨 提交于 2019-12-03 05:46:02
问题 I was examining the ways of protecting my code from decompiling. There are several good threads here describing obfuscation and code packing as the possible ways of protecting the code. However none of them is ideal, obfuscation doesn't work with reflection when the string method/property names are used. Many people do not recommend to use obfuscation at all. So I currently decided not to go with any of the above. However , I have parts of the code where I need a sort of encryption , for

How to run code right when a C# application starts?

瘦欲@ 提交于 2019-12-03 03:03:48
I have put some code inside of the public MainWindow() {} but I kept getting some obscure XAML parsing errors as soon as I did that (not on my computer but on 3 others I've tried it on - yep!) Is there the preferred way to run code AS SOON as t he application starts? The theory is I want it to call home and ask it it's ok to start. If it's not, I want the app to close out. Call it a makeshift copy-protection :) Under normal circumstances, WPF creates the Main method (the entrypoint of the application) for you. Your options Create a handler for the Application.Startup event and put your code

How to detect a cracked iPhone App and a jailbroken device (different methods)

流过昼夜 提交于 2019-12-03 02:51:43
问题 I'm building a blacklisting service for cracked iPhone apps and I am curious if I missed a method for detecting cracked apps. In the moment following app crack detection methods are available for the service: checking plist size checking signer identity checking if binary is crypted (not sure if this is working correctly since no cracked app got detected this way) checking modified date of info.plist against modified date of package (not sure if this is working - used code like: http:/

What is the best way to protect sensitive data in the code?

落爺英雄遲暮 提交于 2019-12-02 20:26:33
I was examining the ways of protecting my code from decompiling. There are several good threads here describing obfuscation and code packing as the possible ways of protecting the code. However none of them is ideal, obfuscation doesn't work with reflection when the string method/property names are used. Many people do not recommend to use obfuscation at all. So I currently decided not to go with any of the above. However , I have parts of the code where I need a sort of encryption , for example, a database connection string with an IP, login and password is stored inside the code as simple

How to detect a cracked iPhone App and a jailbroken device (different methods)

大兔子大兔子 提交于 2019-12-02 16:25:28
I'm building a blacklisting service for cracked iPhone apps and I am curious if I missed a method for detecting cracked apps. In the moment following app crack detection methods are available for the service: checking plist size checking signer identity checking if binary is crypted (not sure if this is working correctly since no cracked app got detected this way) checking modified date of info.plist against modified date of package (not sure if this is working - used code like: http://snippie.net/snip/f7530ff2 to do that) I also wonder if it is possible to check if the device is jailbroken?

Software protection for small vendors

为君一笑 提交于 2019-12-02 15:57:15
This is a problem we all have to consider at some point. After many years and many approaches I tend to agree in general with the staterment: "For any protected software used by more than a few hundred people, you can find a cracked version. So far, every protection scheme can be tampered with." Does your employer enforce the use of anti-piracy software? Further, every time I post about this subject, some one will remind me; "First of all, no matter what kind of protection you'll employ,a truly dedicated cracker will, eventually, get through all of the protective barriers." What's the best

To protect the apk

余生长醉 提交于 2019-12-02 11:13:24
I have developed one application and created the apk.Now I want to avoid the piracy of that application means if I have installed the apk on my device and if i am trying to install same apk on another device then it should not be get installed on another device. Is there any way to do it ? well what you are looking for is personalized APK, means for each device you have to build once APK and in that you need to put logic that the APK can be installed on only one device; So to do that you can give one NUMBER in APK and after installation you can call a webservice to store that NUMBER in cloud