Skip to content

Commit

Permalink
vault backup: 2024-06-24 23:45:35
Browse files Browse the repository at this point in the history
  • Loading branch information
atch2203 committed Jun 25, 2024
1 parent 4e88187 commit 369a6c4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/content/blog/jellyCTF writeups.md
Original file line number Diff line number Diff line change
Expand Up @@ -639,18 +639,16 @@ a = [(i+81)%192 for i in a]
print(''.join([chr(i) for i in a]))
```


After doing some stuff, I came up with my own solve
After doing some stuff, I came up with my own solve (using dcode.fr to find the offset)
```python
a = ""
with open("hex.txt", "r") as f:
    a = f.read()
a = a.split()
b = a[2::7]
a = a[3::7]
print(b)
a = [a[i] if b[i] == '85' else hex(int(a[i],16)-64)[2:] for i in range(len(a))]
print(" ".join(a))
a = [int(a[i],16)-(64+47 if b[i] == '84' else 47) for i in range(len(a))]
print("".join([chr(x) for x in a]))
```

flag: `jellyCTF{a_cut3_alic3_hugg4bl3_plush13}`

0 comments on commit 369a6c4

Please sign in to comment.