• Home
  • Testimonials
  • Blog
  • Contact Us

At a Glance of a Key

Crafting Dreams into Ventures, Code into Excellence: Your Journey to Success

  • Home
  • Testimonials
  • Blog
  • Contact Us

The Mossad Challenge 2018 – Entry Riddle

2018-04-20 Cyber Security 3 Comments 2 minute read

For the Israeli independence day, the Mossad published a new challenge.
When I have some free time I try to crack it and enjoy learning new stuff in the process πŸ™‚
Let’s start?

If we’ll go the the Mossad webpage, we’ll see the following picture:

As you can see, there are some characters highlighted from both sides of the picture.
Looks like a code snippet written in Brainfuck.
Extracting the left column and running it in an online Brainfuck interpreter gave the following output: “xor-with-key”

Screenshot of the execution:

Looks like a hint for something we need to do right?
Let’s take the second column and run it in the interpreter:

This time there is no output, so let’s go and check the memory dump:

Look like we got something with a length of 12 bytes. Probably we need to xor it with something but the question is with what?
If we look closely at the original image, you’ll see that the logo in the middle have a repeating text saying: “Israel-is-70” which luckily has 12 characters. worth a try right ?

1
2
3
a = [ 0x7a, 0x46, 0x5c, 0x53, 0x55, 0x59, 0x03, 0x5a, 0x41, 0x03, 0x06, 0x01 ]
b = list("Israel-is-70")
c = []
1
2
for i in xrange(0, len(a)):
c.append(a[i] ^ ord(b[i]))
1
2
print c
print "".join(chr(i) for i in c)

Running this program produced the following output:

1
2
[51, 53, 46, 50, 48, 53, 46, 51, 50, 46, 49, 49]
35.205.32.11

Looks like an ip address.
Pinging the address returns a response but my attempt browsing to this address was timed-up.
Probably there is a geo-restriction to allow entering the website only from Israel (On the Mossad website you can find this image ONLY in the Hebrew version of the website) so in order to verify it let’s try to load the website from a different geo-location using https://www.locabrowser.com/
The result is this:

Looks like we solved the first challenge and got the IP address where all the fun begins.
Unfortunately, I cannot access the website normally from here so I’ll try to find a free VPN service in order to fake my IP and location and proceed with the next stage of the challenge.

– Alexander

Oh hi there πŸ‘‹
It’s nice to meet you.

Sign up to receive a notification when new posts are published!

We don’t spam!

Check your inbox or spam folder to confirm your subscription.

BrainfuckChallengeMossadPython

Marking field as required when using Lombok Builder

Is it really a Singleton?

3 thoughts on “The Mossad Challenge 2018 – Entry Riddle”
  1. Vinayak Raghuvamshi
    2018-04-20 at 7:46 PM

    Nice.

    Reply
  2. ajj
    2018-04-24 at 1:16 AM

    where do u write xor

    Reply
    • Alexander Sirotin
      2018-04-24 at 10:08 AM

      The code is in Python,
      Please look at line number 6: c.append(a[i] ^ ord(b[i]))
      I’m taking the numeric value of a[i] and xoring it with the ASCII value of the character at b[i]. The result is going to “c”.
      The character ^ is the xor operation in Python.

      Reply
Leave a Reply Cancel reply

About Me

Principal Software Engineer and an industry leader with startup and FAANG experience. I specialize in distributed systems, storage, data protection services and payment processors.

Beyond technical expertise, I am passionate about supporting fellow engineers in their careers. Through approachable blogs and hands-on guidance, I help navigate the ever-evolving landscape of technology, empowering individuals to thrive in their professional journeys.

Open LinkedIn

Recent Posts

  • Building a Delayed Message System with Redis and FastAPI
  • Go Concurrency, Practical Example
  • Using GORM – Part 3: Models and Idempotency
  • Using GORM – Part 2: Transactions and Save Points
  • Using GORM – Part 1: Introduction

Archives

  • January 2025
  • December 2024
  • March 2023
  • February 2023
  • September 2022
  • July 2022
  • July 2021
  • June 2021
  • February 2021
  • April 2018
  • March 2018
  • January 2018
  • July 2017
  • June 2017
  • May 2017

Categories

  • AWS
  • Career Growth
  • Cyber Security
  • Debugging
  • Development
  • Storage
  • Tips & Tricks

Tags

API AWS Azure Bash Brainfuck C++ Challenge Cloud Cloud Bursting Concurrency Database DevOps Disassembly DLL Documentation DynamoDB Go Golang Guice Java Jenkins Mossad NoSQL OOP Performance Programming Python Redis Security Serverless Singleton Streams Testing Unit Tests WebService

All Rights Reserved 2025 Β© Sirotin Enterprises Inc.
Proudly powered by WordPress | Theme: Doo by ThemeVS.