Skip to content

Hack The Box | Oddly Even

In this walkthrough, we will be going through the Oddly Even box on Hack The Box.


Successfully Pwned Oddly Even

Completed and pwned this challenge on Hack The Box.

Owned

Hack The Box

Pwned

Challenge Description

The ghostly clock ticks strangely. Determine whether its chimes are even or odd to calm the restless spirits.

Challenge Overview

This challenge is pretty simple we got a web page where we have a code editor. We need to create a script that will return "even" or "odd" based on the input given.

Oddly Even - Overview

Automation Script (python)

To resolve this challenge, we can create a simple python script that will return "even" or "odd" based on the input. We also can use other languages like C, C++ and Rust.

python
# take in the number
n = int(input())

# calculate answer
if n % 2 == 0:
    answer = "even"
else:
    answer = "odd"

# print answer
print(answer)

After sumbitting the script, we will get the flag.