Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

this-is-NOT-the-flag #26

Merged
merged 5 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions this-is-NOT-the-flag/NOTflag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nZyenIuZhMiXtoygzoygyJfMoJmTnsaC
15 changes: 15 additions & 0 deletions this-is-NOT-the-flag/chall.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: This is NOT the flag
categories:
- misc
value: 50
flag:
file: ./flag.txt
description: |
The flag is NOT inside this file. Do NOT even bother checking.
hints:
- The flag is ASCII encoded in base 64
authors:
- Jacob Korn
files:
- src: ./NOTflag.txt
visible: true
1 change: 1 addition & 0 deletions this-is-NOT-the-flag/flag.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bcactf{7hIs_1s_7h3_fla9}
9 changes: 9 additions & 0 deletions this-is-NOT-the-flag/solve.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from base64 import b64decode

with open('NOTflag.txt', 'r') as f:
data = b64decode(f.read())
s=''
for byte in data:
s+=chr(byte ^ 0xFF) # NOT all 8 bits
print(s)

3 changes: 3 additions & 0 deletions this-is-NOT-the-flag/solvepath.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1. turn string into binary (ascii)
2. NOT it
3. turn binary into string