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
contract Bank{ | |
/*Contract that stores user balances. This is the vulnerable contract. This contract contains | |
the basic actions necessary to interact with its users, such as: get balance, add to balance, | |
and withdraw balance */ | |
mapping(address=>uint) userBalances;/*mapping is a variable | |
type that saves the relation between the user and the amount contributed to | |
this contract. An address (account) is a unique indentifier in the blockchain*/ | |
function getUserBalance(address user) constant returns(uint) { |
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
pragma solidity ^0.4.2; | |
contract A { | |
address d; | |
} | |
contract ObjectFactory { | |
event ReturnAddress(address indexed _address); | |
function createObject() returns (address ) { |
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
pragma solidity ^0.4.2; | |
contract B { | |
uint d; | |
} | |
contract ObjectFactory { | |
event ReturnAddress(address indexed _address); |
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
pragma solidity ^0.4.2; | |
contract Validation{ | |
bytes32 private sha3Base; | |
bytes20 private ripemd160Base; | |
function getCode(address _addr) constant returns (bytes o_code,uint o_code_size) { | |
assembly { | |
// retrieve the size of the code, this needs assembly | |
let size := extcodesize(_addr) | |
o_code_size := size |
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
body { | |
background-color: red; | |
} | |
dasdsa |
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
<div xk-section-styles="xk-component xk-section-base "> | |
hola | |
</div> |