security

Running a .net exe from a network share runs in partial trust when the access to root-shared is not granted to user

耗尽温柔 提交于 2019-12-25 04:01:47
问题 I have a situation where there is common shared network path let's say " \10.x.x.x\CommonShare ". Only administrator has got permission on this path. Now inside the commonshare we create user-specific folders where that particular user will have full access. Like user XYZ will have full access on \10.x.x.x\CommonShare\XYZ Now the user XYZ logs-in in his own box and from there he runs an executable which is available in the shared folder \10.x.x.x\CommonShare\XYZ\testApp.exe Have configured it

Running a .net exe from a network share runs in partial trust when the access to root-shared is not granted to user

假装没事ソ 提交于 2019-12-25 04:01:09
问题 I have a situation where there is common shared network path let's say " \10.x.x.x\CommonShare ". Only administrator has got permission on this path. Now inside the commonshare we create user-specific folders where that particular user will have full access. Like user XYZ will have full access on \10.x.x.x\CommonShare\XYZ Now the user XYZ logs-in in his own box and from there he runs an executable which is available in the shared folder \10.x.x.x\CommonShare\XYZ\testApp.exe Have configured it

Is it possible to spoof or impersonate a destination (server) IP?

陌路散爱 提交于 2019-12-25 03:58:10
问题 Is it possible to spoof or impersonate a server's IP? So that clients wanting to connect to that Server's IP, would actually connect to the attacker's machine? But the attacker would still be able to contact the actual server. This is all TCP/IP based, no name resolution, and all machines are on the same network or the internet (No NAT-ing). I am working on a networking application, and I would like to build in some authentication. What I need to do is to authenticate the server by IP. In

How to secure a network folder containing an Access database, while still allowing a WinForms application to connect to the database

会有一股神秘感。 提交于 2019-12-25 03:53:57
问题 I am taken over support on a VB.Net WinForms application and the company that I am doing the support for has lost the source code for the application. I have the installation CD for the application and the installation steps for a network install are: Copy the access database for the application to a location on the server. Create a share on the folder that contains the database and give Everyone full access. Install the application on the client desktops via a ClickOnce installation. The

How can i check for RegistryKey permissions like ReadKey or FullControl in .NET?

青春壹個敷衍的年華 提交于 2019-12-25 03:42:41
问题 I want to check that I have permissions on a RegistryKey for example can I read values and write values. This blog enumerates permissions http://blogs.msdn.com/b/bclteam/archive/2006/01/06/509867.aspx How can I go from GetAccessControl() to knowing that I have for example FullControl? 回答1: I'm afraid there is no managed code for this. you could use a dllimport and invokeCheckAccess but i prefer just accessing the registry and handling the exception (if any) 来源: https://stackoverflow.com

Chrome not allowing Ajax request to permitted domains

会有一股神秘感。 提交于 2019-12-25 03:33:03
问题 I'm creating my first Chrome extension, a relatively simple one with some ajax calls. My manifest is pretty simple: { "name": "Read It Now", "version": "0.12", "description": "Read it now.", "permissions": [ "https://readitlaterlist.com" ], "app": { "launch": { "local_path": "index.html" } } } I'm then using jQuery to fetch some simple data from a URL like: https://readitlaterlist.com/v2/get?state=unread&count=10&apikey=xxx&username=yyy&password=zzz However, Chrome still rejects it:

prevent direct access to a php include

試著忘記壹切 提交于 2019-12-25 03:29:09
问题 I have a php script PayPal eStores/dl_paycart but it has PayPal eStores "settings.php" Security Bypass Vulnerability I would like to know if I can prevent direct access to a php include file. Would this help? defined( '_paycart' ) or die( 'Access to this directory is not permitted' ); Thank you 回答1: I would STRONGLY recommend finding some new script. Any sort of blocking is just sticking a finger in the dam; it isn't a permanent solution and eventually it's going to break. If you really want

Worklight adapter calls are not encrypted (WL.Client.invokeProcedure)

爱⌒轻易说出口 提交于 2019-12-25 03:28:08
问题 I'm using Worklight adapters to fetch data from a webservice. From client side I'm doing WL.Client.invokeProcedure Server side has respective code. Issue is this client to server adapter communication is via plain text and can easily be sniffed. Though my url is HTTPS but is of no use. Please help, I'm sure there should be a way in IBM worklight to make a secure application. Thanks 回答1: AFAIK worklight is providing only two options for security between your mobile app and wroklight server. As

.htaccess Block direct access to subdirectories, but allow them to be called via JQuery/images/etc

谁说胖子不能爱 提交于 2019-12-25 03:23:54
问题 My main index.php calls a couple of scripts via JQuery from a subdirectory. I need to block direct access to any files in this directory, but allow them to be accessed by index.php. I have tried the simply: deny from all approach, but this blocks even Jquery from loading the script. There is also an /images subdirectory that needs to be blocked from direct access. deny all disallows the image from being called in any way. Does anyone know how to do this? 回答1: just use the file-functions of

determine if the bits are encrypted?

假如想象 提交于 2019-12-25 03:06:21
问题 let's assume that I am listening a network , and I acquired some bits, but I want to know if there is a way to determine bits are encrypted ? what method or algorithm exists ? I mean if the bits are meaningless, it means encrypted but is there are more technical approach or algorithm to determine from bits let's say I have 0101010100001011001001100001001, how would you tell that if this is encrypted ? 回答1: Generally speaking, you can't. Encrypted data is, in almost all cases,