Skip to content

Commit ec65bf0

Browse files
committed
fix FuzzyIdentity
1 parent 17dfae6 commit ec65bf0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ This repository collects blockchain challenges in CTFs and wargames.
44

55
These challenges are categorized by topic, not by difficulty or recommendation.
66
Also, there are my writeups and exploits for some challenges (e.g., [Paradigm CTF 2022](src/ParadigmCTF2022/)).
7+
Please be aware that these contain spoilers.
78

89
If there are any incorrect descriptions, I would appreciate it if you could let me know via issue or PR!
910

src/CaptureTheEther/FuzzyIdentity/Exploit.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: UNLICENSED
2-
pragma solidity ^0.8.20;
2+
pragma solidity ^0.8.27;
33

44
import {Test, console} from "forge-std/Test.sol";
55
import {FuzzyIdentityChallenge} from "./FuzzyIdentityChallenge.sol";
@@ -20,7 +20,7 @@ contract ExploitTest is Test {
2020

2121
Create2Deployer deployer = new Create2Deployer();
2222
assert(address(deployer) == deployerAddr);
23-
bytes32 salt = bytes32(uint256(161984)); // found by _testSearchSalt
23+
bytes32 salt = bytes32(uint256(787669)); // found by _testSearchSalt
2424
address exploitAddr = deployer.deploy(vm.getCode("Exploit.t.sol:FuzzyIdentityExploit"), salt);
2525
FuzzyIdentityExploit(exploitAddr).exploit(address(challenge));
2626

0 commit comments

Comments
 (0)