prevent next 1.5B hack
File | Lost |
---|---|
Bybit Hack Report | 1.5B |
- open n8n locally
- import
n8n_workflow/scan_js.json
into n8n - visit n8n dashboard
http://localhost:5678
- copy the real malicious js file content
incidnet/Bybit/_app-52c9031bfa03da47.js
- paste to chatbox and execute it
- check the result under the structured output component in workflow
pnpm install
pnpm dev
you can use github action deploy to github page
Github Page: https://daky.github.io/Messiah/
reference: https://vite.dev/guide/static-deploy
note: since we use pnpm, so need to npm install it
- Setup Python environment:
# Initialize virtual environment and install dependencies
pyenv virtualenv 3.11 Messiah
pyenv activate Messiah
poetry shell
poetry install
- Configure environment variables in
.env
:
cp .env.example .env
Update the environment variables in .env
file if needed.
- Start n8n and database:
source .env
docker-compose up -d
-
Access the n8n dashboard, Open your browser and navigate to
http://localhost:5678
-
(First time only) Setup owner account, activate free n8n pro features
How to download target website all JS files
poetry run python cli/main.py scan
- React
- Tailwind CSS
- TypeScript
- Vite
- Web3 Onboard
- ethers.js v6
- Python
- n8n
add to wallet: https://chainlist.org/chain/133
faucet: https://faucet.hsk.xyz/zh_TW/faucet
add to wallet: https://chainlist.org/chain/44787
faucet: https://faucet.celo.org/alfajores
add to wallet: https://chainlist.org/chain/48898
faucet: https://docs.zircuit.com/garfield-testnet/quick-start#deposit-eth-from-sepolia-to-zircuit-l1-greater-than-l2 get sepolia ETH first and then use https://bridge.garfield-testnet.zircuit.com/ to bridge it to Zircuit testnet
use Remix to deploy
1.Paste the contract into the editor and keep it open.
2.Then go to the sidebar, select "Solidity compiler," and click "Compile."
3.Next, go to "Deploy & run transactions." At the top under "Environment," select "WalletConnect" to connect to your Browser Wallet. Then switch to the chain you want to deploy on, make sure the correct contract is selected for deployment, and click "Deploy." A wallet confirmation for the transaction will pop up, and that’s it.
Trojan.sol
address: 0x426D91Fe0235daCE15Ea3764944d925d2B600Fa3
Transfer.sol
address: 0xbdd77c95a14f798a06b99773a7859102fcab8009
Trojan.sol
address: 0x426D91Fe0235daCE15Ea3764944d925d2B600Fa3
Transfer.sol
address: 0xBDD77C95A14f798A06b99773a7859102FcAb8009
Trojan.sol
address:
0x426D91Fe0235daCE15Ea3764944d925d2B600Fa3
Transfer.sol
address: 0xBDD77C95A14f798A06b99773a7859102FcAb8009