Перейти к содержимому
Проверенный контрактЧастичноеUNLICENSED

AddressPoisoner

Адрес0xd2f95494ca640efdb3558ae2e97ad7e3ba2ba46d
Баланс

0 ETH

 

Транзакций

458

 

Компилятор

solc 0.8.34

 

Тот же код

ещё 4 контракта

 

Подробности

Компилятор
solc 0.8.34+commit.80d5c536
Язык
solidity
Оптимизация
Да, 500 прогонов
Версия EVM
prague
Лицензия
UNLICENSED
Совпадение
Частичноекод создания: да, код в сети: да
Проверен на Sourcify
Создан в блоке
26 245 203
Транзакция создания
0xba9f8df42f…1e364914c4

src/AddressPoisoner.sol

// SPDX-License-Identifier: UNLICENSED
pragma solidity 0.8.34;

/*
 * ======================= WARNING: ADDRESS POISONING SCAM CONTRACT =======================
 *
 * WHY THIS SOURCE CODE IS VERIFIED
 *   The scammer never published source code for this contract. It was reverse-engineered
 *   from the on-chain bytecode and verified by a third party so that anyone can read what it
 *   does. "Verified" means this code compiles to exactly the same bytecode as the deployed
 *   contract (solc 0.8.34, optimizer 500 runs), so this is what really runs on-chain.
 *   Etherscan found 2,605 other contracts with exactly the same bytecode; verifying one makes
 *   this explanation readable on all of them.
 *   Names: the function selectors are the real ones (transferFrom, events). The contract name
 *   and the error name are not the original ones: "Unauthorized_AiuZML" was chosen only
 *   because it has the same 4-byte selector (0x0bf9dbd1) as the original error.
 *
 * WHAT IT DOES
 *   It writes FAKE token transfers into other people's transaction history.
 *   1. The scammer watches real transfers. Example: a wallet sends 15.952487 USDT to
 *      0x7e38a23b93d55ffb391a1fcbd05dd61f5408139a.
 *   2. They generate a lookalike address with the same first and last characters:
 *      0x7e3Ef20C4fC494c720d88a58FabDC304A508139A.
 *   3. Minutes later they call transferFrom() below with a FAKE "USDT" token that they control
 *      (0x9C972245A61aC90627c32315cFDa8119Be580F6B, name "Tether USD", symbol "USDT"). The fake
 *      token moves nothing; it only emits a Transfer event "sender -> lookalike, 15.952487".
 *   4. The sender's wallet and explorer history now show a transfer of the same amount to the
 *      lookalike address, right next to the real one. Anyone who later copies "the address I
 *      sent to last time" from that history copies the scammer's address and sends real money
 *      to the scammer.
 *   One call creates many fake transfers (10 in the example below). The counter events()
 *   counts them.
 *
 * CAN IT TAKE MY TOKENS?
 *   Not by itself. It calls transferFrom() on whatever token the operator passes in. With the
 *   scammer's fake tokens that only creates fake history entries. A real token would refuse
 *   unless you had approved this contract to spend it. The danger is copying the lookalike
 *   address from your history.
 *
 * HOW TO STAY SAFE
 *   - Never copy a recipient address from your transaction history. Use an address book or
 *     the address the recipient gave you, and compare the WHOLE address, not just the ends.
 *   - Check the token contract, not the name: real USDT is
 *     0xdAC17F958D2ee523a2206206994597C13D831ec7, real USDC is
 *     0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48.
 *   - Transfers you did not make, appearing right after one you did make, are a warning sign.
 *
 * EVIDENCE (Ethereum mainnet)
 *   - Operator and deployer: 0x80D04079Ffc53eb14edBEeB37279D126F45552df, labelled
 *     "Fake_Phishing3348326" on Etherscan. It is also the owner stored in the fake USDT token.
 *   - Example call: tx 0x6d0ca6aff5f88965b3a01158b3fa233d41474bb5becce29417c0a1fea6ad4672
 *     (block 26,305,018). The real 15.952487 USDT transfer above was in block 26,305,004.
 * =========================================================================================
 */

interface IERC20 {
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

contract AddressPoisoner {
    /// Number of fake transfers created so far (one per loop iteration below).
    uint256 public events = 0;

    /// The scammer's address. Only it can use this contract.
    address private owner;

    error Unauthorized_AiuZML();

    constructor() {
        owner = msg.sender;
    }

    /// For each i: ask token tokens[i] to move amounts[i] from froms[i] to tos[i].
    /// In the scam, tokens[i] is a fake USDT/USDC/ETH token whose transferFrom() only emits a
    /// Transfer event, froms[i] is a real person's address, tos[i] is a lookalike of an address
    /// that person really paid, and amounts[i] copies the real amount.
    function transferFrom(
        address[] calldata tokens,
        address[] calldata froms,
        address[] calldata tos,
        uint256[] calldata amounts
    ) external {
        if (msg.sender != owner) revert Unauthorized_AiuZML();
        uint256 n = tokens.length;
        for (uint256 i = 0; i < n; i++) {
            IERC20(tokens[i]).transferFrom(froms[i], tos[i], amounts[i]);
            events++;
        }
    }
}
Настройки компилятораПоказать
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "none",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 500,
    "enabled": true
  },
  "evmVersion": "prague"
}

Исходный код и метаданные: Sourcify.

Исходный код принадлежит авторам контракта.