Skip to content

Instantly share code, notes, and snippets.

@Fndroid
Created December 3, 2020 08:15
Show Gist options
  • Save Fndroid/8d509eecce73c9d1ee063115239fd194 to your computer and use it in GitHub Desktop.
Save Fndroid/8d509eecce73c9d1ee063115239fd194 to your computer and use it in GitHub Desktop.
js-obfs-issue
function hi() {
return function () {
if (/https?:\/\/(.+?)\//.test("http://127.0.0.1:54637/config")) {
console.log(RegExp.$1);
} else {
console.log("no match");
}
};
}
hi()();
{
"name": "js-obfs-issue",
"version": "1.0.0",
"description": "",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"javascript-obfuscator": "^2.9.4"
},
"scripts": {
"test": "javascript-obfuscator index.js --target browser --string-array-encoding rc4 && node index-obfuscated.js"
},
"author": "",
"license": "ISC"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment