Skip to content

Instantly share code, notes, and snippets.

View maurelian's full-sized avatar
💯

Maurelian maurelian

💯
View GitHub Profile
contract ReEnter {
TestToken tt;
function ReEnter(address _target){
tt = TestToken(_target);
}
function deposit() payable {
tt.deposit.value(msg.value)();
}
contract ReEnter {
TestToken tt;
function ReEnter(address _target){
tt = TestToken(_target);
}
function deposit() payable {
tt.deposit.value(msg.value)();
}
@maurelian
maurelian / -
Created October 10, 2017 10:00
0x5c79d3d994b54f98cedb0c5d9be4842f26e2fe10
@maurelian
maurelian / -
Created October 10, 2017 10:06
"0x5C79D3D994b54F98CEdB0c5D9Be4842f26E2Fe10"

Smart Contract Auditor Role at ConsenSys Diligence

ConsenSys Diligence is looking for people with a strong knowledge of Solidity and the EVM, to audit exciting contract systems for both ConsenSys spokes, and our clients who are among the top quality projects on the ethereum blockchain.

Our job is to hack crucial contracts before the bad guys do.

$ npm test
> cryptokitty@1.0.0 test /Users/primary/Projects/cryptokitties-bounty
> truffle test
Compiling ./contracts/Auction/ClockAuction.sol...
Compiling ./contracts/Auction/ClockAuctionBase.sol...
Compiling ./contracts/Auction/SaleClockAuction.sol...
Compiling ./contracts/Auction/SiringClockAuction.sol...
Compiling ./contracts/Debuggable.sol...
$ npm test
> cryptokitty@1.0.0 test /Users/primary/Projects/cryptokitties-bounty
> truffle test
Compiling ./contracts/Auction/ClockAuction.sol...
Compiling ./contracts/Auction/ClockAuctionBase.sol...
Compiling ./contracts/Auction/SaleClockAuction.sol...
Compiling ./contracts/Auction/SiringClockAuction.sol...
Compiling ./contracts/Debuggable.sol...
@maurelian
maurelian / -
Created January 16, 2018 14:25
function controlSelf() {
eval "defaults write org.eyebeam.SelfControl BlockDuration -int $1"
extras=""
if [ "$2" = "nuke" ]; then
extras="inbox.google.com slack.com"
fi
blacklist="facebook.com news.ycombinator.com reddit.com twitter.com $extras"
eval "defaults write org.eyebeam.SelfControl HostBlacklist -array $blacklist"
defaults read org.eyebeam.SelfControl
sudo /Applications/SelfControl.app/Contents/MacOS/org.eyebeam.SelfControl $(id -u $(whoami)) --install > /dev/null 2>&1
@maurelian
maurelian / mem_vs_stor_arguments.sol
Last active January 17, 2018 20:54
Some sample code for better understanding the implications of the storage/memory keywords when used in function arg
pragma solidity ^0.4.18;
// Some sample code for better understanding the implications of the storage/memory keywords
// when used in function args
library Libby {
struct Nums {
uint8 num;
uint8 num2;
@maurelian
maurelian / .solhint.json
Created January 19, 2018 21:26
Solhint config oriented towards security
{
"NOTE": "this JSON file configures solhint for errors on security risks, and warnings on areas that should be scrutinized further. It ignores items of style as configured.",
"rules": {
"reentrancy": "error",
"avoid-sha3": "error",
"avoid-suicide": "error",
"avoid-throw": "error",
"func-visibility": "error",
"state-visibility": "error",
"check-send-result": "error",