🏳️
Bag of Flags
  • Home
  • 2023
    • 🅿️picoCTF 2023
      • money-ware
      • repetitions
      • two-sum
      • ReadMyCert
      • rotation
      • hideme
      • PcapPoisoning
      • who is it
      • Reverse
      • timer
      • Safe Opener 2
      • findme
      • MatchTheRegex
      • SOAP
    • 🐦magpieCTF 2023
      • Space Plan
      • Space Exploration
      • So Meta
      • There is no flag
      • Momma says to play fair
      • Rubis
      • What is the password?
      • Eavesdropper
      • Shredded
      • Missing Flag
      • This outta be large enough right?
      • No Password Here
      • Chocolate Chips with Zero-G
      • Education Comes First
    • 🌴ISSessions CTF 2023
      • Basic Permissions
      • Crack Me
      • File Detective
      • Word Vomit
      • Fileception
      • Coding Time
      • Ghost File
      • CryptoTools1
      • CryptoTools2
      • 1337
      • ROT++
      • RunedMyDay
      • RSA_2
      • The Man Who Sold the World
      • VaultChallenge
      • Lost Media
      • Decontamination
      • Decade Capsule
      • Password in A Haystack
  • 2022
    • 🏁UW CTF S22
      • 0s and 1s
      • simple image
      • Helikopter
      • Meow
      • Google Form
      • Strings, literally
      • WASM
      • Audio
      • Pwn0
      • YATD
      • steg
      • Passwords
      • Vitalik
  • Practice
    • 🧠CryptoHack
      • Introduction
        • Finding Flags
        • Great Snakes
      • General
        • ASCII
        • Hex
        • Base64
        • Bytes and Big Integers
        • XOR Starter
        • XOR Properties
        • Favourite byte
        • You either know, XOR you don't
        • Greatest Common Divisor
Powered by GitBook
On this page
  • Description
  • Binary Time
  • Byte the Text
  • Flag
  1. 2022
  2. UW CTF S22

0s and 1s

PreviousUW CTF S22Nextsimple image

Last updated 2 years ago

Description

01110101 01110111 01100011 01110100 01100110 01111011 01100010 00110001 01101110 00110100 01110010 01111001 01011111 00111000 01100001 00110010 00110110 00110110 01100001 00111001 00110101 01100011 00110001 00110011 00110101 00110001 01100100 00110000 00110010 01111101

Binary Time

As stated in the title 0s and 1s, the provided text solely consists of 0s and 1s, which implies a binary string

Binary string - Sequence of bytes (8 bits) where each byte represents a text character

And the string is conveniently already split for us!

Byte the Text

We can easily convert this string using online websites

However, we could also code up a simple function in Python

def binToText(binary):
    text = ""

    # Split the binary into bytes
    # Note this line may differ depending on the input
    binBytes = binary.split(' ')

    # Iterate over each byte
    for byte in binBytes:
        # Convert the base 2 byte into a base 10 number
        num = int(byte, 2)

        # Convert the number into its character counterpart
        char = chr(num)

        # Add to the string
        text += char
    
    return text

Flag

uwctf{b1n4ry_8a266a95c1351d02}

🏁
✌️
Binary to Text Translator
Logo