sandbox

Socket connection error connecting to sandbox at www.sandbox.paypal.com

拟墨画扇 提交于 2019-12-02 07:06:46
When I try connect with fsockopen : $fp = fsockopen('tls://www.sandbox.paypal.com', 443, $errno, $errstr, 30); The function shows the following errors: Warning: fsockopen() [function.fsockopen]: SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure in /home/puntodec/public_html/test_socket.php on (line number) Warning: fsockopen() [function.fsockopen]: Failed to enable crypto in /home/puntodec/public_html/test_socket.php on (line number) Warning: fsockopen() [function.fsockopen]: unable to connect to tls://www

How can I prevent CSS from affecting certain element?

落爺英雄遲暮 提交于 2019-12-02 05:01:33
问题 I am writing a GreaseMonkey script that sometimes creates a modal dialog – something like <div id="dialog"> Foo </div> . But what can I do if the site has something like #dialog { display: none !important; } ? Or maybe the owner of some site is paranoid and has something like div { display: none !important; } div.trusted { display: block !important; } because he doesn't want people like me adding untrusted content to his page. How can I prevent those styles from hiding my dialog? My script

can't POST item price in paypal sandbox

…衆ロ難τιáo~ 提交于 2019-12-02 03:36:01
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick"> <input type="hidden" name="hosted_button_id" value="YYHZM9FTBZQGW"> <input type="hidden" name="amount" value="20.00"> <input type="image" src="https://www.sandbox.paypal.com/en_US/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"> <img alt="" border="0" src="https://www.sandbox.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1"> </form> this is a paypal sandbox button. all i want to do is to post the TOTAL price

How to enforce Lua scripts runtime limit?

浪子不回头ぞ 提交于 2019-12-02 01:20:54
Running an almost trivial script in lua with dofile, 10000 times, takes about 52 seconds in this machine, but if i run 10000 times "lua52 script.lua", it takes 3 or 4 times more. I'm aware that there's more system calls involved and other overhead, but what i try to achieve is running scripts with a timeout of let's say 3 seconds, and print out the output. My problem is scripts with infinite loops, intentional or not, for example: while(true) do end Can i make a timeout for a dofile from within Lua? Is my only option to call the interpreter each time with timeout(3)? It feels a bit wrong for a

How can I prevent CSS from affecting certain element?

China☆狼群 提交于 2019-12-02 01:15:15
I am writing a GreaseMonkey script that sometimes creates a modal dialog – something like <div id="dialog"> Foo </div> . But what can I do if the site has something like #dialog { display: none !important; } ? Or maybe the owner of some site is paranoid and has something like div { display: none !important; } div.trusted { display: block !important; } because he doesn't want people like me adding untrusted content to his page. How can I prevent those styles from hiding my dialog? My script runs on all pages, so I can't adapt my code to each case. Is there a way to sandbox my dialog? Actually a

Running a .Net application in a sandbox

依然范特西╮ 提交于 2019-12-01 23:44:52
问题 Over the months, I've developed a personal tool that I'm using to compile C# 3.5 Xaml projects online. Basically, I'm compiling with the CodeDom compiler. I'm thinking about making it public, but the problem is that it is -very-very- easy to do anything on the server with this tool. The reason I want to protect my server is because there's a 'Run' button to test and debug the app (in screenshot mode). Is this possible to run an app in a sandbox - in other words, limiting memory access, hard

Confluence 6 识别系统属性

ぃ、小莉子 提交于 2019-12-01 23:04:10
Confluence 支持一些可以从 Java 系统属性中配置的配置参数和调试(debugging )设置。系统属性通常是使用 -D 为参数选项,这个选项是 Confluence 在运行后设置到 JVM 虚拟机中的。请参考: Configuring System Properties 页面中的内容来获得更多的信息。 开始版本 默认值 模块... 作用和影响 atlassian.forceSchemaUpdate 1.0 false atlassian-config 在默认的情况下,Confluence 只会在侦测到数据库更新后才会运行数据库 schema 更新。这个标志位将会强制 Confluence 在启动的时候对 schema 进行更新。 confluence.home 1.0 任何文件系统路径 Confluence and atlassian-config 如果这个属性被设置,Confluence 将会忽略 confluence-init.properties 属性文件中配置的信息,使用你在启动的时候指定的路径为 Confluence Home 目录。 confluence.dev.mode 1.0 false Confluence 针对 Confluence 开发人员,启用更多的 debugging 选项(这个也可能会修改 spring bean 的默认 lazy

Semi-sandboxing Javascript eval

被刻印的时光 ゝ 提交于 2019-12-01 19:06:01
Background : I'm working on a framework/library to be used for a specific site in coordination with greasemonkey/userscripts. This framework/library will allow for addon support. The way it will work is an addon registers with the library listing required pages, resources, ectera and the library will wait until all critera is met to call the addon's load() function. The Issue :In this listing of 'required stuff' I want addon devs to be able to specify javascript(as string) to be evaluated as a 'required resource'. For example 'document.getElementById("banana")' . What I want to do is semi

Flash AS3 Getting Security sandbox violation when trying fetch an external swf

本秂侑毒 提交于 2019-12-01 18:01:57
Hii, I'm tring to load swf file to my flash application from a different server. When i try to load it on flash IDE (crl+enter) everything is working fine, but when i run the swf as an independent swf file or by debugging it, i'm getting this error: SecurityError: Error #2121: Security sandbox violation: LoaderInfo.content: file:///C|/Users/something/Desktop/blablabla/myplayer.swf cannot access http://www.somedomain.com/blablabla/lalalala/abc.swf. This may be worked around by calling Security.allowDomain. at flash.display::LoaderInfo/get content() at wallplayer_fla::MainTimeline/swfLoaded()

Flash videos in WebView not working in sandboxed app

非 Y 不嫁゛ 提交于 2019-12-01 14:42:52
I'm having a problem with playing flash videos in my application. It's been working before, but ever since Apple has required every developer to enable entitlements and sandboxing, flash videos in the webview do not play. Everytime I disable sandboxing, it works, but if sandboxing is enabled, it doesn't. Below I've posted links images of the Sandboxing and Entitlements settings. Thanks. http://i.stack.imgur.com/LCpvJ.png http://i.stack.imgur.com/o6OVy.png figured out how to fix it... go to your entitlements and add: KEY: com.apple.security.temporary-exception.mach-lookup.global-name TYPE:Array