iframe.contentWindow surrogate
Posted: Mon Nov 09, 2015 8:51 pm
On the basis of the sample code and FireGloves made a surrogate:
It works. But if on the page https://www.browserleaks.com/javascript click on the button "iframe.contentWindow" appears real screen (with FireGloves this button is not pressed, with Random Agent Spoofer displayed the real screen, with Tor displayed 0x0 (UPD: even if privacy.resistFingerprinting;false)).
Made a surrogate:
It works, but not the content is displayed or not the buttons are pressed on the pages, which uses maps, such as:
maps.yandex.com, warfly.ru, google.com/maps and others. Is it possible to alter the surrogate to not have to make exceptions for sites such as these?
Here are the codes FireGloves and Tor: http://pastebin.com/v5h6JJBQ http://pastebin.com/yDimVJ6b http://pastebin.com/P7pZUAJR
Maybe they will help.
Code: Select all
replacement
Object.defineProperty(window, "screen", {enumerable:true, get:function(){return {width: 1280, height: 800, availWidth: 1280, availHeight: 800, colorDepth: 24, pixelDepth: 24, top: 0, left: 0, availTop:0, availLeft: 0}}, set:function(){}});
sources: @*
Made a surrogate:
Code: Select all
replacement
Object.defineProperty(window.HTMLIFrameElement.prototype, "contentWindow", {get: function() {}});
sources: @ * or !@ * same result.
maps.yandex.com, warfly.ru, google.com/maps and others. Is it possible to alter the surrogate to not have to make exceptions for sites such as these?
Here are the codes FireGloves and Tor: http://pastebin.com/v5h6JJBQ http://pastebin.com/yDimVJ6b http://pastebin.com/P7pZUAJR
Maybe they will help.