123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010 |
- var catvm = {};
- //框架运行内存
- catvm.memory = {
- config: {print: false, proxy:false}
- }; //默认关闭打印
- catvm.memory.htmlelements = {}
- catvm.memory.listeners = {}
- catvm.memory.PluginArray = {}
- catvm.memory.RunElementList = [];
- catvm.memory.setTimeout_func = {};
- catvm.memory.setInterval_func = {};
- catvm.memory.doc_addEventListen = {};
- catvm.memory.html_addEventListen = {};
- //主要用来保护伪造的函数 让其更难被识破
- ;;;;
- (() => {
- "use strict";
- const $toString = Function.toString;
- const myFunction_toString_symbol = Symbol('('.concat('', ')_', (Math.random() + '').toString(36)));
- const myToString = function() {
- return typeof this == 'function' && this[myFunction_toString_symbol] || $toString.call(this);
- };
- function set_native(func, key, value) {
- Object.defineProperty(func, key, {
- "enumerable": false,
- "configurable": true,
- "writable": true,
- "value": value
- })
- };
- delete Function.prototype['toString']; //删除原型链上的toString
- set_native(Function.prototype, "toString", myToString); //自己定义个getter方法
- set_native(Function.prototype.toString, myFunction_toString_symbol, "function toString() { [native code] }"); //套个娃 保护一下我们定义的toString 否则就暴露了
- this.catvm.safefunction = (func) => {
- set_native(func, myFunction_toString_symbol, `function ${myFunction_toString_symbol,func.name || ''}() { [native code] }`);
- }; //导出函数到globalThis
- }).call(this);
- //框架日志功能
- catvm.print = {}
- catvm.print.open = false;
- catvm.memory.print = [];
- catvm.print.log = function (logType,target,property,value) {
- if (catvm.print.open && catvm.memory.config.print) {
- //开始保存日志
- if( catvm.memory.print.length == 111){
- debugger;
- }
- catvm.memory.print.push({"类型":logType,"调用者":target,"属性":property,"值":value});
- }
- }
- catvm.print.getall = function () {
- console.table(catvm.memory.print,["类型","调用者","属性","值"]);
- }
- //框架代理功能
- catvm.proxy = function(o){
- if(catvm.memory.config.proxy == false){return o};
- return new Proxy(o, {
- set(target, property, value)
- {
- catvm.print.log("set",target,property,value);
- return Reflect.set(...arguments);
- },
- get(target, property, receiver)
- {
- console.log("get",target,property,target[property]);
- catvm.print.log("get",target,property,target[property]);
- return target[property];
- }
- });
- }
- //更改浏览器的某些参数 常用的
- //catvm.memory.Plugin.new({description:"npAliSSOLogin Plugin",filename:"npalissologin.dll",name:"AliSSOLogin plugin",MimeTypes:[{description: "AliSSOLogin",suffixes: "AliSSOLogin",type: "application/npalissologin"},{description: "AliSSOLogin1",suffixes: "AliSSOLogin",type: "application1/npalissologin"}]})
- //在此文件下的代码 必须要框架run方法执行后执行
- catvm.AddPlugin = function(data){
- //{description:"npAliSSOLogin Plugin",filename:"npalissologin.dll",name:"AliSSOLogin plugin",MimeTypes:[{description: "AliSSOLogin",suffixes: "AliSSOLogin",type: "application/npalissologin"},{description: "AliSSOLogin1",suffixes: "AliSSOLogin",type: "application1/npalissologin"}]}
- if(catvm.memory.PluginArray.temp == undefined)
- {
- catvm.memory.PluginArray.temp = []
- }
- catvm.memory.PluginArray.temp.push(data);
- }
- catvm.memory.config.proxy=true;
- catvm.memory.config.print=true;
- catvm.AddPlugin({description:"npAliSSOLogin Plugin",filename:"npalissologin.dll",name:"AliSSOLogin plugin",MimeTypes:[{description: "AliSSOLogin",suffixes: "AliSSOLogin",type: "application/npalissologin"},{description: "AliSSOLogin1",suffixes: "AliSSOLogin",type: "application1/npalissologin"}]});
- catvm.AddPlugin({description:"npAliSSOLogin Plugin",filename:"npalissologin1.dll",name:"AliSSOLogin plugin2",MimeTypes:[{description: "AliSSOLogin",suffixes: "AliSSOLogin",type: "application/npalissologin"},{description: "AliSSOLogin1",suffixes: "AliSSOLogin",type: "application1/npalissologin"}]});
- ;
- var EventTarget =function EventTarget() //构造函数
- {
- debugger;
- }; catvm.safefunction(EventTarget);
- Object.defineProperties(EventTarget.prototype , {
- [Symbol.toStringTag]: {
- value: "EventTarget",
- configurable: true
- }
- });
- EventTarget.prototype.addEventListener = function addEventListener(type, callback){
- if(!(type in catvm.memory.listeners)) {
- catvm.memory.listeners[type] = [];
- }
- catvm.memory.listeners[type].push(callback);
- };catvm.safefunction(EventTarget.prototype.addEventListener); //保护代码
- EventTarget.prototype.dispatchEvent = function dispatchEvent(){
- debugger;
- };catvm.safefunction(EventTarget.prototype.dispatchEvent); //保护代码
- EventTarget.prototype.removeEventListener = function removeEventListener(){
- debugger;
- };catvm.safefunction(EventTarget.prototype.removeEventListener); //保护代码
- var WindowProperties = function WindowProperties(){
- }; catvm.safefunction(WindowProperties); //保护代码
- Object.defineProperties(WindowProperties.prototype , {
- [Symbol.toStringTag]: {
- value: "WindowProperties",
- configurable: true
- }
- });
- WindowProperties.prototype.__proto__ = EventTarget.prototype;
- window = this;
- var Window = function Window(){
- //容易被检测到的 堆栈
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Window);
- Object.defineProperties(Window.prototype , {
- [Symbol.toStringTag]: {
- value: "Window",
- configurable: true
- }
- });
- ////
- window.setTimeout = function setTimeout(x,d)
- {
- //x 有可能是方法 也有可能是文本
- // debugger;
- // typeof(x) == "function"?x():undefined;
- // typeof(x) == "string"?eval(x) :undefined;
- //正确应该 生成UUID 并且保存到内存
- catvm.memory.setTimeout_func[d.toString()] = x
- return 0;
- };catvm.safefunction(window.setTimeout);
- window.setInterval = function setInterval(x,d){
- //x 有可能是方法 也有可能是文本
- // typeof(x) == "function" ? x() : undefined;
- // typeof(x) == "string" ? eval(x) : undefined;
- //正确应该 生成UUID 并且保存到内存
- catvm.memory.setInterval_func[d.toString()] = x
- return 0;
- };catvm.safefunction(window.setInterval);
- Window.prototype.PERSISTENT = 1
- Window.prototype.TEMPORARY = 0
- window.top = window;
- window.origin = 'chrome://newtab'
- window.name = ''
- window.open = function open(){debugger;};catvm.safefunction(window.open);
- window.webkitRTCPeerConnection = function RTCPeerConnection(){debugger};catvm.safefunction(window.webkitRTCPeerConnection);
- //chrome可以参照localStorange
- window.chrome = class chrome{};
- window.chrome.loadTimes = function loadTimes(){debugger;};catvm.safefunction(window.chrome.loadTimes);
- window.chrome.csi = function csi(){debugger;};catvm.safefunction(window.chrome.csi);
- window.chrome.app = catvm.proxy(class app{});
- window.chrome = catvm.proxy(window.chrome);
- window.Element = function Element(){debugger;};catvm.safefunction(window.Element);
- window.DeviceOrientationEvent = function DeviceOrientationEvent(){debugger};catvm.safefunction(window.DeviceOrientationEvent);
- window.DeviceMotionEvent = function DeviceMotionEvent(){debugger};catvm.safefunction(window.DeviceMotionEvent);
- window.XMLHttpRequest = function XMLHttpRequest(){debugger;};catvm.safefunction(window.XMLHttpRequest);
- // window.localStorange = class localStorange{}
- // window.localStorange.getItem = function getItem(){debugger;};catvm.safefunction(window.localStorange.getItem);
- // window.localStorange.setItem = function setItem(){debugger;};catvm.safefunction(window.localStorange.setItem);
- // window.localStorange = catvm.proxy(window.localStorange)
- //没问题
- window.IDBFactory = function IDBFactory(){
- debugger;
- };catvm.safefunction(window.IDBFactory);
- window.IDBFactory.prototype.open = function open(){
- debugger;
- var open_ = {
- error: "",
- onblocked: null,
- onerror: null,
- onsuccess: null,
- onupgradeneeded: null,
- readyState: "pending",
- result: "",
- source: null,
- transaction: null,
- }
- return catvm.proxy(open_)
- };catvm.safefunction(window.IDBFactory.prototype.open);
- window.indexedDB = {};
- window.indexedDB.__proto__ = window.IDBFactory.prototype;
- window.indexedDB = catvm.proxy(window.indexedDB);
- window.DOMParser = function DOMParser(){
- debugger;
- };catvm.safefunction(window.DOMParser);
- //没问题
- window.webkitRequestFileSystem = function webkitRequestFileSystem(){
- debugger;
- };catvm.safefunction(window.webkitRequestFileSystem);
- window.clearInterval = function clearInterval(){
- debugger;
- };catvm.safefunction(window.clearInterval);
- var HTMLFormElement = function HTMLFormElement(){
- };catvm.safefunction(HTMLFormElement);
- window.fetch = function fetch(){
- debugger;
- };catvm.safefunction(fetch);
- window.openDatabase = function openDatabase(){
- debugger;
- };catvm.safefunction(window.openDatabase);
- window.self = window;
- window.Request = function Request(){
- debugger;
- };catvm.safefunction(window.Request);
- window.webkitResolveLocalFileSystemURL = function webkitResolveLocalFileSystemURL(){
- debugger;
- };catvm.safefunction(window.webkitResolveLocalFileSystemURL);
- //没问题
- window.MutationObserver = function MutationObserver(){
- debugger;
- this.disconnect = function disconnect(){debugger;}
- this.observe = function observe(){debugger;}
- this.takeRecords = function takeRecords(){debugger;}
- return catvm.proxy(this)
- };catvm.safefunction(window.MutationObserver);
- window.Error = new Proxy(window.Error,{
- construct: function (a,s){
- res = new a(s)
- res.stack = `Error
- at _$e2 (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:20609)
- at _$nr (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:26991)
- at _$dg (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:22738)
- at _$nr (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:26104)
- at _$dg (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:22738)
- at _$nr (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:24525)
- at Array._$dg (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:22738)
- at eval (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:2:158543)
- at eval (eval at _$c5 (http://credit.customs.gov.cn/ccppwebserver/ZCQq7Fzuhp12/BSrw3csEQORp.f141528.js:5:170106), <anonymous>:9:2637)
- at eval (<anonymous>)`
- debugger
- return res;
- }
- });
- window.addEventListener = function addEventListener(X,func){
- debugger;
- catvm.memory.listeners[X.toString()] = func;
- };catvm.safefunction(window.addEventListener);
- Window.prototype.__proto__ = WindowProperties.prototype;
- window.__proto__ = Window.prototype;
- Window.prototype = catvm.proxy(Window.prototype)
- window = catvm.proxy(window)
- var Location =function Location() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Location);
- Object.defineProperties(Location.prototype , {
- [Symbol.toStringTag]: {
- value: "Location",
- configurable: false
- }
- });
- ////
- location = {};
- location.ancestorOrigins = catvm.proxy(class ancestorOrigins{});
- location.href = 'http://zxgk.court.gov.cn/';
- location.host = 'zxgk.court.gov.cn'; //如果url中包含了:端口号,则就要加上,但是hostname不用加
- location.hostname = location.host;
- location.protocol = 'http:';
- location.port = '';
- location.origin = 'http://zxgk.court.gov.cn';
- location.pathname = '/'
- location.search = "";
- location.hash = "";
- location.search = function search(){
- debugger;
- };catvm.safefunction(location.search);
- location.replace = function replace(){
- debugger;
- };catvm.safefunction(location.replace);
- location.__proto__ = Location.prototype;
- ///
- location = catvm.proxy(location);
- catvm.memory.navigator = {}
- var Navigator =function Navigator() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Navigator);
- Object.defineProperties(Navigator.prototype , {
- [Symbol.toStringTag]: {
- value: "Navigator",
- configurable: true
- }
- });
- ////
- navigator = {};
- navigator.__proto__ = Navigator.prototype;
- Navigator.prototype.appCodeName = 'Mozilla';
- Navigator.prototype.appName = 'Netscape';
- Navigator.prototype.userAgent = "5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36";
- Navigator.prototype.languages = ["zh-CN", "zh"];
- Navigator.prototype.platform = 'Win32';
- Navigator.prototype.plugins = [];
- var NetworkInformation = class NetworkInformation{};
- NetworkInformation.downlink = 10;
- NetworkInformation.effectiveType = "4g";
- NetworkInformation.onchange = null;
- NetworkInformation.rtt = 150;
- NetworkInformation.saveData = false;
- Navigator.prototype.connection = catvm.proxy(NetworkInformation);
- Navigator.prototype.appVersion = '5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36';
- Navigator.prototype.webkitPersistentStorage = class DeprecatedStorageQuota{};
- Navigator.prototype.webkitPersistentStorage = catvm.proxy(Navigator.prototype.webkitPersistentStorage);
- Navigator.prototype.mimeTypes = {
- length:0
- }
- Navigator.prototype.mimeTypes = catvm.proxy(Navigator.prototype.mimeTypes);
- Navigator.prototype.webdriver = false;
- catvm.memory.navigator.getwebdriver = function webdriver(){
- return false;
- };catvm.safefunction(catvm.memory.navigator.getwebdriver);
- Object.defineProperty(Navigator.prototype, 'webdriver', {
- configurable: true,
- enumerable: true,
- get: catvm.memory.navigator.getwebdriver
- });
- Navigator.prototype.getBattery = function getBattery(){
- var BatteryManager_ = new (function BatteryManager(){});
- BatteryManager_.charging = false;
- BatteryManager_.chargingTime = Infinity;
- BatteryManager_.dischargingTime = Infinity;
- BatteryManager_.level = 1;
- BatteryManager_.onchargingchange = null;
- BatteryManager_.onchargingtimechange = null;
- BatteryManager_.ondischargingtimechange = null;
- BatteryManager_.onlevelchange = null;
- BatteryManager_.__proto__ = BatteryManager.prototype;
- return new Promise((resolve,reject) => {
- resolve(BatteryManager_);
- })
- };catvm.safefunction(Navigator.prototype.getBattery);
- //Navigator.prototype.getBattery = catvm.proxy(Navigator.prototype.getBattery);
- for (catvm.memory.navigator.temp in Navigator.prototype) {
- if(catvm.memory.navigator.temp === "webdriver"){
- continue;
- }
- navigator[catvm.memory.navigator.temp] = Navigator.prototype[catvm.memory.navigator.temp];
- Navigator.prototype.__defineGetter__(catvm.memory.navigator.temp, function() {
- throw new TypeError("Illegal constructor");
- });
- }
- ////
- window.clientInformation = navigator;
- navigator = catvm.proxy(navigator);
- var History =function History() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(History);
- Object.defineProperties(History.prototype , {
- [Symbol.toStringTag]: {
- value: "History",
- configurable: true
- }
- });
- ////
- History.prototype.back = function back(){debugger};catvm.safefunction(History.prototype.back);
- /////
- history = {};
- history.__proto__ = History.prototype;
- history = catvm.proxy(history);
- var Screen =function Screen() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Screen);
- Object.defineProperties(Screen.prototype , {
- [Symbol.toStringTag]: {
- value: "Screen",
- configurable: true
- }
- });
- ////
- Screen.prototype.availHeight = 824;
- Screen.prototype.availWidth = 1536;
- ////
- screen = {};
- screen.__proto__ = Screen.prototype;
- screen = catvm.proxy(screen);
- var Storage =function Storage() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Storage);
- Object.defineProperties(Storage.prototype , {
- [Symbol.toStringTag]: {
- value: "Storage",
- configurable: true
- }
- });
- /////
- Storage.prototype.length=0;
- Storage.prototype.clear=function clear(){
- debugger;
- var temp = Object.keys(this)
- for (var i=0;temp.length>i;i++)
- {
- delete this[temp[i]];
- }
- }; catvm.safefunction(Storage.prototype.clear);
- Storage.prototype.getItem=function getItem(k){
- debugger;
- return this[k];
- }; catvm.safefunction(Storage.prototype.getItem);
- Storage.prototype.key=function key(index){
- debugger;
- return Object.keys(this)[index]
- }; catvm.safefunction(Storage.prototype.key);
- Storage.prototype.removeItem=function removeItem(k){
- debugger;
- delete this[k];
- }; catvm.safefunction(Storage.prototype.removeItem);
- Storage.prototype.setItem=function setItem(k,v){
- debugger;
- this[k] = v;
- }; catvm.safefunction(Storage.prototype.setItem);
- ////容易被检测
- Storage.prototype.__defineGetter__('length',function(){
- return Object.keys(this).length;
- })
- //////
- var localStorage = {};
- localStorage.__proto__ = Storage.prototype;
- localStorage = catvm.proxy(localStorage);
- var sessionStorage = {
- length: 0
- };
- sessionStorage.__proto__ = Storage.prototype;
- sessionStorage = catvm.proxy(sessionStorage);
- catvm.memory.Plugin = {}
- var Plugin =function Plugin() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Plugin);
- catvm.memory.Plugin.iterator = function values(){
- debugger;
- }; catvm.safefunction(catvm.memory.Plugin.iterator);
- Object.defineProperties(Navigator.prototype , {
- [Symbol.toStringTag]: {
- value: "Plugin",
- configurable: true
- },
- [Symbol.iterator]: {
- value: catvm.memory.Plugin.iterator,
- configurable: true
- }
- });
- ///////////
- //////////
- catvm.memory.Plugin.new = function (data){
- var plugin = {};
- plugin.__proto__ = Plugin.prototype;
- if(data != undefined){
- plugin.description = data.description;
- plugin.filename = data.filename;
- plugin.name = data.name;
- }
- return plugin;
- }
- var Performance = function Performance(){
- //容易被检测到的 堆栈
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(Performance);
- Object.defineProperties(Performance.prototype , {
- [Symbol.toStringTag]: {
- value: "Performance",
- configurable: true
- }
- });
- ////
- performance = {};
- performance.__proto__ = Performance.prototype;
- Performance.prototype = function getEntriesByName(){debugger};catvm.safefunction(Performance.prototype);
- /////
- Performance.prototype.__proto__ = EventTarget.prototype;
- performance = catvm.proxy(performance);
- var BatteryManager = function BatteryManager(){
- //容易被检测到的 堆栈
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(BatteryManager);
- Object.defineProperties(BatteryManager.prototype , {
- [Symbol.toStringTag]: {
- value: "BatteryManager",
- configurable: true
- }
- });
- ///
- BatteryManager.prototype.charging = true;
- BatteryManager.prototype.chargingTime = Infinity;
- BatteryManager.prototype.dischargingTime = Infinity;
- BatteryManager.prototype.level = 1;
- BatteryManager.prototype.onchargingchange = null;
- BatteryManager.prototype.onchargingtimechange = null;
- BatteryManager.prototype.ondischargingtimechange = null;
- BatteryManager.prototype.onlevelchange = null;
- BatteryManager.prototype.__proto__ = EventTarget.prototype
- /////
- catvm.memory.navigator = {}
- var HTMLDivElement =function HTMLDivElement() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(HTMLDivElement);
- Object.defineProperties(HTMLDivElement.prototype , {
- [Symbol.toStringTag]: {
- value: "HTMLDivElement",
- configurable: true
- }
- });
- HTMLDivElement.prototype.getElementsByTagName = function getElementsByTagName(){
- debugger
- };catvm.safefunction(HTMLDivElement.prototype.getElementsByTagName);
- var HTMLMetaElement =function HTMLMetaElement() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(HTMLMetaElement);
- Object.defineProperties(HTMLMetaElement.prototype , {
- [Symbol.toStringTag]: {
- value: "HTMLMetaElement",
- configurable: true
- }
- });
- var HTMLHtmlElement =function HTMLHtmlElement() {//构造函数
- throw new TypeError("Illegal constructor");
- }; catvm.safefunction(HTMLHtmlElement);
- Object.defineProperties(HTMLHtmlElement.prototype , {
- [Symbol.toStringTag]: {
- value: "HTMLHtmlElement",
- configurable: true
- }
- });
- var Document = function Document(){
- }; catvm.safefunction(Document);
- Object.defineProperties(Document.prototype , {
- [Symbol.toStringTag]: {
- value: "Document",
- configurable: true
- }
- });
- document = {};
- document.__proto__ = Document.prototype;
- //////
- document.characterSet = 'UTF-8'
- document.charset = 'UTF-8'
- //没问题
- document.getElementById = function getElementById(id){
- debugger;
- return null;
- };catvm.safefunction(document.getElementById);
- //没问题
- document.addEventListener = function addEventListener(type,listener,options,useCapture){
- debugger;
- if(catvm.memory.doc_addEventListen[type.toString()] == undefined){
- catvm.memory.doc_addEventListen[type.toString()] = [];
- }
- catvm.memory.doc_addEventListen[type.toString()].push(listener);
- };catvm.safefunction(document.addEventListener);
- document.exitFullscreen = function exitFullscreen(){debugger;};catvm.safefunction(document.exitFullscreen);
- //没问题
- document.createElement = function createElement(x){
- debugger;
- if(x=="div"){
- let div = class div{};
- div.localName = `<${x}></${x}>`;
- div.getElementsByTagName = function(){
- var i = class i{};
- i.length = 0;
- return catvm.proxy(i);
- };catvm.safefunction(div.getElementsByTagName);
- div.style = {
- "accentColor": "",
- "additiveSymbols": "",
- "alignContent": "",
- "alignItems": "",
- "alignSelf": "",
- "alignmentBaseline": "",
- "all": "",
- "animation": "",
- "animationDelay": "",
- "animationDirection": "",
- "animationDuration": "",
- "animationFillMode": "",
- "animationIterationCount": "",
- "animationName": "",
- "animationPlayState": "",
- "animationTimingFunction": "",
- "appRegion": "",
- "appearance": "",
- "ascentOverride": "",
- "aspectRatio": "",
- "backdropFilter": "",
- "backfaceVisibility": "",
- "background": "",
- "backgroundAttachment": "",
- "backgroundBlendMode": "",
- "backgroundClip": "",
- "backgroundColor": "",
- "backgroundImage": "",
- "backgroundOrigin": "",
- "backgroundPosition": "",
- "backgroundPositionX": "",
- "backgroundPositionY": "",
- "backgroundRepeat": "",
- "backgroundRepeatX": "",
- "backgroundRepeatY": "",
- "backgroundSize": "",
- "baselineShift": "",
- "blockSize": "",
- "border": "",
- "borderBlock": "",
- "borderBlockColor": "",
- "borderBlockEnd": "",
- "borderBlockEndColor": "",
- "borderBlockEndStyle": "",
- "borderBlockEndWidth": "",
- "borderBlockStart": "",
- "borderBlockStartColor": "",
- "borderBlockStartStyle": "",
- "borderBlockStartWidth": "",
- "borderBlockStyle": "",
- "borderBlockWidth": "",
- "borderBottom": "",
- "borderBottomColor": "",
- "borderBottomLeftRadius": "",
- "borderBottomRightRadius": "",
- "borderBottomStyle": "",
- "borderBottomWidth": "",
- "borderCollapse": "",
- "borderColor": "",
- "borderEndEndRadius": "",
- "borderEndStartRadius": "",
- "borderImage": "",
- "borderImageOutset": "",
- "borderImageRepeat": "",
- "borderImageSlice": "",
- "borderImageSource": "",
- "borderImageWidth": "",
- "borderInline": "",
- "borderInlineColor": "",
- "borderInlineEnd": "",
- "borderInlineEndColor": "",
- "borderInlineEndStyle": "",
- "borderInlineEndWidth": "",
- "borderInlineStart": "",
- "borderInlineStartColor": "",
- "borderInlineStartStyle": "",
- "borderInlineStartWidth": "",
- "borderInlineStyle": "",
- "borderInlineWidth": "",
- "borderLeft": "",
- "borderLeftColor": "",
- "borderLeftStyle": "",
- "borderLeftWidth": "",
- "borderRadius": "",
- "borderRight": "",
- "borderRightColor": "",
- "borderRightStyle": "",
- "borderRightWidth": "",
- "borderSpacing": "",
- "borderStartEndRadius": "",
- "borderStartStartRadius": "",
- "borderStyle": "",
- "borderTop": "",
- "borderTopColor": "",
- "borderTopLeftRadius": "",
- "borderTopRightRadius": "",
- "borderTopStyle": "",
- "borderTopWidth": "",
- "borderWidth": "",
- "bottom": "",
- "boxShadow": "",
- "boxSizing": "",
- "breakAfter": "",
- "breakBefore": "",
- "breakInside": "",
- "bufferedRendering": "",
- "captionSide": "",
- "caretColor": "",
- "clear": "",
- "clip": "",
- "clipPath": "",
- "clipRule": "",
- "color": "",
- "colorInterpolation": "",
- "colorInterpolationFilters": "",
- "colorRendering": "",
- "colorScheme": "",
- "columnCount": "",
- "columnFill": "",
- "columnGap": "",
- "columnRule": "",
- "columnRuleColor": "",
- "columnRuleStyle": "",
- "columnRuleWidth": "",
- "columnSpan": "",
- "columnWidth": "",
- "columns": "",
- "contain": "",
- "containIntrinsicBlockSize": "",
- "containIntrinsicHeight": "",
- "containIntrinsicInlineSize": "",
- "containIntrinsicSize": "",
- "containIntrinsicWidth": "",
- "content": "",
- "contentVisibility": "",
- "counterIncrement": "",
- "counterReset": "",
- "counterSet": "",
- "cursor": "",
- "cx": "",
- "cy": "",
- "d": "",
- "descentOverride": "",
- "direction": "",
- "display": "",
- "dominantBaseline": "",
- "emptyCells": "",
- "fallback": "",
- "fill": "",
- "fillOpacity": "",
- "fillRule": "",
- "filter": "",
- "flex": "",
- "flexBasis": "",
- "flexDirection": "",
- "flexFlow": "",
- "flexGrow": "",
- "flexShrink": "",
- "flexWrap": "",
- "float": "",
- "floodColor": "",
- "floodOpacity": "",
- "font": "",
- "fontDisplay": "",
- "fontFamily": "",
- "fontFeatureSettings": "",
- "fontKerning": "",
- "fontOpticalSizing": "",
- "fontSize": "",
- "fontStretch": "",
- "fontStyle": "",
- "fontVariant": "",
- "fontVariantCaps": "",
- "fontVariantEastAsian": "",
- "fontVariantLigatures": "",
- "fontVariantNumeric": "",
- "fontVariationSettings": "",
- "fontWeight": "",
- "forcedColorAdjust": "",
- "gap": "",
- "grid": "",
- "gridArea": "",
- "gridAutoColumns": "",
- "gridAutoFlow": "",
- "gridAutoRows": "",
- "gridColumn": "",
- "gridColumnEnd": "",
- "gridColumnGap": "",
- "gridColumnStart": "",
- "gridGap": "",
- "gridRow": "",
- "gridRowEnd": "",
- "gridRowGap": "",
- "gridRowStart": "",
- "gridTemplate": "",
- "gridTemplateAreas": "",
- "gridTemplateColumns": "",
- "gridTemplateRows": "",
- "height": "",
- "hyphens": "",
- "imageOrientation": "",
- "imageRendering": "",
- "inherits": "",
- "initialValue": "",
- "inlineSize": "",
- "inset": "",
- "insetBlock": "",
- "insetBlockEnd": "",
- "insetBlockStart": "",
- "insetInline": "",
- "insetInlineEnd": "",
- "insetInlineStart": "",
- "isolation": "",
- "justifyContent": "",
- "justifyItems": "",
- "justifySelf": "",
- "left": "",
- "letterSpacing": "",
- "lightingColor": "",
- "lineBreak": "",
- "lineGapOverride": "",
- "lineHeight": "",
- "listStyle": "",
- "listStyleImage": "",
- "listStylePosition": "",
- "listStyleType": "",
- "margin": "",
- "marginBlock": "",
- "marginBlockEnd": "",
- "marginBlockStart": "",
- "marginBottom": "",
- "marginInline": "",
- "marginInlineEnd": "",
- "marginInlineStart": "",
- "marginLeft": "",
- "marginRight": "",
- "marginTop": "",
- "marker": "",
- "markerEnd": "",
- "markerMid": "",
- "markerStart": "",
- "mask": "",
- "maskType": "",
- "maxBlockSize": "",
- "maxHeight": "",
- "maxInlineSize": "",
- "maxWidth": "",
- "maxZoom": "",
- "minBlockSize": "",
- "minHeight": "",
- "minInlineSize": "",
- "minWidth": "",
- "minZoom": "",
- "mixBlendMode": "",
- "negative": "",
- "objectFit": "",
- "objectPosition": "",
- "offset": "",
- "offsetDistance": "",
- "offsetPath": "",
- "offsetRotate": "",
- "opacity": "",
- "order": "",
- "orientation": "",
- "orphans": "",
- "outline": "",
- "outlineColor": "",
- "outlineOffset": "",
- "outlineStyle": "",
- "outlineWidth": "",
- "overflow": "",
- "overflowAnchor": "",
- "overflowClipMargin": "",
- "overflowWrap": "",
- "overflowX": "",
- "overflowY": "",
- "overscrollBehavior": "",
- "overscrollBehaviorBlock": "",
- "overscrollBehaviorInline": "",
- "overscrollBehaviorX": "",
- "overscrollBehaviorY": "",
- "pad": "",
- "padding": "",
- "paddingBlock": "",
- "paddingBlockEnd": "",
- "paddingBlockStart": "",
- "paddingBottom": "",
- "paddingInline": "",
- "paddingInlineEnd": "",
- "paddingInlineStart": "",
- "paddingLeft": "",
- "paddingRight": "",
- "paddingTop": "",
- "page": "",
- "pageBreakAfter": "",
- "pageBreakBefore": "",
- "pageBreakInside": "",
- "pageOrientation": "",
- "paintOrder": "",
- "perspective": "",
- "perspectiveOrigin": "",
- "placeContent": "",
- "placeItems": "",
- "placeSelf": "",
- "pointerEvents": "",
- "position": "",
- "prefix": "",
- "quotes": "",
- "r": "",
- "range": "",
- "resize": "",
- "right": "",
- "rowGap": "",
- "rubyPosition": "",
- "rx": "",
- "ry": "",
- "scrollBehavior": "",
- "scrollMargin": "",
- "scrollMarginBlock": "",
- "scrollMarginBlockEnd": "",
- "scrollMarginBlockStart": "",
- "scrollMarginBottom": "",
- "scrollMarginInline": "",
- "scrollMarginInlineEnd": "",
- "scrollMarginInlineStart": "",
- "scrollMarginLeft": "",
- "scrollMarginRight": "",
- "scrollMarginTop": "",
- "scrollPadding": "",
- "scrollPaddingBlock": "",
- "scrollPaddingBlockEnd": "",
- "scrollPaddingBlockStart": "",
- "scrollPaddingBottom": "",
- "scrollPaddingInline": "",
- "scrollPaddingInlineEnd": "",
- "scrollPaddingInlineStart": "",
- "scrollPaddingLeft": "",
- "scrollPaddingRight": "",
- "scrollPaddingTop": "",
- "scrollSnapAlign": "",
- "scrollSnapStop": "",
- "scrollSnapType": "",
- "scrollbarGutter": "",
- "shapeImageThreshold": "",
- "shapeMargin": "",
- "shapeOutside": "",
- "shapeRendering": "",
- "size": "",
- "sizeAdjust": "",
- "speak": "",
- "speakAs": "",
- "src": "",
- "stopColor": "",
- "stopOpacity": "",
- "stroke": "",
- "strokeDasharray": "",
- "strokeDashoffset": "",
- "strokeLinecap": "",
- "strokeLinejoin": "",
- "strokeMiterlimit": "",
- "strokeOpacity": "",
- "strokeWidth": "",
- "suffix": "",
- "symbols": "",
- "syntax": "",
- "system": "",
- "tabSize": "",
- "tableLayout": "",
- "textAlign": "",
- "textAlignLast": "",
- "textAnchor": "",
- "textCombineUpright": "",
- "textDecoration": "",
- "textDecorationColor": "",
- "textDecorationLine": "",
- "textDecorationSkipInk": "",
- "textDecorationStyle": "",
- "textDecorationThickness": "",
- "textIndent": "",
- "textOrientation": "",
- "textOverflow": "",
- "textRendering": "",
- "textShadow": "",
- "textSizeAdjust": "",
- "textTransform": "",
- "textUnderlineOffset": "",
- "textUnderlinePosition": "",
- "top": "",
- "touchAction": "",
- "transform": "",
- "transformBox": "",
- "transformOrigin": "",
- "transformStyle": "",
- "transition": "",
- "transitionDelay": "",
- "transitionDuration": "",
- "transitionProperty": "",
- "transitionTimingFunction": "",
- "unicodeBidi": "",
- "unicodeRange": "",
- "userSelect": "",
- "userZoom": "",
- "vectorEffect": "",
- "verticalAlign": "",
- "visibility": "",
- "webkitAlignContent": "",
- "webkitAlignItems": "",
- "webkitAlignSelf": "",
- "webkitAnimation": "",
- "webkitAnimationDelay": "",
- "webkitAnimationDirection": "",
- "webkitAnimationDuration": "",
- "webkitAnimationFillMode": "",
- "webkitAnimationIterationCount": "",
- "webkitAnimationName": "",
- "webkitAnimationPlayState": "",
- "webkitAnimationTimingFunction": "",
- "webkitAppRegion": "",
- "webkitAppearance": "",
- "webkitBackfaceVisibility": "",
- "webkitBackgroundClip": "",
- "webkitBackgroundOrigin": "",
- "webkitBackgroundSize": "",
- "webkitBorderAfter": "",
- "webkitBorderAfterColor": "",
- "webkitBorderAfterStyle": "",
- "webkitBorderAfterWidth": "",
- "webkitBorderBefore": "",
- "webkitBorderBeforeColor": "",
- "webkitBorderBeforeStyle": "",
- "webkitBorderBeforeWidth": "",
- "webkitBorderBottomLeftRadius": "",
- "webkitBorderBottomRightRadius": "",
- "webkitBorderEnd": "",
- "webkitBorderEndColor": "",
- "webkitBorderEndStyle": "",
- "webkitBorderEndWidth": "",
- "webkitBorderHorizontalSpacing": "",
- "webkitBorderImage": "",
- "webkitBorderRadius": "",
- "webkitBorderStart": "",
- "webkitBorderStartColor": "",
- "webkitBorderStartStyle": "",
- "webkitBorderStartWidth": "",
- "webkitBorderTopLeftRadius": "",
- "webkitBorderTopRightRadius": "",
- "webkitBorderVerticalSpacing": "",
- "webkitBoxAlign": "",
- "webkitBoxDecorationBreak": "",
- "webkitBoxDirection": "",
- "webkitBoxFlex": "",
- "webkitBoxOrdinalGroup": "",
- "webkitBoxOrient": "",
- "webkitBoxPack": "",
- "webkitBoxReflect": "",
- "webkitBoxShadow": "",
- "webkitBoxSizing": "",
- "webkitClipPath": "",
- "webkitColumnBreakAfter": "",
- "webkitColumnBreakBefore": "",
- "webkitColumnBreakInside": "",
- "webkitColumnCount": "",
- "webkitColumnGap": "",
- "webkitColumnRule": "",
- "webkitColumnRuleColor": "",
- "webkitColumnRuleStyle": "",
- "webkitColumnRuleWidth": "",
- "webkitColumnSpan": "",
- "webkitColumnWidth": "",
- "webkitColumns": "",
- "webkitFilter": "",
- "webkitFlex": "",
- "webkitFlexBasis": "",
- "webkitFlexDirection": "",
- "webkitFlexFlow": "",
- "webkitFlexGrow": "",
- "webkitFlexShrink": "",
- "webkitFlexWrap": "",
- "webkitFontFeatureSettings": "",
- "webkitFontSmoothing": "",
- "webkitHighlight": "",
- "webkitHyphenateCharacter": "",
- "webkitJustifyContent": "",
- "webkitLineBreak": "",
- "webkitLineClamp": "",
- "webkitLocale": "",
- "webkitLogicalHeight": "",
- "webkitLogicalWidth": "",
- "webkitMarginAfter": "",
- "webkitMarginBefore": "",
- "webkitMarginEnd": "",
- "webkitMarginStart": "",
- "webkitMask": "",
- "webkitMaskBoxImage": "",
- "webkitMaskBoxImageOutset": "",
- "webkitMaskBoxImageRepeat": "",
- "webkitMaskBoxImageSlice": "",
- "webkitMaskBoxImageSource": "",
- "webkitMaskBoxImageWidth": "",
- "webkitMaskClip": "",
- "webkitMaskComposite": "",
- "webkitMaskImage": "",
- "webkitMaskOrigin": "",
- "webkitMaskPosition": "",
- "webkitMaskPositionX": "",
- "webkitMaskPositionY": "",
- "webkitMaskRepeat": "",
- "webkitMaskRepeatX": "",
- "webkitMaskRepeatY": "",
- "webkitMaskSize": "",
- "webkitMaxLogicalHeight": "",
- "webkitMaxLogicalWidth": "",
- "webkitMinLogicalHeight": "",
- "webkitMinLogicalWidth": "",
- "webkitOpacity": "",
- "webkitOrder": "",
- "webkitPaddingAfter": "",
- "webkitPaddingBefore": "",
- "webkitPaddingEnd": "",
- "webkitPaddingStart": "",
- "webkitPerspective": "",
- "webkitPerspectiveOrigin": "",
- "webkitPerspectiveOriginX": "",
- "webkitPerspectiveOriginY": "",
- "webkitPrintColorAdjust": "",
- "webkitRtlOrdering": "",
- "webkitRubyPosition": "",
- "webkitShapeImageThreshold": "",
- "webkitShapeMargin": "",
- "webkitShapeOutside": "",
- "webkitTapHighlightColor": "",
- "webkitTextCombine": "",
- "webkitTextDecorationsInEffect": "",
- "webkitTextEmphasis": "",
- "webkitTextEmphasisColor": "",
- "webkitTextEmphasisPosition": "",
- "webkitTextEmphasisStyle": "",
- "webkitTextFillColor": "",
- "webkitTextOrientation": "",
- "webkitTextSecurity": "",
- "webkitTextSizeAdjust": "",
- "webkitTextStroke": "",
- "webkitTextStrokeColor": "",
- "webkitTextStrokeWidth": "",
- "webkitTransform": "",
- "webkitTransformOrigin": "",
- "webkitTransformOriginX": "",
- "webkitTransformOriginY": "",
- "webkitTransformOriginZ": "",
- "webkitTransformStyle": "",
- "webkitTransition": "",
- "webkitTransitionDelay": "",
- "webkitTransitionDuration": "",
- "webkitTransitionProperty": "",
- "webkitTransitionTimingFunction": "",
- "webkitUserDrag": "",
- "webkitUserModify": "",
- "webkitUserSelect": "",
- "webkitWritingMode": "",
- "whiteSpace": "",
- "widows": "",
- "width": "",
- "willChange": "",
- "wordBreak": "",
- "wordSpacing": "",
- "wordWrap": "",
- "writingMode": "",
- "x": "",
- "y": "",
- "zIndex": "",
- "zoom": ""
- }
- div.innerHTML = '<\!--[if gt IE 4]><i></i><![endif]-->';
- return catvm.proxy(div);
- }
- if(x=="form"){
- let iframe = class iframe{};
- return catvm.proxy(iframe)
- }
- if(x=='a'){
- return {};
- }
- debugger;
- };catvm.safefunction(document.createElement);
- //没问题
- document.getElementsByTagName = function getElementsByTagName(name){ //返回HTMLCollection
- debugger;
- //没问题
- if(name=='meta'){
- debugger;
- var meta0 = {
- parentNode:{
- removeChild : function(){debugger;}
- },
- getAttribute:function(){debugger;return null}
- }
- catvm.safefunction(meta0.getAttribute);
- catvm.safefunction(meta0.parentNode.removeChild);
- meta0.__proto__ = HTMLMetaElement.prototype;
- meta0 = catvm.proxy(meta0)
- var meta1 = {
- content:"window.content",
- parentNode:{
- removeChild : function(){debugger;}
- },
- getAttribute:function(){debugger;return "m"}
- }
- catvm.safefunction(meta1.getAttribute);
- catvm.safefunction(meta1.parentNode);
- meta1.__proto__ = HTMLMetaElement.prototype;
- meta1 = catvm.proxy(meta1)
- var obj = {
- length:2,
- 0:meta0,
- 1:meta1,
- }
- obj = catvm.proxy(obj)
- return obj
- }
- //没问题
- if(name=="script"){ //没问题
- debugger;
- function getAttribute(name){
- debugger;
- if(name=='r'){
- return 'm'
- }
- return null
- };catvm.safefunction(getAttribute);
- function removeChild(name){
- debugger;
- };catvm.safefunction(removeChild);
- var script1 = {
- "getAttribute" : getAttribute,
- "parentElement":{
- removeChild : removeChild
- }
- };
- script1 = catvm.proxy(script1);
- var script2 = {
- "getAttribute" : getAttribute,
- "parentElement":{
- removeChild : removeChild
- }
- };
- script2 = catvm.proxy(script2);
- // var script3 = {
- // "getAttribute" : getAttribute,
- // "parentElement":{
- // removeChild : removeChild
- // }
- // };
- // script3 = catvm.proxy(script3);
- var obj = {
- 0 : script1,
- 1 : script2,
- length : 2,
- }
- obj = catvm.proxy(obj);
- return obj
- }
- if(name=="base"){
- var base = class base{};
- base.length = 0;
- return catvm.proxy(base)
- }
- };catvm.safefunction(document.getElementsByTagName);
- var html = class html{};
- html.style = {
- "accentColor": "",
- "additiveSymbols": "",
- "alignContent": "",
- "alignItems": "",
- "alignSelf": "",
- "alignmentBaseline": "",
- "all": "",
- "animation": "",
- "animationDelay": "",
- "animationDirection": "",
- "animationDuration": "",
- "animationFillMode": "",
- "animationIterationCount": "",
- "animationName": "",
- "animationPlayState": "",
- "animationTimingFunction": "",
- "appRegion": "",
- "appearance": "",
- "ascentOverride": "",
- "aspectRatio": "",
- "backdropFilter": "",
- "backfaceVisibility": "",
- "background": "",
- "backgroundAttachment": "",
- "backgroundBlendMode": "",
- "backgroundClip": "",
- "backgroundColor": "",
- "backgroundImage": "",
- "backgroundOrigin": "",
- "backgroundPosition": "",
- "backgroundPositionX": "",
- "backgroundPositionY": "",
- "backgroundRepeat": "",
- "backgroundRepeatX": "",
- "backgroundRepeatY": "",
- "backgroundSize": "",
- "baselineShift": "",
- "blockSize": "",
- "border": "",
- "borderBlock": "",
- "borderBlockColor": "",
- "borderBlockEnd": "",
- "borderBlockEndColor": "",
- "borderBlockEndStyle": "",
- "borderBlockEndWidth": "",
- "borderBlockStart": "",
- "borderBlockStartColor": "",
- "borderBlockStartStyle": "",
- "borderBlockStartWidth": "",
- "borderBlockStyle": "",
- "borderBlockWidth": "",
- "borderBottom": "",
- "borderBottomColor": "",
- "borderBottomLeftRadius": "",
- "borderBottomRightRadius": "",
- "borderBottomStyle": "",
- "borderBottomWidth": "",
- "borderCollapse": "",
- "borderColor": "",
- "borderEndEndRadius": "",
- "borderEndStartRadius": "",
- "borderImage": "",
- "borderImageOutset": "",
- "borderImageRepeat": "",
- "borderImageSlice": "",
- "borderImageSource": "",
- "borderImageWidth": "",
- "borderInline": "",
- "borderInlineColor": "",
- "borderInlineEnd": "",
- "borderInlineEndColor": "",
- "borderInlineEndStyle": "",
- "borderInlineEndWidth": "",
- "borderInlineStart": "",
- "borderInlineStartColor": "",
- "borderInlineStartStyle": "",
- "borderInlineStartWidth": "",
- "borderInlineStyle": "",
- "borderInlineWidth": "",
- "borderLeft": "",
- "borderLeftColor": "",
- "borderLeftStyle": "",
- "borderLeftWidth": "",
- "borderRadius": "",
- "borderRight": "",
- "borderRightColor": "",
- "borderRightStyle": "",
- "borderRightWidth": "",
- "borderSpacing": "",
- "borderStartEndRadius": "",
- "borderStartStartRadius": "",
- "borderStyle": "",
- "borderTop": "",
- "borderTopColor": "",
- "borderTopLeftRadius": "",
- "borderTopRightRadius": "",
- "borderTopStyle": "",
- "borderTopWidth": "",
- "borderWidth": "",
- "bottom": "",
- "boxShadow": "",
- "boxSizing": "",
- "breakAfter": "",
- "breakBefore": "",
- "breakInside": "",
- "bufferedRendering": "",
- "captionSide": "",
- "caretColor": "",
- "clear": "",
- "clip": "",
- "clipPath": "",
- "clipRule": "",
- "color": "",
- "colorInterpolation": "",
- "colorInterpolationFilters": "",
- "colorRendering": "",
- "colorScheme": "",
- "columnCount": "",
- "columnFill": "",
- "columnGap": "",
- "columnRule": "",
- "columnRuleColor": "",
- "columnRuleStyle": "",
- "columnRuleWidth": "",
- "columnSpan": "",
- "columnWidth": "",
- "columns": "",
- "contain": "",
- "containIntrinsicBlockSize": "",
- "containIntrinsicHeight": "",
- "containIntrinsicInlineSize": "",
- "containIntrinsicSize": "",
- "containIntrinsicWidth": "",
- "content": "",
- "contentVisibility": "",
- "counterIncrement": "",
- "counterReset": "",
- "counterSet": "",
- "cursor": "",
- "cx": "",
- "cy": "",
- "d": "",
- "descentOverride": "",
- "direction": "",
- "display": "",
- "dominantBaseline": "",
- "emptyCells": "",
- "fallback": "",
- "fill": "",
- "fillOpacity": "",
- "fillRule": "",
- "filter": "",
- "flex": "",
- "flexBasis": "",
- "flexDirection": "",
- "flexFlow": "",
- "flexGrow": "",
- "flexShrink": "",
- "flexWrap": "",
- "float": "",
- "floodColor": "",
- "floodOpacity": "",
- "font": "",
- "fontDisplay": "",
- "fontFamily": "",
- "fontFeatureSettings": "",
- "fontKerning": "",
- "fontOpticalSizing": "",
- "fontSize": "",
- "fontStretch": "",
- "fontStyle": "",
- "fontVariant": "",
- "fontVariantCaps": "",
- "fontVariantEastAsian": "",
- "fontVariantLigatures": "",
- "fontVariantNumeric": "",
- "fontVariationSettings": "",
- "fontWeight": "",
- "forcedColorAdjust": "",
- "gap": "",
- "grid": "",
- "gridArea": "",
- "gridAutoColumns": "",
- "gridAutoFlow": "",
- "gridAutoRows": "",
- "gridColumn": "",
- "gridColumnEnd": "",
- "gridColumnGap": "",
- "gridColumnStart": "",
- "gridGap": "",
- "gridRow": "",
- "gridRowEnd": "",
- "gridRowGap": "",
- "gridRowStart": "",
- "gridTemplate": "",
- "gridTemplateAreas": "",
- "gridTemplateColumns": "",
- "gridTemplateRows": "",
- "height": "",
- "hyphens": "",
- "imageOrientation": "",
- "imageRendering": "",
- "inherits": "",
- "initialValue": "",
- "inlineSize": "",
- "inset": "",
- "insetBlock": "",
- "insetBlockEnd": "",
- "insetBlockStart": "",
- "insetInline": "",
- "insetInlineEnd": "",
- "insetInlineStart": "",
- "isolation": "",
- "justifyContent": "",
- "justifyItems": "",
- "justifySelf": "",
- "left": "",
- "letterSpacing": "",
- "lightingColor": "",
- "lineBreak": "",
- "lineGapOverride": "",
- "lineHeight": "",
- "listStyle": "",
- "listStyleImage": "",
- "listStylePosition": "",
- "listStyleType": "",
- "margin": "",
- "marginBlock": "",
- "marginBlockEnd": "",
- "marginBlockStart": "",
- "marginBottom": "",
- "marginInline": "",
- "marginInlineEnd": "",
- "marginInlineStart": "",
- "marginLeft": "",
- "marginRight": "",
- "marginTop": "",
- "marker": "",
- "markerEnd": "",
- "markerMid": "",
- "markerStart": "",
- "mask": "",
- "maskType": "",
- "maxBlockSize": "",
- "maxHeight": "",
- "maxInlineSize": "",
- "maxWidth": "",
- "maxZoom": "",
- "minBlockSize": "",
- "minHeight": "",
- "minInlineSize": "",
- "minWidth": "",
- "minZoom": "",
- "mixBlendMode": "",
- "negative": "",
- "objectFit": "",
- "objectPosition": "",
- "offset": "",
- "offsetDistance": "",
- "offsetPath": "",
- "offsetRotate": "",
- "opacity": "",
- "order": "",
- "orientation": "",
- "orphans": "",
- "outline": "",
- "outlineColor": "",
- "outlineOffset": "",
- "outlineStyle": "",
- "outlineWidth": "",
- "overflow": "",
- "overflowAnchor": "",
- "overflowClipMargin": "",
- "overflowWrap": "",
- "overflowX": "",
- "overflowY": "",
- "overscrollBehavior": "",
- "overscrollBehaviorBlock": "",
- "overscrollBehaviorInline": "",
- "overscrollBehaviorX": "",
- "overscrollBehaviorY": "",
- "pad": "",
- "padding": "",
- "paddingBlock": "",
- "paddingBlockEnd": "",
- "paddingBlockStart": "",
- "paddingBottom": "",
- "paddingInline": "",
- "paddingInlineEnd": "",
- "paddingInlineStart": "",
- "paddingLeft": "",
- "paddingRight": "",
- "paddingTop": "",
- "page": "",
- "pageBreakAfter": "",
- "pageBreakBefore": "",
- "pageBreakInside": "",
- "pageOrientation": "",
- "paintOrder": "",
- "perspective": "",
- "perspectiveOrigin": "",
- "placeContent": "",
- "placeItems": "",
- "placeSelf": "",
- "pointerEvents": "",
- "position": "",
- "prefix": "",
- "quotes": "",
- "r": "",
- "range": "",
- "resize": "",
- "right": "",
- "rowGap": "",
- "rubyPosition": "",
- "rx": "",
- "ry": "",
- "scrollBehavior": "",
- "scrollMargin": "",
- "scrollMarginBlock": "",
- "scrollMarginBlockEnd": "",
- "scrollMarginBlockStart": "",
- "scrollMarginBottom": "",
- "scrollMarginInline": "",
- "scrollMarginInlineEnd": "",
- "scrollMarginInlineStart": "",
- "scrollMarginLeft": "",
- "scrollMarginRight": "",
- "scrollMarginTop": "",
- "scrollPadding": "",
- "scrollPaddingBlock": "",
- "scrollPaddingBlockEnd": "",
- "scrollPaddingBlockStart": "",
- "scrollPaddingBottom": "",
- "scrollPaddingInline": "",
- "scrollPaddingInlineEnd": "",
- "scrollPaddingInlineStart": "",
- "scrollPaddingLeft": "",
- "scrollPaddingRight": "",
- "scrollPaddingTop": "",
- "scrollSnapAlign": "",
- "scrollSnapStop": "",
- "scrollSnapType": "",
- "scrollbarGutter": "",
- "shapeImageThreshold": "",
- "shapeMargin": "",
- "shapeOutside": "",
- "shapeRendering": "",
- "size": "",
- "sizeAdjust": "",
- "speak": "",
- "speakAs": "",
- "src": "",
- "stopColor": "",
- "stopOpacity": "",
- "stroke": "",
- "strokeDasharray": "",
- "strokeDashoffset": "",
- "strokeLinecap": "",
- "strokeLinejoin": "",
- "strokeMiterlimit": "",
- "strokeOpacity": "",
- "strokeWidth": "",
- "suffix": "",
- "symbols": "",
- "syntax": "",
- "system": "",
- "tabSize": "",
- "tableLayout": "",
- "textAlign": "",
- "textAlignLast": "",
- "textAnchor": "",
- "textCombineUpright": "",
- "textDecoration": "",
- "textDecorationColor": "",
- "textDecorationLine": "",
- "textDecorationSkipInk": "",
- "textDecorationStyle": "",
- "textDecorationThickness": "",
- "textIndent": "",
- "textOrientation": "",
- "textOverflow": "",
- "textRendering": "",
- "textShadow": "",
- "textSizeAdjust": "",
- "textTransform": "",
- "textUnderlineOffset": "",
- "textUnderlinePosition": "",
- "top": "",
- "touchAction": "",
- "transform": "",
- "transformBox": "",
- "transformOrigin": "",
- "transformStyle": "",
- "transition": "",
- "transitionDelay": "",
- "transitionDuration": "",
- "transitionProperty": "",
- "transitionTimingFunction": "",
- "unicodeBidi": "",
- "unicodeRange": "",
- "userSelect": "",
- "userZoom": "",
- "vectorEffect": "",
- "verticalAlign": "",
- "visibility": "",
- "webkitAlignContent": "",
- "webkitAlignItems": "",
- "webkitAlignSelf": "",
- "webkitAnimation": "",
- "webkitAnimationDelay": "",
- "webkitAnimationDirection": "",
- "webkitAnimationDuration": "",
- "webkitAnimationFillMode": "",
- "webkitAnimationIterationCount": "",
- "webkitAnimationName": "",
- "webkitAnimationPlayState": "",
- "webkitAnimationTimingFunction": "",
- "webkitAppRegion": "",
- "webkitAppearance": "",
- "webkitBackfaceVisibility": "",
- "webkitBackgroundClip": "",
- "webkitBackgroundOrigin": "",
- "webkitBackgroundSize": "",
- "webkitBorderAfter": "",
- "webkitBorderAfterColor": "",
- "webkitBorderAfterStyle": "",
- "webkitBorderAfterWidth": "",
- "webkitBorderBefore": "",
- "webkitBorderBeforeColor": "",
- "webkitBorderBeforeStyle": "",
- "webkitBorderBeforeWidth": "",
- "webkitBorderBottomLeftRadius": "",
- "webkitBorderBottomRightRadius": "",
- "webkitBorderEnd": "",
- "webkitBorderEndColor": "",
- "webkitBorderEndStyle": "",
- "webkitBorderEndWidth": "",
- "webkitBorderHorizontalSpacing": "",
- "webkitBorderImage": "",
- "webkitBorderRadius": "",
- "webkitBorderStart": "",
- "webkitBorderStartColor": "",
- "webkitBorderStartStyle": "",
- "webkitBorderStartWidth": "",
- "webkitBorderTopLeftRadius": "",
- "webkitBorderTopRightRadius": "",
- "webkitBorderVerticalSpacing": "",
- "webkitBoxAlign": "",
- "webkitBoxDecorationBreak": "",
- "webkitBoxDirection": "",
- "webkitBoxFlex": "",
- "webkitBoxOrdinalGroup": "",
- "webkitBoxOrient": "",
- "webkitBoxPack": "",
- "webkitBoxReflect": "",
- "webkitBoxShadow": "",
- "webkitBoxSizing": "",
- "webkitClipPath": "",
- "webkitColumnBreakAfter": "",
- "webkitColumnBreakBefore": "",
- "webkitColumnBreakInside": "",
- "webkitColumnCount": "",
- "webkitColumnGap": "",
- "webkitColumnRule": "",
- "webkitColumnRuleColor": "",
- "webkitColumnRuleStyle": "",
- "webkitColumnRuleWidth": "",
- "webkitColumnSpan": "",
- "webkitColumnWidth": "",
- "webkitColumns": "",
- "webkitFilter": "",
- "webkitFlex": "",
- "webkitFlexBasis": "",
- "webkitFlexDirection": "",
- "webkitFlexFlow": "",
- "webkitFlexGrow": "",
- "webkitFlexShrink": "",
- "webkitFlexWrap": "",
- "webkitFontFeatureSettings": "",
- "webkitFontSmoothing": "",
- "webkitHighlight": "",
- "webkitHyphenateCharacter": "",
- "webkitJustifyContent": "",
- "webkitLineBreak": "",
- "webkitLineClamp": "",
- "webkitLocale": "",
- "webkitLogicalHeight": "",
- "webkitLogicalWidth": "",
- "webkitMarginAfter": "",
- "webkitMarginBefore": "",
- "webkitMarginEnd": "",
- "webkitMarginStart": "",
- "webkitMask": "",
- "webkitMaskBoxImage": "",
- "webkitMaskBoxImageOutset": "",
- "webkitMaskBoxImageRepeat": "",
- "webkitMaskBoxImageSlice": "",
- "webkitMaskBoxImageSource": "",
- "webkitMaskBoxImageWidth": "",
- "webkitMaskClip": "",
- "webkitMaskComposite": "",
- "webkitMaskImage": "",
- "webkitMaskOrigin": "",
- "webkitMaskPosition": "",
- "webkitMaskPositionX": "",
- "webkitMaskPositionY": "",
- "webkitMaskRepeat": "",
- "webkitMaskRepeatX": "",
- "webkitMaskRepeatY": "",
- "webkitMaskSize": "",
- "webkitMaxLogicalHeight": "",
- "webkitMaxLogicalWidth": "",
- "webkitMinLogicalHeight": "",
- "webkitMinLogicalWidth": "",
- "webkitOpacity": "",
- "webkitOrder": "",
- "webkitPaddingAfter": "",
- "webkitPaddingBefore": "",
- "webkitPaddingEnd": "",
- "webkitPaddingStart": "",
- "webkitPerspective": "",
- "webkitPerspectiveOrigin": "",
- "webkitPerspectiveOriginX": "",
- "webkitPerspectiveOriginY": "",
- "webkitPrintColorAdjust": "",
- "webkitRtlOrdering": "",
- "webkitRubyPosition": "",
- "webkitShapeImageThreshold": "",
- "webkitShapeMargin": "",
- "webkitShapeOutside": "",
- "webkitTapHighlightColor": "",
- "webkitTextCombine": "",
- "webkitTextDecorationsInEffect": "",
- "webkitTextEmphasis": "",
- "webkitTextEmphasisColor": "",
- "webkitTextEmphasisPosition": "",
- "webkitTextEmphasisStyle": "",
- "webkitTextFillColor": "",
- "webkitTextOrientation": "",
- "webkitTextSecurity": "",
- "webkitTextSizeAdjust": "",
- "webkitTextStroke": "",
- "webkitTextStrokeColor": "",
- "webkitTextStrokeWidth": "",
- "webkitTransform": "",
- "webkitTransformOrigin": "",
- "webkitTransformOriginX": "",
- "webkitTransformOriginY": "",
- "webkitTransformOriginZ": "",
- "webkitTransformStyle": "",
- "webkitTransition": "",
- "webkitTransitionDelay": "",
- "webkitTransitionDuration": "",
- "webkitTransitionProperty": "",
- "webkitTransitionTimingFunction": "",
- "webkitUserDrag": "",
- "webkitUserModify": "",
- "webkitUserSelect": "",
- "webkitWritingMode": "",
- "whiteSpace": "",
- "widows": "",
- "width": "",
- "willChange": "",
- "wordBreak": "",
- "wordSpacing": "",
- "wordWrap": "",
- "writingMode": "",
- "x": "",
- "y": "",
- "zIndex": "",
- "zoom": ""
- };
- html.addEventListener = function addEventListener(type,listener){
- debugger;
- if(catvm.memory.html_addEventListen[type] == undefined){
- catvm.memory.html_addEventListen[type] = []
- }
- catvm.memory.html_addEventListen[type].push(listener);
- return undefined
- };catvm.safefunction(html.addEventListener);
- //没问题
- html.getAttribute = function getAttribute(){
- debugger;
- return null
- };catvm.safefunction(html.getAttribute);
- document.documentElement = catvm.proxy(html)
- document.documentElement.__proto__ = HTMLHtmlElement.prototype;
- window.HTMLAnchorElement = function HTMLAnchorElement() {
- throw new TypeError("Illegal constructor")
- };catvm.safefunction(window.HTMLAnchorElement)
- document = catvm.proxy(document)
- catvm.print.open=true;
- debugger;
- window.win_ts;
- window.zhiyuan;
- //catvm.memory.listeners["load"]()
- console.log(document.cookie)
- debugger;
- catvm.memory.setTimeout_func[0]() //执行定时器
- debugger;
- function update_cookie(){
- return document.cookie
- }
- function get_localStorage(){
- return localStorage
- }
|