Shared helper
src/Poc-template.sol
The dataset's blank template for a new reproduction. It is mostly commented-out scaffolding and contains no target-specific logic.
Code
Shown in full with its original header, as part of the open dataset (repository licence Apache-2.0, see NOTICE). This file's own SPDX header reads UNLICENSED. It declares interfaces and helpers only. ThreatWire has not executed this code. It is shown for defensive research, as published in the public reference dataset. Check licences, verify the blob against the pinned commit, and do not run it against live contracts without your own review.
1// SPDX-License-Identifier: UNLICENSED2pragma solidity ^0.8.10;3/*5import "forge-std/Test.sol";6import "./interface.sol";8// @KeyInfo - Total Lost : ~999M US$9// Attacker : 0xcafebabe10// Attack Contract : 0xdeadbeef11// Vulnerable Contract : 0xdeadbeef12// Attack Tx : 0x12345678914// @Info15// Vulnerable Contract Code : https://etherscan.io/address/0xdeadbeef#code17// @Analysis18// Post-mortem : https://www.google.com/19// Twitter Guy : https://www.google.com/20// Hacking God : https://www.google.com/22contract ContractTest is Test {23 IUSDC constant USDC = IUSDC(0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48);24 IUSDT constant USDT = IUSDT(0xdAC17F958D2ee523a2206206994597C13D831ec7);26 function setUp() public {27 vm.createSelectFork("mainnet", 15460093);28 vm.label(address(USDC), "USDC");29 vm.label(address(USDT), "USDT");30 //address alice = makeAddr("alice");31 }33 function testExploit() public {34 //vm.startPrank(alice);35 //vm.stopPrank();36 }37}39*/Components and what they do
- Commented template: header fields, imports, setUp and testExploit placeholders
Related files
No other dataset files are linked to this one yet.
File record
- Name
- Poc-template.sol
- Path
- src/Poc-template.sol
- Repository
- SunWeb3Sec/DeFiHackLabs (licence Apache-2.0)
- Commit
- 7363f76db51f0fea97f8e659b20ee8bdc5fbca25
- Blob
- 840ae74657b4f99a24b1686d3d8deda1fbb264e2
- Language
- Solidity
- Size
- 39 lines
- Licence
- file header UNLICENSED; repository Apache-2.0
- Retrieved
- 2026-10-19
Provenance
Path src/Poc-template.sol, commit 7363f76db51f0fea97f8e659b20ee8bdc5fbca25, blob 840ae74657b4f99a24b1686d3d8deda1fbb264e2, retrieved 2026-10-19. Verbatim copy including the SPDX header, read with git show. No edits. ThreatWire has never executed this file. Reference: source file at the pinned commit.