picoCTF gamifies learning hacking with capture-the-flag puzzles created by trusted computer security and privacy experts at Carnegie Mellon University (picoCTF - CMU Cybersecurity Competition, n.d.).

The challenges are categorised into 6 categories: Web Exploitation, Cryptography, Reverse Engineering, Forensics, General Skills and Binary Exploitation. Every picoCTF writeup on this site is searchable and filterable below.

Showing 106 of 106 writeups

Forensicsmedium

like1000

The challenge description implies that we will probably have to extract the contents of the provided tar file repeatedly until we finally find a flag.

  • tar
  • Python
General Skillsmedium

based

As the challenge description suggests, we must be equipped with basic knowledge of different data encodings in order to solve this challenge. However, there are many types of numerical encodings or data encodings used to represent data in different formats.

  • Binary
  • Hex
  • Octal
General Skillsmedium

useless

This challenge requires us to first connect to their SSH server as picoplayer on port 59574. We can do this by running ssh -p 59574 [email protected].

  • SSH
Cryptographymedium

Custom encryption

In this challenge, we will attempt to decode the contents of the given file that has been encrypted with a Python script. We first begin by downloading the 2 files, enc_flag and custom_encryption.py, by running wget <link1> <link2>.

  • Python
  • XOR
Cryptographymedium

ReadMyCert

Based on the description, we will be dealing with certificate requests in this challenge. Before starting this challenge, I actually had little knowledge about certificate requests.

  • Base64
Forensicsmedium

eavesdrop

For this challenge, not much clue was given in the description. However, a hint was provided. We’ll have to keep that in mind when we analyse the packets in Wireshark.

  • Packet capture
  • Wireshark
  • Cryptography
Forensicsmedium

endianness-v2

Welcome to another challenge about endianness. I have done a challenge related to Big-Endian and Little-Endian systems before, which you can check out here: endianness Without further ado, let’s dive into this challenge.

  • Endianness
  • Python
Forensicsmedium

Mob psycho

Honestly, I have put off this challenge for the longest time because I feared that I wouldn’t be able to solve it since I had no prior experience with apk files ...

  • APK inspection
  • zip
  • tree
General Skillsmedium

PW Crack 5

This is the final challenge of the “PW Crack” challenge series. What a journey it has been! In this challenge, we will be cracking a password using a dictionary attack, which is a brute-force approach.

  • Python
  • Password cracking
General Skillsmedium

PW Crack 4

The 4th addition to the “PW Crack” challenge series! How exciting! Check out the previous challenges if you’re interested: PW Crack 1 PW Crack 2 PW Crack 3 In this challenge, we are provided ...

  • Python
  • Password cracking
General Skillsmedium

Plumbing

When I saw the challenge name, my first instinct was that I’ll be required to use pipe (“|”) for this challenge. Of course, it will be pointless guessing without more clues.

    General Skillsmedium

    PW Crack 3

    Another challenge in the “PW Crack” series! Check out the previous 2 challenges in this series too: PW Crack 1 PW Crack 2 We first download the 3 challenge files using wget <link1> ...

    • Python
    • Password cracking
    General Skillsmedium

    Serpentine

    This is a challenge involving a Python script. We will likely have to manipulate the script to display the flag in this challenge. We first download the provided script using wget <link>.

    • Python
    General Skillsmedium

    ASCII Numbers

    We are given a string of hexadecimal values, where each value corresponds to an ASCII character. Indeed, CyberChef can be useful in challenges like these.

    • ASCII
    • Hex
    General Skillseasy

    Lets Warm Up

    This challenge is similar to previous warmup challenges(Warmed Up and 2Warm). For this challenge, we only have to convert hexadecimal(0x70) to decimal, then to an ASCII character.

    • Hex
    • ASCII
    General Skillseasy

    Warmed Up

    This is an easy challenge where we are tasked to convert 0x3D (hexadecimal representation) to base10 (decimal representation). This can be done in many ways, such as using an online conversion tool or writing a script.

      General Skillseasy

      what's a net cat

      This challenge is a very basic challenge where we just have to connect to jupiter.challenges.picoctf.org at port 25103 to get the flag, by running nc jupiter.challenges.picoctf.org ...

      • Netcat
      General Skillseasy

      Magikarp Ground Mission

      For this challenge, we will be tasked to move between directories after we SSH into a server, according to clues we pick up along the way. Let’s begin by running the command to SSH into the server (shown after launching an instance): This allows us to SSH into the picoCTF server on port 60161 as ctf-player.

      • SSH
      General Skillseasy

      Codebook

      Let’s first download the 2 files provided using wget <link1> <link2>. With reference to the challenge description, we are supposed to follow instructions given and run the script code.py in the same directory as the codebook.txt file.

      • Python
      General Skillseasy

      convertme.py

      Alright, our task is to convert a number from decimal to binary, pretty simple! There are many ways to do this. First, we download the Python script convertme.py (using wget), and ran nano immediately to examine the code.

      • Python
      • Binary
      General Skillseasy

      Blame Game

      Another challenge about version control using Git. This time, the description suggests that it’s about commits made by someone. To begin, download the file using wget and unzip it.

      • Git
      General Skillseasy

      Collaborative Development

      From the challenge description, it is hinted that the “team” is facing some version control difficulties, possibly with Git. Other than this, we are not provided with any more clues.

      • Git
      General Skillseasy

      fixme1.py

      Alright, it looks like we just have to fix 1 simple syntax error to allow the flag to be printed successfully. Let’s download the challenge file using wget <link> and check for the syntax error.

      • Python
      General Skillseasy

      fixme2.py

      In this challenge, we are tasked to fix a single syntax error in the provided Python script. This challenge is highly similar to fixme1.py. As mentioned in fixme1.py, when we run a python file, errors (if any) will be printed in the terminal, specifying the type of error and the line number in which the error occurs.

      • Python
      General Skillseasy

      First Grep

      Yep, as the challenge description suggests, we just need to pipe the contents of the downloaded file through grep with the search term “pico” or “picoCTF” to get the flag ...

      • grep
      General Skillseasy

      binhexa

      We begin by connecting to the server by running nc titan.picoctf.net 61359. We are greeted with a barrage of questions related to binary operations. Once we answer the 6 questions and enter the results of the last operation in hexadecimal, we are awarded with the flag.

      • Binary
      • Hex
      General Skillseasy

      2Warm

      The challenge description instructs us to convert the number 42 to binary. We can use any online base 10 to base 2 conversion tool to do this. We can even do it manually.

      • Binary
      General Skillseasy

      Obedient Cat

      I don’t think much elaboration is required for this challenge. The challenge name and the description gave it away, just download the challenge file using wget <link> and run cat to display the flag in the terminal.

        General Skillseasy

        Nice netcat...

        I’ll begin by running the command given in the description to understand how I can proceed. After connecting to the server, I was greeted with an overwhelming number of numbers, as shown below.

        • Netcat
        General Skillseasy

        Static ain't always noise

        This challenge is similar to strings it and Wave a flag. After downloading the files using wget, I ran file static to check the file type of this file.

        • strings
        General Skillseasy

        Python Wrangling

        We first download the 3 challenge files, ende.py, pw.txt and flag.txt.en by running wget. I also tried to display the contents of pw.txt and flag.txt.en.

        • Python
        General Skillseasy

        Wave a flag

        This challenge is basically identical to a previous challenge I’ve completed (strings it). We first download the challenge file using wget <link>, check the file type using file <file-name> (optional), and display printable characters in the file using strings <file-name>.

        • strings
        General Skillseasy

        Bases

        Aha, a challenge dealing with bases! We have this string, with no other clue about how it has been encoded: For my past CTF challenges, it is quite a common occurrence for flags to be Base64 ...

        • Base64
        General Skillseasy

        strings it

        Well, the description gave us a very useful clue. We’ll have to use strings for this challenge. strings prints the strings of printable characters in files.

        • strings
        General Skillseasy

        Tab, Tab, Attack

        The description tells us that we are recommended to use tabcomplete in this challenge while finding the flag. Tabcomplete basically helps you finish words or commands while typing by pressing the Tab key in the terminal.

        • strings
        General Skillseasy

        Glitchcat

        Hmm… the challenge name and description is quite vague. Let’s run the command given when I launched an instance to understand what exactly is going on.

          General Skillseasy

          runme.py

          Alright, seems like we are given instructions on how we can solve this challenge. We shall check it out. First, we download the python script using wget <link>.

          • Python
          General Skillseasy

          HashingJobApp

          From the challenge description and name, we can tell that the challenge’s about cryptographic hash functions. But we don’t know which. After I launched an instance, I was given this command to run: After using this command to connect to the server, I realised what the challenge was all about.

          • MD5
          • Hash
          General Skillseasy

          PW Crack 2

          This challenge approach is really similar to that of the PW Crack 1 challenge. We just have to input the correct password and we get our flag. There is only a minor modification in this challenge compared to the previous one.

          • Python
          • Password cracking
          General Skillseasy

          PW Crack 1

          Currently, all we know is that we are provided with a password checker file and an encrypted flag file which we can download with wget <link>. Perhaps we need to decrypt the flag and submit it as a password in the password checker? When I tried to cat the encrypted flag, all I got was gibberish.

          • Python
          • Password cracking
          General Skillseasy

          Commitment Issues

          In this challenge, we will be playing with Git and Git commands. There’s a word play on Git commits in the challenge name. The hints given also hinted that this challenge is associated with version control, specifically using Git.

          • Git
          General Skillseasy

          repetitions

          Hmmm… the challenge name “repetitions” implies that we will be doing something repeatedly. Could our task be decoding a string repeatedly? Let’s find out! We are only provided with one file, enc_flag.

          • Base64
          General Skillseasy

          First Find

          Well, from the description, it seems like we can first download the given zip file using wget <link>, unzip the file, and then find the full path to the file named uber-secret.txt ...

          • zip
          • grep
          • tree
          General Skillseasy

          Big Zip

          As usual, we begin by downloading the file using wget <link>. For this challenge, the downloaded file is a zip file, so I proceeded to unzip it. This created a directory called big-zip-files.

          • zip
          • grep
          General Skillseasy

          endianness

          Honestly, I did not have much knowledge about endianness and what exactly is Big-Endian and Little-Endian before this challenge. This challenge was a good introduction to the concept for me.

          • Endianness
          General Skillseasy

          Super SSH

          The challenge description basically told us exactly what we have to do to get the flag. We can just follow the instructions. The main challenge is to come up with the SSH command to connect to their server.

          • SSH
          General Skillseasy

          Time Machine

          Hmmmm… the challenge description hints that we will be following a Forensics approach. However, this challenge is categorised under General Skills. We shall explore! We first download the file given using wget <link>.

          • Git
          General Skillseasy

          Binary Search

          As the name suggests, this challenge will be about binary search. From the GeeksforGeeks Binary Search Algorithm page, the Binary Search Algorithm is a searching algorithm used in a sorted array by repeatedly dividing the search interval in half.

          • Binary Search
          • SSH
          Forensicsmedium

          WhitePages

          This challenge was pretty interesting when I tried it, as I’ve never encountered a “blank” .txt file before. As per normal, we first download the provided file by using wget <link> to understand what we’re dealing with.

          • Binary
          • Hex
          • Python
          Forensicsmedium

          Trivial Flag Transfer Protocol

          Hmmmm… vague description. We first download the file using wget <link> and see what type of file it is. The downloaded file is called tftp.pcapng.

          • Packet capture
          • Steganography
          • Steghide
          • File types
          Forensicsmedium

          Operation Orchid

          Since this challenge provides a compressed disk image, we will probably have to use The Sleuth Kit (TSK) tools to assist us. We first download the file using wget, then run gunzip <file-name> to expand the compressed disk image file.

          • Sleuthkit
          • OpenSSL
          Forensicsmedium

          WPA-ing Out

          This is an interesting challenge, as we are trying to crack the WPA password of a wireless network, by using a common password list rockyou.txt. rockyou.txt contains over 14 million unique passwords.

          • Wireshark
          • aircrack-ng
          Cryptographymedium

          Tapping

          Both the description and the hint imply that the flag we are looking for in this challenge is most likely encoded using morse code. In fact, this made me recall the morse-code challenge where the challenge was to decode morse code (.wav file).

          • Morse Code
          • Python
          Cryptographymedium

          john_pollard

          In this challenge, we will be dealing with RSA certificates. The contents of the downloaded certificate is as follows: Since the challenge wants us to break the certificate, I used the CertLogik Certificate Decoder website to gain a better understanding of the certificate.

          • RSA
          Cryptographymedium

          Flags

          Looks like an interesting challenge with a seemingly helpful description. Let’s see. We first download the file using wget <link>. The file downloaded is called flag.png.

          • Substitution
          Cryptographymedium

          Mr-Worldwide

          Seems like an interesting challenge. We first download the file and display its contents using wget <link> and cat <file-name> respectively.

          • Geography
          Cryptographymedium

          caesar

          This challenge, as both the name and hint suggest, is all about the Caesar cipher. We first download the provided file using wget, and running cat on it displays the following string: This looks like a possible flag that we can submit…right? Nope.

          • Caesar Cipher
          Cryptographymedium

          New Caesar

          As the name suggests, this challenge revolves around the concept of the caesar cipher. The downloaded file, new_caesar.py is used to encrypt the flag, and the encrypted flag is given in the challenge description: The following is how the encryption script, new_caesar.py looks like.

          • Python
          • Caesar Cipher
          Cryptographymedium

          la cifra de

          This is a challenge involving Vigenère cipher. After we run this command nc jupiter.challenges.picoctf.org 58295, we are greeted with a block of text: With this clue, I tried searching the years mentioned in the above text (1508, 1467, 1553, 1555).

          • Vigenère
          Cryptographymedium

          Easy1

          This is a straightforward(but tedious) one time pad challenge. The downloaded file, table.txt looks like this: With the encrypted flag UFJKXQZQUNB and the key SOLVECRYPTO, we have all we need to decrypt the flag.

          • One-time pad
          Cryptographymedium

          spelling-quiz

          This is, once again, a challenge involving substitution ciphers. We begin by downloading the given file and seeing its contents. After downloading the file using wget <link>, we realise that it is a zip file.

          • Python
          • Substitution
          Cryptographymedium

          basic-mod2

          This challenge is similar to the previous challenge, basic-mod1, but instead of calculating the modulus of each number, we need to calculate the modular inverse ...

          • Python
          • Modular arithmetic
          Cryptographymedium

          basic-mod1

          The approach for this challenge was already provided in the description, so we can just follow that. After downloading the file using wget, and running cat message.txt, we get this string of numbers: I used a python script to decrypt the message above in order to get the flag.

          • Modular arithmetic
          • Python
          Cryptographymedium

          substitution0

          As the description suggests, we will likely have to decode a message which was encrypted using substitution cipher. We first download the file using wget, and then run cat to see the message.

          • Substitution
          Cryptographymedium

          transposition-trial

          This is a transposition cipher challenge. We first download the corrupted message by using wget. After running cat message.txt, we can see a scrambled message.

          • Transposition
          Cryptographymedium

          HideToSee

          From the description, it seems like this challenge will be using both Forensics and Cryptography concepts. As usual, we start off by downloading the image using wget <link>.

          • Steganography
          Cryptographymedium

          rotation

          As the challenge name and hint suggest, the flag is probably encrypted using a caesar cipher. We first download the file using wget to see how the encrypted flag looks like to understand how we should obtain the flag.

          • ROT13
          Cryptographymedium

          Vigenere

          For this challenge, we only have to download the provided file, check its contents and decode it using a Vigenere cipher decoder, with the key given. Running cat cipher.txt displays the encrypted string that we will need to decode.

          • Vigenère
          Cryptographyeasy

          13

          ROT13 (“rotate by 13 places”) is a simple letter substitution cipher that replaces each letter with the letter 13 positions after it in the alphabet. Since the English alphabet has 26 letters, applying ROT13 twice returns the original text.

          • ROT13
          Cryptographyeasy

          The Numbers

          Seems like an interesting challenge. The downloaded file looks like this. Now, this is surprising. All the previous challenges have had the same flag format of picoCTF{...}.

          • Python
          Cryptographyeasy

          interencdec

          From the description and hint provided, we can infer that this challenge will likely use a variety of decoding processes. We shall begin by downloading the file using wget <link>.

          • Base64
          • Caesar Cipher
          Cryptographyeasy

          Mind your Ps and Qs

          As the description suggests, this is an RSA cryptography challenge. After downloading the file provided using wget <link>, we can run cat values.

          • RSA
          Cryptographymedium

          Mod 26

          ROT13 shifts each letter by 13 positions in the alphabet. Since the English alphabet has 26 letters, this shift wraps around modularly (hence “Mod 26”).

          • ROT13
          Cryptographymedium

          credstuff

          We first begin by downloading the file using wget <link>. The file provided for this challenge is a .tar file. A TAR file is an archive saved in the Tape Archive format.

          • ROT13
          Cryptographymedium

          morse-code

          For this challenge, we are required to decode morse code in an audio format. We begin by downloading the file provided, which is a .wav file. However, using Audacity will likely be a longer approach, so I used an online morse code audio decoder tool instead.

          • Morse Code
          Cryptographymedium

          rail-fence

          This was an interesting challenge that involves a message encoded using the rail fence cipher. Essentially, the plaintext is written diagonally in a zig-zag format, according the number of “rails” in the “fence”.

          • Transposition
          • Rail Fence
          Cryptographymedium

          substitution1

          For this challenge, we will basically repeat the same steps we did to retrieve the flag for the substitution0 challenge. We first download the file using wget, and then run cat to see the message.

          • Substitution
          Cryptographymedium

          substitution2

          For this challenge, we will basically repeat the same steps we did to retrieve the flag for the substitution0 challenge. First, we download the file using wget, and then run cat to see the message.

          • Substitution
          Forensicsmedium

          shark on a wire 1

          We shall start our journey by downloading the file using wget <link>. The downloaded file is a .pcap file. Hence we will continue by using Wireshark.

          • Packet capture
          • Wireshark
          Forensicsmedium

          So Meta

          After downloading the file using wget, we can run exiftool <file-name> to retrieve the flag, as both the description and the hint indicate that we have to examine the metadata ...

          • metadata
          Forensicsmedium

          extensions

          We shall begin by using wget <link> to download the file provided. Running file flag.txt shows that flag.txt is a .png file instead of a .txt file.

          • Image
          • hexedit
          • File types
          Forensicsmedium

          advanced-potion-making

          We begin our quest for the flag by downloading the file using wget. Running file advanced-potion-making and exiftool advanced-potion-making did not provide us with any clue about the file type of this file.

          • Image
          • File types
          • hexedit
          Forensicsmedium

          What Lies Within

          Let’s begin by downloading the file using wget <link>. The downloaded file, buildings.png looks like this. Doesn’t seem helpful in any way. This may be hinting that this is a Steganography challenge.

          • Steganography
          Forensicsmedium

          Disk Disk Sleuth

          This seems like a straightforward The Sleuth Kit (TSK) challenge. As per normal, we begin by downloading the compressed disk image using wget, and then expand the file using gunzip.

          • Sleuthkit
          Forensicsmedium

          Wireshark Doo Dooo Do Doo...

          Aha, a Wireshark challenge. First we download the .pcapng file using wget <link>. Wireshark is a network analysis tool. For more information, refer to Wireshark’s official documentation.

          • Wireshark
          • Packet capture
          • ROT13
          Forensicsmedium

          Matryoshka doll

          This seems like an interesting challenge. The name suggests that we will probably have to recursively extract embedded files from the file provided, since this source explains what Matryoshka Dolls are.

          • binwalk
          Forensicsmedium

          Disk Disk Sleuth II

          Another disk forensics challenge! As usual, we first download the file using wget <link>. We will have to run gunzip <file-name> as well to expand the file.

          • Sleuthkit
          Forensicsmedium

          MacroHard WeakEdge

          As the challenge name suggests, we will be dealing with Microsoft PowerPoint files in this challenge. We begin our journey by downloading the .pptm file using wget <link>.

          • zip
          • tree
          Forensicsmedium

          Enhance!

          A straightforward challenge. First, we download the file using wget <link>. At first, running strings <file-name> does not seem to reveal any important information.

          • strings
          Forensicsmedium

          File types

          This challenge requires us to use binwalk and decompress many file types to eventually obtain our flag… and there’s a reason why it’s only 26% liked. As usual, we start by using wget to download our file from PicoCTF.

          • File types
          Forensicsmedium

          Operation Oni

          From the description, it looks like we will have to download the disk image and retrieve an ssh key to connect to an ssh server afterwards, in order to obtain our flag ...

          • Sleuthkit
          • SSH
          Forensicsmedium

          Lookey here

          We begin by downloading the file using wget. We realise that the file provided is a text file. Based on the description, this text file is likely to be text-heavy.

            Forensicsmedium

            Packets Primer

            Seems like a typical network forensics challenge. After downloading the pcap file using wget, we can use Wireshark to get the flag. Since there are only 9 packets in this pcap file, finding the flag was straightforward.

            • Packet capture
            Forensicsmedium

            Redaction gone wrong

            After downloading the file, we can simply use the GUI to open the pdf file. In this case, I opened it with Atril Document Viewer. Selecting one of the blacked out portion reveals the flag in plaintext.

              Forensicsmedium

              Sleuthkit Apprentice

              We will first download and extract the compressed disk image using wget <link> and gunzip <file-name> respectively. We will then need to use The Sleuth Kit (TSK) commands for disk image analysis.

              • Sleuthkit
              Forensicsmedium

              St3g0

              We shall start off by following the instructions. I ran wget <link> to download the file. I also opened the file in GUI, but as the challenge name suggests, this is a Steganography challenge, so there was no useful information there.

              • Steganography
              • zsteg
              Forensicsmedium

              FindAndOpen

              We are provided with a flag.zip file and a dump.pcap file. The flag.zip file is password protected, as displayed below. With the above hint, I ran strings dump.pcap to have a quick glimpse of what’s going on in the pcap file.

              • Base64
              Forensicsmedium

              Sleuthkit Intro

              Based on the directions given, we will just have to wget <link to file> then run mmls and enter the value of the size of Linux partition in the nc server ...

              • Sleuthkit
              Forensicsmedium

              hideme

              The hideme challenge name already suggests that the flag is hidden from plain sight. We shall try to explore. Running binwalk reveals that there are embedded files that we need to take note of.

              • binwalk
              Forensicseasy

              Glory of the Garden

              The hint references a hex editor, but strings is a faster approach here. The flag is not visually embedded in the image. It is appended as raw text after the image data, which is why viewing the image normally doesn’t reveal it.

                Forensicsmedium

                PcapPoisoning

                After downloading the file, we realise that it is a pcap file, as the challenge name already suggests. We can run strings <file-name> | grep pico to get the flag immediately.

                • Packet capture
                Forensicseasy

                information

                That may be a clue for us to check the metadata of the file downloaded, we shall see! Spot on! We can see that there is a suspicious string of characters at License section of the metadata ...

                • metadata
                • Base64
                Forensicseasy

                CanYouSee

                Right off the bat, the description seems interesting. “Hide and seek” implies that the flag may be hidden and may not be easily seen. As per usual, we begin by downloading the file.

                • metadata
                Forensicseasy

                Secret of the Polyglot

                Another forensics challenge! As usual, we first download the suspicious file. We notice that the file is supposedly a pdf file. However, when we run file <file-name>, we realise that the file is a PNG file instead.

                • File types
                Forensicseasy

                Scan Surprise

                A straightforward challenge. All we have to do is follow the instructions and connect to the server via SSH, where we will be greeted with a QR Code: From here, we can just use a QR Code scanner to retrieve the flag.

                • QRcode
                Forensicseasy

                Verify

                This is a straightforward challenge. Following the directions given, we just have to connect to the server via SSH: There is a files directory after we use the ls command.

                • Checksum
                • SSH