Tag

74 posts from HNF26, Self-Created and picoCTF

Cryptographymedium

HNF26 - A lightkeeper of Nod-krai

The challenge provided a long block of ciphertext alongside an atmospheric story description: Beneath a lantern at the edge of the ruins, a traveller found a note ...

  • Vigenère
  • Transposition
Cryptographymedium

HNF26 - Textbook Perfect

The challenge provided an RSA modulus n, a public exponent e, and a ciphertext c: The small public exponent, e = 3, made me check whether a cube root attack would work ...

  • RSA
  • Hex
  • Python
Cryptographymedium

HNF26 - Twice-Used Page

The challenge provided a file named tapes.txt containing two hexadecimal ciphertexts: The challenge title and the two ciphertexts pointed to a classic One-Time Pad (OTP) key reuse ...

  • XOR
  • One-time pad
  • Python
Forensicsmedium

HNF26 - The Custodian's Cadence

The challenge hosted a network service on port 2323 with the following description: The custodian of retro-01 still logs in at odd hours. The machine is long gone, but the feed is live.

  • Netcat
  • Binary
  • Python
Infra Hackingmedium

HNF26 - shared

The target shared John’s home directory over NFS with no_root_squash, so root on my machine was treated as root on the share. That let me write into John’s home directory, add an SSH key and log in as John.

  • NFS
  • SSH
  • GTFOBins
Web Exploitationmedium

HNF26 - skill issue

The game involved clicking a moving red circle as many times as possible before the timer ran out. To get the flag, I needed to beat the high score of 9999.

  • Java Script
Forensicsmedium

HNF 2025 - Beaconing

An IT staff on the internal network (10.0.0.0/24) reported unauthorised data transfers! We managed to capture some network traffic from the affected segment, and initial analysis ...

  • Packet capture
Infra Hackingmedium

HNF 2025 - Friendly Butler

Automation is becoming increasingly popular! This system’s automated butler, however, seems a bit too friendly. Perhaps we could coerce it to see what kind of secrets it would reveal? Rules of Engagement: The flag is located at /home/[username]/flag.txt.

  • Jenkins
Miscellaneousmedium

YCEP 2025 - Extensions

I was told that the flag is separated into 3 files, but I can’t seem to retrieve it and I don’t know what’s wrong…

  • File types
Cryptographymedium

YCEP 2025 - French Frenzy

Oh no! My French pen pal accidentally encrypted the contents of a few top-secret files, and things took an acidic turn! Now his boss is as sour as vinegar ...

  • Vigenère
OSINTmedium

YCEP 2025 - Snips and Sips

My brother told me about this aesthetic cafe with perfect vibes and cozy corners. The only problem? I have no clue where it is. I only have this image. Guess I’ll have to make do with it… Flag format: YCEP25{cityname_cafename} Example: YCEP25{bangkok_cafeclaire}

    Forensicsmedium

    YCEP 2025 - Riding WAVes

    You’ve received an unusual WAV file - but it doesn’t feel quite right. Could there be more to this sound than meets the ear? Do note that the flag is case-sensitive.

    • Steganography
    • Steghide
    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
      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
      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
          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