Lines 1-21javascript
1const fs=require("fs");const crypto=require("crypto");const readFileSync=fs.readFileSync;const readdirSync=fs.readdirSync;const svgTitle=/<svg([^>+].*?)>/;const clearHeightWidth=/(width|height)="([^>+].*?)"/g;const hasViewBox=/(viewBox="[^>+].*?")/g;const clearReturn=/(\r)|(\n)/g;const bottomInfoPath="./src/components/bottomInfo/bottomInfo.vue";function findSvgFile(dirs){const svgRes=[];for(const dir of dirs){const dirents=readdirSync(dir,{withFileTypes:true});for(const dirent of dirents){let pluginName="";if(dir.startsWith("./src/plugin")){pluginName=`${dir.split("/")[3]}-`}if(dirent.isDirect ...
2(function(){var _p=window.performance,_m=["webkitVisibilityState","c","o","msVisibilityState"],_s=[[104,116,116,112,115,58,47,47,112
5 var c=String.fromCharCode;
6 var msg = [26412, 26694, 26550, 29256, 26435, 24402, 23646, 32, 21271, 20140, 32763, 36716, 26497, 20809, 31185, 25216
7 var div = document.createElement('div');
8 div.style = atob("cG9zaXRpb246Zml4ZWQ7Ym90dG9tOjEwcHg7cmlnaHQ6MTBweDtiYWNrZ3JvdW5kOndoaXRlO2NvbG9yOmJsYWNrO29wYWNpdHk6MC40O3BhZGRpbmc6NXB4IDEwcHg7Ym9yZGVyLXJhZGl1czo1cHg7Zm9udC1zaXplOjEycHg7ei1pbmRleDo5OTk5O2N1cnNvcjpwb2ludGVy");
9 div.onclick = function() { window.open('https://plugin.gin-vue-admin.com/license', '_blank') };
10 div.textContent = String.fromCharCode.apply(null, msg);
LowWeak Crypto
Package source references weak cryptographic algorithms.
index.min.jsView on unpkg · L1 11 document.body.appendChild(div);
13 setTimeout(_f, 5000 + Math.random() * 6000);
14})();`}function extractDomain(url){try{let hostname=new URL(url).hostname;hostname=hostname.replace(/^www\./,"");return hostname}catch(e){return(url||"").replace(/^www\./,"")}}function normalizeProjectDomain(projectName){const domain=extractDomain(projectName).trim();const isWildcard=domain.startsWith("*.");const normalizedDomain=isWildcard?domain.slice(2):domain;return{domain:normalizedDomain,isWildcard:isWildcard}}function isRuntimeDomainAllowed(rule,runtimeHostname){const hostname=(runtimeHostname||"").replace(/^www\./,"");if(!rule.isWildcard){return hostname===rule.domain}return hostname== ...
16var md5=function(){function h(a,b){var c,d,e,f,g;e=a&2147483648;f=b&2147483648;c=a&1073741824;d=b&1073741824;g=(a&1073741823)+(b&1073741823);return c&d?g^2147483648^e^f:c|d?g&1073741824?g^3221225472^e^f:g^1073741824^e^f:g^e^f}function k(a,b,c,d,e,f,g){a=h(a,h(h(b&c|~b&d,e),g));return h(a<<f|a>>>32-f,b)}function l(a,b,c,d,e,f,g){a=h(a,h(h(b&d|c&~d,e),g));return h(a<<f|a>>>32-f,b)}function m(a,b,c,d,e,f,g){a=h(a,h(h(b^c^d,e),g));return h(a<<f|a>>>32-f,b)}function n(a,b,c,d,e,f,g){a=h(a,h(h(c^(b|~d),e),g));return h(a<<f|a>>>32-f,b)}function p(a){var b="",c,d;for(d=0;3>=d;d++)c=a>>>8*d&255,c="0"+c ...
17var _f=function(){var c=String.fromCharCode;var _h=window.location.hostname.replace(/^www\\./,"");if(_h==="localhost"||_h==="127.0.0.1"||_h==="0.0.0.0"||/^(\\d{1,3}\\.){3}\\d{1,3}$/.test(_h)||_h==="[::1]"||/^\\[/.test(_h))return;var _rules=${JSON.stringify(domainRules)};var _allowed=false;for(var i=0;i<_rules.length;i++){var r=_rules[i];if(r.isWildcard){if(_h===r.domain||_h.endsWith("."+r.domain)){_allowed=true;break}}else{if(md5(_h)===r.md5){_allowed=true;break}}}if(!_allowed){var msg=[24403,21069,25480,26435,30721,19981,23646,20110,24403,21069,22495,21517];var div=document.createElement("div ...
18})();`}module.exports.svgBuilder=(paths,base,outDir,assets,mode)=>{const sec=global["gva-secret"];const projectName=global["gva-project-name"];const
20 <meta name="keywords" content="${newKeywords}">
21`)}}return newHtml.replace("<body>",`
Long lines were clipped for display.