HackTheBox MinMax Writeup
Explore the basics of cybersecurity in the MinMax Challenge on Hack The Box. This easy-level Challenge introduces encryption reversal and file handling concepts in a clear and accessible way, perfect for beginners.
Task
MiniMax
We’ve intercepted codes from an underground organisation with intentions of malicious activity. Intelligence has informed us that most of the numbers are garbage, but the biggest and smallest numbers in the file form co-ordinates of the group’s next attack location.
Identify these 2 numbers, then print out first the minimum and then the maximum. Please be swift, agent - the clock is ticking!
Example
Input
3.29 3.09 1.34 2.89
Output
1.34
3.29
Poc
1
2
3
4
5
6
7
8
9
10
11
import sys
numbers = []
for line in sys.stdin:
nums = [float(x) for x in line.split()]
numbers.extend(nums)
min_num = min(numbers)
max_num = max(numbers)
print(min_num)
print(max_num)
This post is licensed under CC BY 4.0 by the author.