sandbox

Accessibility API stops working after sandboxing

半世苍凉 提交于 2019-12-04 07:40:42
My Mac App uses accessibility API to move an resize window (of other apps). I would like to submit my app to the MAS (Mac App Store). I have read that to submit an app to the MAS is mandatory to turn on sandboxing. When I turn on the sandboxing my code can´t find the focused window through the accessibility API (always return NULL). The question is: the accessibility API can´t be used with sandboxing? I notice that there are applications in the Mac App Store that uses accessibility API, is not mandatory sandboxing by now? Thanks in advance. Dominic Tancredi First, by March June, 2012, all Apps

Disabling std. and file I/O in Python sandbox implementation

自古美人都是妖i 提交于 2019-12-04 07:29:27
I'm trying to set up a Python sandbox and want to forbid access to standard and file I/O. I am running the sandbox inside of a running Python server. I've already looked at modules like RestrictedPython and PyPy ; however, I want to be able to compile the sandbox code inside of my running Python server, not through an external process. Are there any alternative ways to prevent access to commands like print , raw_input , or open ? Could the aforementioned modules be used in a way where sandbox code is compiled in a running Python program? At worst, how would you prevent access to raw_input ?

Paypal Sandbox Testing - Change of URL Endpoint?

爱⌒轻易说出口 提交于 2019-12-04 06:55:27
It seems there are a lot of changes with Paypal Sandbox lately and I am stuck with my testing. Before, we only point to https://www.sandbox.paypal.com/cgi-bin/webscr for Sandbox testing as seen in the code below: <form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" style="padding: 0; margin: 0;"> <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="your bussiness id" /> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="item_name" value="your item" /> <input type="hidden" name="item_number" value="1" />

Using the socket module in sandboxed Pypy

南楼画角 提交于 2019-12-04 06:40:30
I'm attempting to allow a subprocess sandboxed with Pypy to communicate, using a limited protocol, with the parent process. After reviewing the source code of the pypy/pypy/translator/sandbox/sandlib.py included with Pypy, it appears that there is a VirtualizedSocketProc that allows os.open calls to open sockets. I've changed some functionality of the code (for example, allowing TCP connections on limited ports), but very little has been changed. However, I'm unable to actually import Pypy's socket module because it requires a non-existent _socket module, which seems to be located in the

Javascript Sandbox

为君一笑 提交于 2019-12-04 06:29:33
I want to have developers write some custom apps for a site in Javascript but I want to sandbox it so they can't do anything naughty like redirect the user, set the body display to none etc etc. I have a namespace in Javascript where all the functions they'll ever need exist in there so I was thinking to create a sandbox would be a matter of: with(Namespace) { //App code goes here where they can only access Namespace.* } How is easy is it to get around this and what other methods can be done? Would rather not have to moderate every submitted app. To enforce a sandbox, you would have to inspect

Trying to keep track of number of outstanding AJAX requests in firefox

回眸只為那壹抹淺笑 提交于 2019-12-04 05:35:55
I am using Selenium to test a web application and am not allowed to modify the application's javascript code. I am trying to track the number of outstanding AJAX requests by using GreaseMonkey to override XMLHttpRequest.send. The new send() will basically wrap what was set as the onreadystatechange callback, check the readyState, incrementing or decrementing the counter as appropriate, and calling the original callback function. The problem that I'm having appears to be a privilege issue because if I just browse to a page in a normal firefox browser, open firebug and paste in the following

Iframe SandBox is blocking embed object

隐身守侯 提交于 2019-12-04 05:35:09
Hy here is a examle Example Why when i use <IFRAME sandbox="allow-forms allow-scripts" SRC="http://roshare.info/embedx-xcnvxz71l8fb-699x380.html" FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=699 HEIGHT=400></IFRAME> sandbox i dont see the player .. i want to use sandbox just to block pop-ups but looks like if i use it i dont see the player is there any allow-objects ? I have also a no sandbox example on that page and it works .. You're correct. The sandbox will block plugin content inside the frame. Unlike other aspects of the sandbox, there is no mechanism for enabling

In-App purchase testing on production environment without spending money

纵饮孤独 提交于 2019-12-04 04:02:25
问题 I have an iOS app which I am about to release on the App store. I want to test In-App purchases in production environment. How I can test In-App purchases for production app which has not been released yet? 回答1: Go to itunesConnect , Users and Roles, Create a sandbox user . I am thinking you have already made the in app purchase items in your app in itunes connect. Now in your device log out the Appstore ID from settings. Do the in app purchase using the Test user credentials you created, and

NSSavePanel and the Sandbox

夙愿已清 提交于 2019-12-04 03:21:19
I have some problems understanding the new Lion's Sandbox. I know that Lion includes a trusted daemon process called Powerbox whose job is to present and control open/save dialog boxes on behalf of sandboxed applications. Like the Code Signing And Application Sandboxing Guide says: Any time an application running inside a sandbox invokes an NSOpenPanel or NSSavePanel dialog, rather than showing the panels directly, AppKit automatically asks the Powerbox to present the dialog. From a developer perspective, there are no code changes required in terms of how these panels are used; this process is

Paypal Sandbox recurring payment with initial amount pending

点点圈 提交于 2019-12-04 01:57:27
I'm using the PHP library here to create a new subscription profile. If I set an initial amount, the profile appears as "Pending". Example: Pending Customer Mark Wally Verified Profile start date Feb 18, 2013 | Profile ID I-BE824P6F9PER On the other hand, if I set no initial payment amount, the profile will be "Active". I am setting the initial payment and the start date 1 month in the future since I want to bill monthly and get a payment right away. I've already verified: Account is set to accept money in any currency The seller account has digital goods enabled (created via automated process