protection

What is the use of -fno-stack-protector?

人盡茶涼 提交于 2019-11-29 16:51:42
问题 I have written an application in C, and I'm trying to understand what is the purpose of the -fno-stack-protector command when compiling. For my specific application, it makes no difference if I use this command or not in terms of protecting against buffer overflow. I've read online that the -fstack-protector and -fno-stack-protector commands enable and disable respectively the stack-smashing protector, but if I'm compiling the application myself, how can the protector be enabled beforehand?

How to encrypt HTML source code? [duplicate]

我的梦境 提交于 2019-11-29 15:02:58
Possible Duplicate: How to encrypt HTML source code output using PHP I built my static website and I am finished now how to encrypt my source code? Can I hide HTML source code of my page so that nobody can see it? I have used jquery, iframes, CSS and HTML. I want protect my website from injection. Shree This article covers a number of techniques including: Source Code Padding No Right Click Scripts "JavaScript Encryption" HTML Protection Software However the article concludes: Unfortunately, the short answer to this question is, you can't [hide your source code]. There have been various

Protection against automation

﹥>﹥吖頭↗ 提交于 2019-11-29 14:20:02
问题 One of our next projects is supposed to be a MS Windows based game (written in C#, with a winform GUI and an integrated DirectX display-control) for a customer who wants to give away prizes to the best players. This project is meant to run for a couple of years, with championships, ladders, tournaments, player vs. player-action and so on. One of the main concerns here is cheating, as a player would benefit dramatically if he was able to - for instance - let a custom made bot play the game for

protect php includes (with htaccess?)

家住魔仙堡 提交于 2019-11-29 08:04:24
First of all, I'm pretty sure a similar question will be on Stack Overflow, but I didn't really find it. Probably because I am using the wrong keywords. So don't shoot me because of that. What my question basically is, I want to include php files, but I only want them to be included and not for people to be opened with their browser. They should get an error. For example I have an includes directory with a php file which contains my connection to a DB (password etc.. dangerous?) . I want to be able to include it, but I don't want people to directly visit the page. Will putting a password on

Protecting a Windows Service from untrusted users

百般思念 提交于 2019-11-29 07:48:23
How can I prevent users from tampering with, stopping or crashing a Windows Service that is doing work in the background that may take a while to complete? Upon receiving a stop request, the service should wait until the work is complete before stopping. There is the CanStop flag for services, but I'm not sure how to respond to the OnStop message. And if the user does try to crash the service, how can I prevent further tampering? Edit: Generalised question from parental control to any background process. Users have to have admin privs to stop services. I don't think there is a foolproof way to

Software protection by encryption

妖精的绣舞 提交于 2019-11-28 19:19:11
问题 For our software we use hardware dongles to protect the software. No protection is perfect but this commercial solution is affordable and keeps honest people honest (as mentioned in another thread). The advantage is the 128 bit key that is stored 'unreadable' on the hardware dongle. We want to remove this hardware dongle and start using software protection. Basically we can use a commercial product, but on the other hand that won't be unbreakable either. I don't know much about encryption and

What can done to secure jar files besides obfuscation?

隐身守侯 提交于 2019-11-28 13:42:58
I'm concerned about the security of Java executables. They offer little protection against decompilation. With tools like Java Decompiler even a kid can decompile the class files to get the original code. Apart from code obfuscation what can be done to protect a class file? Is the Encrypted Class Loader still a myth? Riduidel In a previous company we had such questions, mainly driven by management paranoia. First of all, you have to understand that absolute security is only a myth: As long as your program is run on untrusted hardware, it can be decompiled, no matter what language you use. The

Excel File Password Protection with Open XML SDK

孤街醉人 提交于 2019-11-28 13:08:15
I am using Open XML SDK for creating excel files. I want to protect them with a password. Do you know anyway to protect excel file with a password by using Open XML SDK? I know "com" object way to protect them however, it is not suitable for my application. I need to protect file by using Open XML SDK or another way. Birol Capa Creating an excel password for protecting workbook or worksheet is possible by open xml. Following code samples are suggestions of Vincent ( http://spreadsheetlight.com/about/ ) ( https://stackoverflow.com/users/12984/vincent-tan ) (again I thank him a lot :) using

How to protect your software code? [duplicate]

我的梦境 提交于 2019-11-28 10:48:43
Possible Duplicates: How do you protect your software from illegal distribution? Best practice to prevent software copy Hypothetical situation: Lets say I have built a software product from the scratch and it does wonderful things. The only problem is that, once someone takes a look at the code, they will understand it very easily and they can easily build it up themselves. Now, the thing is that I built the code from the scratch 100% and uses a mixture of API calls. Nobody else is involved in the development of the code. If I want to sell this product, what is the guarantee that someone much

Can a secret be hidden in a 'safe' java class offering access credentials?

不想你离开。 提交于 2019-11-28 09:22:03
This is a brainstorming question about what's possible in Java (or not). I want to know if it is possible to hide a secret within a class and prevent anymore from accessing it using Java code or any of its feature only (security, reflexion, serialization, class loaders, you-name-it...). Here is what I have in mind so far: public final class Safe { private String secret; private HashMap<String, Credentials> validCertificates = new HashMap<String, Credentials>(); public Safe(String aSecret) { this.secret = aSecret; } public final class Credentials { private String user; private Credentials