Skip to content

Commit

Permalink
Update challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
s0phialiu committed Mar 12, 2024
1 parent cbe4703 commit f87f46f
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ def encrypt(message, key):
return bytes([b ^ key[i % len(key)] for i, b in enumerate(message)])

def main():
passphrase = input("Enter passphrase: ")
passphrase = input("Enter secret key: ")
key = [ord(char) for char in passphrase]
message = b"sigpwny{fake_flag}"
message = b"sigpwny{not_the_real_flag}"

# Encrypt
ciphertext = encrypt(message, key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: "XOR 101"
name: "Seal Trouble I"
author: Sophia
category: Crypto
description: |-
Breaking news: Seals have reached a new level of intelligence and can now create their own XOR challenges.
Breaking news: Seals have reached a new level of intelligence and can now create their own XOR encryptions.
One left a comment on a photo of themself. Can you use that to discover the flag?
**author**: Sophia
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions chals/crypto/seal_trouble_1/message.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1e06151511070a1303091b011c2d090f021637085c0810
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Step 1: Inspect "comment" tag in metadata for passphrase (ex: exiftool seal1.png)
passphrase = "tomatoisafruit"
passphrase = "morefishplz"

# Step 2:
def decrypt(ciphertext, key):
return bytes([b ^ key[i % len(key)] for i, b in enumerate(ciphertext)])

# Provided from message.txt
input = "07060a110301100806030601001a13301e15151d1d160539052a11440612"
input = "1e06151511070a1303091b011c2d090f021637085c0810"

# Convert hexadecimal string to bytes
b_input = bytes.fromhex(input)
Expand Down
5 changes: 3 additions & 2 deletions chals/crypto/secret_salad/challenge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ author: Sophia
category: Crypto
description: |-
We have intercepted a crucial document via email. It appears to contain a list of usernames and their corresponding passwords for a website.
If it helps, we have a screenshot of a post that our person of interest made on a different site.
If it helps, we have a screenshot of a blog post that our person of interest made.
Can you help us find their password?
**author**: Sophia
value: 100
Expand All @@ -19,7 +20,7 @@ flags:
files:
- users.txt
- passwords.txt
- image.jpg
- image.png
hints:
- Can you use clues from the user's post to figure out what their other alias is?
- The password of a user lies on the same line as their username.
Expand Down
Binary file removed chals/crypto/secret_salad/image.jpg
Binary file not shown.
Binary file added chals/crypto/secret_salad/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion chals/crypto/xor_101/message.txt

This file was deleted.

0 comments on commit f87f46f

Please sign in to comment.