github.com/iotexproject/iotex-core@v1.14.1-rc1/action/protocol/execution/testdata-istanbul/reentry-attack.json (about)

     1  {
     2      "initGenesis": {
     3          "isBering" : true,
     4          "isIceland" : true
     5      },
     6      "initBalances": [{
     7          "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
     8          "rawBalance": "1000000000000000000000000000"
     9      }],
    10      "deployments": [{
    11          "rawByteCode": "608060405234801561001057600080fd5b50610427806100206000396000f3fe6080604052600436106100295760003560e01c80632e1a7d4d1461002e578063d0e30db014610057575b600080fd5b34801561003a57600080fd5b506100556004803603810190610050919061025d565b610061565b005b61005f6101f1565b005b806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410156100ac57600080fd5b3373ffffffffffffffffffffffffffffffffffffffff16816040516024016040516020818303038152906040527fc9734658000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff838183161783525050505060405161015491906102b7565b60006040518083038185875af1925050503d8060008114610191576040519150601f19603f3d011682016040523d82523d6000602084013e610196565b606091505b505050806000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546101e7919061033a565b9250508190555050565b346000803373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461023f91906102e4565b92505081905550565b600081359050610257816103da565b92915050565b60006020828403121561026f57600080fd5b600061027d84828501610248565b91505092915050565b6000610291826102ce565b61029b81856102d9565b93506102ab818560208601610378565b80840191505092915050565b60006102c38284610286565b915081905092915050565b600081519050919050565b600081905092915050565b60006102ef8261036e565b91506102fa8361036e565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561032f5761032e6103ab565b5b828201905092915050565b60006103458261036e565b91506103508361036e565b925082821015610363576103626103ab565b5b828203905092915050565b6000819050919050565b60005b8381101561039657808201518184015260208101905061037b565b838111156103a5576000848401525b50505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6103e38161036e565b81146103ee57600080fd5b5056fea264697066735822122023637eba8fb30bf282cd063356555996649a043a22e1802a42f9c3bd8a8bbccd64736f6c63430008040033",
    12          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    13          "rawAmount": "0",
    14          "rawGasLimit": 5000000,
    15          "rawGasPrice": "0",
    16          "rawExpectedGasConsumed": 332357,
    17          "expectedStatus": 1,
    18          "expectedBalances": [],
    19          "comment": "deploy MiniDAO contract"
    20      },{
    21          "rawByteCode": "6080604052600080556040516104783803806104788339818101604052810190610029919061011b565b80600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a346100779190610144565b600181905550600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663d0e30db0346040518263ffffffff1660e01b81526004016000604051808303818588803b1580156100e757600080fd5b505af11580156100fb573d6000803e3d6000fd5b5050505050506101f7565b600081519050610115816101e0565b92915050565b60006020828403121561012d57600080fd5b600061013b84828501610106565b91505092915050565b600061014f826101a7565b915061015a836101a7565b92508261016a576101696101b1565b5b828204905092915050565b600061018082610187565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6101e981610175565b81146101f457600080fd5b50565b610272806102066000396000f3fe6080604052600436106100295760003560e01c80639e5faafc1461002e578063c973465814610045575b600080fd5b34801561003a57600080fd5b5061004361004f565b005b61004d6100e0565b005b600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d6001546040518263ffffffff1660e01b81526004016100ac919061019f565b600060405180830381600087803b1580156100c657600080fd5b505af11580156100da573d6000803e3d6000fd5b50505050565b60036000808154809291906100f4906101c4565b91905055101561018e57600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632e1a7d4d6001546040518263ffffffff1660e01b815260040161015b919061019f565b600060405180830381600087803b15801561017557600080fd5b505af1158015610189573d6000803e3d6000fd5b505050505b565b610199816101ba565b82525050565b60006020820190506101b46000830184610190565b92915050565b6000819050919050565b60006101cf826101ba565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156102025761020161020d565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fdfea26469706673582212206cdfdf03b2e798515ecd46e906cf38df42f58e8f8aecc2529246aff4e4eff54e64736f6c63430008040033",
    22          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    23          "appendContractAddress": true,
    24          "contractIndexToAppend": 0,
    25          "rawAmount": "5000000000000000000",
    26          "rawGasLimit": 5000000,
    27          "rawGasPrice": "0",
    28          "rawExpectedGasConsumed": 325472,
    29          "expectedStatus": 1,
    30          "expectedBalances": [],
    31          "comment": "deploy Attacker contract"
    32      }],
    33      "executions": [{
    34          "contractIndex":1,
    35          "rawPrivateKey": "cfa6ef757dee2e50351620dca002d32b9c090cfda55fb81f37f1d26b273743f1",
    36          "rawByteCode": "9e5faafc",
    37          "rawAmount": "0",
    38          "rawGasLimit": 1000000,
    39          "rawGasPrice": "0",
    40          "rawExpectedGasConsumed": 99778,
    41          "expectedStatus": 1,
    42          "expectedBalances": [{
    43              "account": "io1mflp9m6hcgm2qcghchsdqj3z3eccrnekx9p0ms",
    44              "rawBalance": "999999995000000000000000000"
    45          },{
    46              "account": "",
    47              "rawBalance": "2000000000000000000"
    48          },{
    49              "account": "io1q64m9jsrsd9afa3vvyx2wcn78hgjmx5h0y0kh6",
    50              "rawBalance": "3000000000000000000"
    51          }],
    52          "comment": "attack"
    53      }]
    54  }