HTB-Nuclear Sale
Cryptography - Level Easy
رايت اب جديد 🥳
وصف التحدي:
Plutonium Labs is a private laboratory experimenting with plutonium products. A huge sale is going to take place and our intelligence agency is interested in learning more about it. We have managed to intercept the traffic of their mail server. Can you find anything interesting?
و حملت الملف طلع pcap file
تصفحت الملف وزي ما هو واضح قدامكم هو mail server

mail server نعرف انه يستخدم بروتوكول SMTP
SMTP: Simple Mail Transfer Protocol
نقاط مهمة لازم نعرفها عن البروتوكول
we know that SMTP easily readable by eavesdroppers.
سهل انه ينقرأ بحكم أنه يظهر كـ plain text and ASCII وهذا يسمح للمخترقين أن يتنصتون على الtraffic
STEP 1 :
المهم نبدأ الخطوة الأولى شفت البروتوكولز كلها SMTP فقلت أبد بسوي follow TCP stream و نشوف شالسالفة

💡 hint ->
حلو طلع لنا في stream 1 دليل على أن العملية XOR
STEP 2: collect data
Stream 2 و اعطانا في:
He is a high profile individual. His information is encrypted below:
6b65813f4fe991efe2042f79988a3b2f2559d358e55f2fa373e53b1965b5bb2b175cf039
Message (XOR) key = C
Stream 3 و في:
ciphertext 1 (C1) encrypted with our key.
fd034c32294bfa6ab44a28892e75c4f24d8e71b41cfb9a81a634b90e6238443a813a3d34
(Message (XOR) key) (XOR) key1(our key) = C1
Stream 4 و في:
ِEncrypted with our key..
de328f76159108f7653a5883decb8dec06b0fd9bc8d0dd7dade1f04836b8a07da20bfe70
(Message) (XOR) key1(our key) = C2
STEP 4: Analysis
بعد
two cipher encrypted with the same key? interesting
تذكروا نظرية فيثاغورس .. عندنا متغيرين شلون نطلع الثالث 😜
STEP 1:
if we (
Message(XOR)key) (XOR) key1(our key)(XOR)Message(XOR)keysince -> Message and key will be cancelled then the output will be -> key1STEP 2:
Then if (Message) (XOR) key1(our key) (XOR) with Key1(our key) [output from STEP1] then -> Key 1 will be cancelled and the output will be -> message.
STEP 5: Coding phase
طيب لازم نبرمج استخدمت بايثون عشان نطلع المسج
my code
أنا وضحت الخطوات أكيد فيه اختصارات و كود أسهل و ممكن تستخدمون cyberchef
مهما تعددت الطرق الحل واحد اختاروا اللي تبونه مع الوقت أكيد بنتطور 👌🏻
استمتعت و أنا آحل بحكم أني استرجعت كم معلومة وقبل الختام نشكر قوقل 👍🏻

Last updated