Paths › Programming

Bytes and Bits in Python

Work with Python text, bytes, integer bits, and small binary records used in CTF scripts.

beginner · 13 lessons · 108 minutes · free

Text and Bytes

  1. Strings vs Bytes (3 min)
  2. Character Encodings (3 min)
  3. Count Bytes, Not Letters (15 min)

Number Forms

  1. Hexadecimal (3 min)
  2. Bitwise Operations (3 min)
  3. Byte Order (5 min)
  4. Decode Hex Payloads (10 min)
  5. Read a Packet Header (15 min)
  6. Byte Order & Endianness (5 min)

Encoding Tricks

  1. Base64 (3 min)
  2. XOR Decryption Script (3 min)
  3. Break Single-Byte XOR (10 min)

Final Lab

  1. Final Lab: Decode the Implant (30 min)