diff --git a/writeups/Mu-Onam-CTF/Finland/files/code.py b/writeups/Mu-Onam-CTF/Finland/files/code.py new file mode 100644 index 0000000..cf85904 --- /dev/null +++ b/writeups/Mu-Onam-CTF/Finland/files/code.py @@ -0,0 +1,11 @@ +import hashlib + +string = 'catch-me-if-you-can+' +number = 631550310 + +while True: + number = number + 1 + hash = hashlib.sha256(f'{string}{number}'.encode()).hexdigest() + if '00000000'in hash: + print(number) + break \ No newline at end of file diff --git a/writeups/Mu-Onam-CTF/Finland/img/Finland0.png b/writeups/Mu-Onam-CTF/Finland/img/Finland0.png new file mode 100644 index 0000000..b4ef799 Binary files /dev/null and b/writeups/Mu-Onam-CTF/Finland/img/Finland0.png differ diff --git a/writeups/Mu-Onam-CTF/Finland/index.html b/writeups/Mu-Onam-CTF/Finland/index.html new file mode 100644 index 0000000..23d5149 --- /dev/null +++ b/writeups/Mu-Onam-CTF/Finland/index.html @@ -0,0 +1,153 @@ + + + + + CTF Writeup - Finland + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+
CTF Writeups - Finland
+
+ + + +
+
+ +
+
+
+ + + +
+
+


+ Points: 150
+ Description: Consider the format: "< message > + < random number >". For example: "hello+453" has its SHA256 hash as:
+
+ 24ea0ded1e01de0861bfaaace9bbfb48922f96f4e023ca637ee5cb1b29e9db7f
+
+ Where hello is message, plus (+) is the delimiter & 453 is a random number.
+
+ Find the smallest positive integer such that the SHA256 hash of the message "catch-me-if-you-can" represented in the given format has eight zeros as its first 8 characters.
+
+ Note:
+ 1. The hash presented for "hello+453" has "24e" as the first 3 characters.
+ 2. There are no quotes in the format, they are just to highlight the strings.
+
+ Example:
+
+ With the random number 453, the hash of the given message: "catch-me-if-you-can" (i.e. catch-me-if-you-can+453) in the specified format is:
+
+ a84f4f32f3ba9b2f1e402e248f9d27239875a752114405b94e6e570a29c1073e +

+
+ + +
+

Links and Hints

+

:)

+
+ + +
+

Recon

+

From the question, we can understand that we need to find the smallest positive integer such that the SHA256 hash of the message "catch-me-if-you-can" represented in the given format has eight zeros as its first 8 characters.
+

+
+ +
+

Finding the Flag

+

So we wrote a python script while add number form 0 to infinity and check if the hash has 8 zeros as its first 8 characters.

+
+ +
+
+        import hashlib
+        
+        string = 'catch-me-if-you-can+'
+        number = 0
+        
+        while True:
+            number = number + 1
+            hash =  hashlib.sha256(f'{string}{number}'.encode()).hexdigest()
+            if '00000000'in hash
+                print(number)
+                break
+        
+ Download Code +
+ +
+

After burning GPU for a decade we found it😢...!

+ +

Flag

+ muctf{catch-me-if-you-can+631550315}


+
+
+ +
+ + + +
+
+ + + + +
+
+ Copyright © Team Faux - All rights reserved +
+
+ + + diff --git a/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan0.png b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan0.png new file mode 100644 index 0000000..7a22f83 Binary files /dev/null and b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan0.png differ diff --git a/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan1.png b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan1.png new file mode 100644 index 0000000..351967c Binary files /dev/null and b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan1.png differ diff --git a/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan2.png b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan2.png new file mode 100644 index 0000000..daa23c4 Binary files /dev/null and b/writeups/Mu-Onam-CTF/Kazakhstan/img/Kazakhstan2.png differ diff --git a/writeups/Mu-Onam-CTF/Kazakhstan/index.html b/writeups/Mu-Onam-CTF/Kazakhstan/index.html new file mode 100644 index 0000000..ff0213c --- /dev/null +++ b/writeups/Mu-Onam-CTF/Kazakhstan/index.html @@ -0,0 +1,138 @@ + + + + + CTF Writeup - Kazakhstan + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+
CTF Writeups - Kazakhstan
+
+ + + +
+
+ +
+
+
+ + + +
+
+


+ Points: 150
+ Description: He did something he shouldn't have. We arrested him but need proof !!! +

+
+ + + + + +
+

Recon

+

The challenge had a 7zip file of size 473.8 MiB.

+ +

By unzipping it we get a 2.0 GiB row file.

+ + +
+ +
+

Finding the Flag

+

As usual, we just tried strings because it's a file. and we found many sentences are passing.

+ strings -10 file.raw + +

oh it huge lets try luck 👀. so tried a filtering with grep to check it contain "muctf{" which is the starting formate of our ctf

+ strings -10 file.raw | grep "muctf{" +

BOOM BOOM THE FLAG 😂😂!

+ + +

Flag

+

muctf{MemdUmPIIsHeREee}

+ +

PRO TIP : strings everything

+
+ +
+ + + +
+
+ + + + +
+
+ Copyright © Team Faux - All rights reserved +
+ +
+ + + + + + + + + + + + +