Skip to content

Instantly share code, notes, and snippets.

View JustDravee's full-sized avatar

Dravee JustDravee

View GitHub Profile
@JustDravee
JustDravee / GasGrief.sol
Created January 24, 2023 04:39 — forked from owenThurm/GasGrief.sol
63/64 Gas Exploit Scenario
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;
interface ICallback {
function beforeExecution() external;
}
/** Exploit Desc: **/
// The GasGriefer is used as a `callbackContract` on a swapOrder

Docker

1st launch

docker pull trailofbits/eth-security-toolbox
docker run --name trailofbits -it -v {path_to_repos}:/share trailofbits/eth-security-toolbox 

Next launches:

docker start -i trailofbits