├── .gitignore ├── README.md ├── contracts ├── Migrations.sol ├── interfaces │ ├── basic │ │ ├── ERC20.sol │ │ └── safemath.sol │ └── examplePlatforms │ │ ├── flashLoanProvider.sol │ │ └── swapHackablePlatform.sol └── kits │ ├── .DS_Store │ └── TrojanCoinAndExchangeManipulation │ ├── .DS_Store │ ├── after │ ├── FlashLoanProvider1After.sol │ ├── HackableExchange1After.sol │ ├── HackableExchange2After.sol │ └── TrojanCoinAfter.sol │ └── before │ ├── FlashLoanProvider1Before.sol │ ├── HackableExchange1Before.sol │ ├── HackableExchange2Before.sol │ └── TrojanCoinBefore.sol ├── manuals └── TrojanCoinAndExchangeManipulation.md ├── migrations └── 1_initial_migration.js ├── test └── TrojanCoinAndExchangeManipulation.js └── truffle-config.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/README.md -------------------------------------------------------------------------------- /contracts/Migrations.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/Migrations.sol -------------------------------------------------------------------------------- /contracts/interfaces/basic/ERC20.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/interfaces/basic/ERC20.sol -------------------------------------------------------------------------------- /contracts/interfaces/basic/safemath.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/interfaces/basic/safemath.sol -------------------------------------------------------------------------------- /contracts/interfaces/examplePlatforms/flashLoanProvider.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/interfaces/examplePlatforms/flashLoanProvider.sol -------------------------------------------------------------------------------- /contracts/interfaces/examplePlatforms/swapHackablePlatform.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/interfaces/examplePlatforms/swapHackablePlatform.sol -------------------------------------------------------------------------------- /contracts/kits/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/.DS_Store -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/.DS_Store -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/after/FlashLoanProvider1After.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/after/FlashLoanProvider1After.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/after/HackableExchange1After.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/after/HackableExchange1After.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/after/HackableExchange2After.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/after/HackableExchange2After.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/after/TrojanCoinAfter.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/after/TrojanCoinAfter.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/before/FlashLoanProvider1Before.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/before/FlashLoanProvider1Before.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/before/HackableExchange1Before.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/before/HackableExchange1Before.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/before/HackableExchange2Before.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/before/HackableExchange2Before.sol -------------------------------------------------------------------------------- /contracts/kits/TrojanCoinAndExchangeManipulation/before/TrojanCoinBefore.sol: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/contracts/kits/TrojanCoinAndExchangeManipulation/before/TrojanCoinBefore.sol -------------------------------------------------------------------------------- /manuals/TrojanCoinAndExchangeManipulation.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/manuals/TrojanCoinAndExchangeManipulation.md -------------------------------------------------------------------------------- /migrations/1_initial_migration.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/migrations/1_initial_migration.js -------------------------------------------------------------------------------- /test/TrojanCoinAndExchangeManipulation.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/test/TrojanCoinAndExchangeManipulation.js -------------------------------------------------------------------------------- /truffle-config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BricksSandbox/Hack/HEAD/truffle-config.js --------------------------------------------------------------------------------