This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Decompiled by library.dedaub.com | |
// 2022.11.28 11:00 UTC | |
// Data structures and variables inferred from the use of storage instructions | |
uint256 owner_0_0_19; // STORAGE[0x0] bytes 0 to 19 | |
uint256 owner_1_0_19; // STORAGE[0x1] bytes 0 to 19 | |
function () public payable { | |
revert(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.19; | |
/** | |
* @title Returnbomb attack example | |
* @author pcaversaccio | |
*/ | |
contract Evil { | |
uint256 public counter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.17; | |
contract Storage { | |
struct SomeStruct { | |
uint16 a; | |
uint16 b; | |
uint16 c; | |
uint16 d; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"id":"4e2b890ab80095ee8fe286920b86039c","_format":"hh-sol-build-info-1","solcVersion":"0.8.17","solcLongVersion":"0.8.17+commit.8df45f5f","input":{"language":"Solidity","sources":{"contracts/BatchDistributor.sol":{"content":"// SPDX-License-Identifier: MIT\npragma solidity 0.8.17;\n\nimport \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\n/**\n * @dev Error that occurs when transferring ether has failed.\n * @param emitter The contract that emits the error.\n */\nerror EtherTransferFail(address emitter);\n\n/**\n * @title Native and ERC-20 Token Batch Distributor\n * @author Apps with love AG, info@appswithlove.com\n * @notice Helper smart contract for batch sending both\n * native and ERC-20 tokens.\n * @dev Since we use nested struct objects, we rely on the ABI coder v2.\n * The ABI coder v2 is activated by default since Solidity `v0.8.0`.\n * @custom:security-contact info@appswithlove.com\n */\n\ncontract BatchDistributor {\n us |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: WTFPL | |
pragma solidity 0.8.17; | |
/** | |
* @dev Error that occurs when called by a contract account. | |
* @param emitter The contract that emits the error. | |
*/ | |
error ContractCallsAreNotAllowed(address emitter); | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.10; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
// Mock class using ERC20 | |
contract ERC20Mock is ERC20 { | |
constructor( | |
string memory name, | |
string memory symbol, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: WTFPL | |
pragma solidity 0.8.16; | |
contract Merge { | |
uint72 private constant _DIFFICULTY_THRESHOLD = 2**64; | |
/** | |
* @dev A difficulty value greater than `2**64` indicates that a transaction is | |
* being executed in a PoS block. Also note that the `DIFFICULTY` opcode (0x44) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
contract LookupContract { | |
mapping(string => uint256) public myDirectory; | |
constructor(string memory _name, uint256 _mobileNumber) { | |
myDirectory[_name] = _mobileNumber; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Palkeoramix decompiler. | |
def storage: | |
ownerAddress is addr at storage 0 | |
stor1 is addr at storage 1 | |
stor2 is addr at storage 2 | |
stor3 is addr at storage 3 | |
stor4 is addr at storage 4 | |
stor5 is addr at storage 5 | |
stor6 is addr at storage 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I failed with these: | |
# - unknownfa461e33(?) | |
# All the rest is below. | |
# | |
def execute(address _target, bytes _data): # not payable | |
require calldata.size - 4 >=′ 64 | |
require _target == _target | |
require _data <= 18446744073709551615 | |
require _data + 35 <′ calldata.size |