Skip to content

Latest commit

 

History

History
49 lines (36 loc) · 1.59 KB

File metadata and controls

49 lines (36 loc) · 1.59 KB

Mental

Description

Password Format: Color-Country-Fruit

Hash: 17fbf5b2585f6aab45023af5f5250ac3

NOTE: The flag is NOT in the standard auctf{} format

Solution

This looks like a fun password cracking challenge. We are given a password format (therefore standard password list probably do not include the password). But then it looks like a MD5 hash.

So let's try to create our own password list. First we download:

Then using this Python script, we combine them to create a wordlist:

colors = []
with open("colors.txt", "r") as f:
    for l in f:
        colors.append(l.replace('\n', '-'))

countries = []
with open("countries.txt", "r") as f:
    for l in f:
        countries.append(l.replace('\n', '-'))

fruits = []
with open("fruits.txt", "r") as f:
    for l in f:
        fruits.append(l)

with open("wordlist.txt", "w") as i:
        for l1 in colors:
                for l2 in countries:
                        for l3 in fruits:
                                i.write(l1 + l2 + l3)

Finally we run John to crack the password using our custom list.

crack

Flag: Azure-Botswana-Mango