Skip to content

Instantly share code, notes, and snippets.

View SatoshiMota's full-sized avatar
🏠
Working from home

SatoshiMota SatoshiMota

🏠
Working from home
View GitHub Profile
@SatoshiMota
SatoshiMota / eclipse_transaction.js
Last active February 14, 2025 11:52
Eclipse Turbo Tap Transactions
// Запуск --- node eclipse_transaction.js
const crypto = require("crypto");
const {Connection,Keypair,Transaction,PublicKey,TransactionInstruction} = require("@solana/web3.js");
// ИНСТРУКЦИЯ / НАСТРОЙКА
// 1. На сайте тапалки пополните ETH для кликов
// 2. В local storage сайта (консоль → Application) есть wallet вставить ниже
const payerPrivateKey = Uint8Array.from([54, 98, 322, 125, 141, 69, 167, 149, 123, 175, 142, 53, 12, 72, 45, 67, 23, 138, 141, 69, 167, 149, 123, 175, 142, 53, 12, 72, 45, 67, 23, 138, 141, 69, 167, 149, 123, 234, 142, 53, 12, 72, 45, 67, 23, 138]);
// 3. Найдите транзакцию пополнения ETH для кликов и откройте адрес на которые ушли ETH
// 4. Раз 10 кликните тапалку и откройте любую из транзакций (на адресе который достали в 3 шаге) например https://eclipsescan.xyz/tx/67T8Xp24rg8xX81JRTcc2mBVppXqiU6Xi4cfLscmdr7uq51UZ9rHLPsiSjCKQeorwgmKoyTywQrP8E5h8dcUPDSo
@SatoshiMota
SatoshiMota / 13-MetaMask_encrypt_decrypt.js
Created August 18, 2024 09:47
MetaMask encrypts decrypts
// node 13-MetaMask_encrypt_decrypt.js
const crypto = require('crypto');
// Функция для извлечения значения между двумя ключами
function extractValueBetweenKeys(data, startKey, endKey) {
const regex = new RegExp(`${startKey}(.*?)${endKey}`, 's');
const match = data.match(regex);
return match ? match[1] : null;
}
@SatoshiMota
SatoshiMota / 0-SECURE_encrypt_decrypt_data.js
Created August 18, 2024 00:32
Encrypt/Decrypt data via aes-256-gcm
// node 0-SECURE_encrypt_decrypt_data.js
const crypto = require('crypto');
//Шифрование
function encrypt(data, password) {
// Генерация salt для уникальности шифрованого пароля
const salt = crypto.randomBytes(16);
// Создание ключа из пароля (длиной 32 байта)