TAKE OF ELON Honeypot
What happened
TAKE OF ELON (TAKEOFELON) is a BNB Chain token deployed on 28 March 2021 at 0x590afc4e…e993b6 by 0x7bc2eE43…85C4Cb. Its transferFrom requires allow[_from] == true, and at deployment only the deployer is on that list, so a PancakeSwap sale, which pulls the seller's tokens with transferFrom, reverts for every other holder while buys still work. The functions that change the list and set balances are gated by an onlyOwner modifier that does not check the contract's owner variable but a hard-coded address written as a decimal number, 0xbd486897…439192.
That hidden address can also overwrite any wallet's balance with mint. The source comment advertises liquidity locked on Unicrypt and burned dev tokens; the code enforces neither. De.Fi's REKT database lists TAKE OF ELON as an exit scam/honeypot.
How it happened
- The constructor sets
owner = msg.sender, gives the deployer the whole supply (10,000,000,000 TAKEOFELON on-chain) and setsallow[msg.sender] = true. No other address starts on theallowlist. transferhas no list check, so the PancakeSwap pair can pay out tokens and buys succeed.transferFromaddsrequire(allow[_from] == true). The router sells by callingtransferFrom(seller, pair, amount), so the sale reverts for any seller not on the list. The deployer can still add liquidity and sell.modifier onlyOwner() {require(msg.sender == address(1080614020421183795110940285280029773222128095634));_;}compares the caller with a hard-coded address, 0xbd486897…439192 in hex, not with the storedowner.transferOwnershipchanges only the unusedownervariable, and there is no renounce function, so this control cannot be given up.- The hidden address can call
addAllow(holder, allowApprove)to add or remove sellers, andmint(miner, _value), which runsbalances[miner] = _value. That overwrites a wallet's balance with any value, up or down, without changingtotalSupplyor emitting an event.
Protocol details
Evidence
- report Token Sniffer post 1373698524961906691 (seed link) twitter.com
- transaction TAKE OF ELON contract creation transaction bscscan.com
- address TAKE OF ELON (TAKEOFELON) verified contract code on BscScan bscscan.com
- analysis Sourcify match for 0x590afc4e2bcc46a3550cbe890856d308dae993b6 on BNB Chain repo.sourcify.dev
Build your security review skills
Work through hands-on labs covering real exploit mechanics, review techniques, and defensive patterns.