What is a wallet drainer contract and how does it work?
asked 18d ago4,183 views1 answers
0
I keep seeing 'drainer' mentioned. What does the smart contract actually do?
#drainer#smart-contracts#technicalasked by PatrickW
1 Answer
0
Verified expert answer
A drainer is a piece of code that lives on a phishing website. When you connect your wallet and 'sign in' or 'claim airdrop', it does the following behind the scenes:
- Reads every token, NFT, and LP position in your wallet via on-chain scans.
- Calculates the highest-value items to take.
- Crafts a signature request that looks innocuous (Permit, Permit2, setApprovalForAll, or Seaport-style listing) but actually grants the attacker spending rights or buys your NFTs for 0.
- The moment you sign, a backend bot sweeps the assets in priority order before you can react.
Drainer-as-a-service is now an industry: operators provide the smart contracts, phishing kits, and laundering rails, and take 20-30% of proceeds from affiliates who run the front-end campaigns. The most active families in 2024-2025 have been Inferno, Pink, Angel, and Drainer.io.
TB
Tomasz Bauer · Smart Contract Security Researcheranswered 18d agoSign in to comment.
