Trustfall Bank – TOKEN2
Token: PCCC{G1t_c0nf1g_Dd_2043}
Background
The same .git leak contains a prior commit with a removed token. Searching
git history reveals it.
From Nothing to Working
- Use the dumped repo from TOKEN1 (
trustfall_dump/). - Scan git history for
PCCC{strings. - The removed config token appears in an earlier commit.
Command
After dumping trustfall_dump/ (see TOKEN1), run:
python3 git_history_token2.py
#!/usr/bin/env python3
# git_history_token2.py
import subprocess, sys, os
REPO = "trustfall_dump"
def main():
if not os.path.isdir(REPO):
print(f"Repo {REPO} missing. Run TOKEN1 dump first.")
sys.exit(1)
os.chdir(REPO)
print("[+] Scanning git history for PCCC tokens...")
proc = subprocess.run(["git", "log", "--all", "-p"], capture_output=True, text=True)
lines = [l for l in proc.stdout.splitlines() if "PCCC{" in l]
print("\n".join(lines))
if __name__ == "__main__":
main()
Expected Output
History contains the removed token line:
PCCC{G1t_c0nf1g_Dd_2043}