Перейти к основному содержимому
Playbook: Web (veb-tahlil), Crypto (kriptografiya) & OSINT
Урок 2 из 8

Playbook: Web (veb-tahlil), Crypto (kriptografiya) & OSINT

Triage and solve starter CTF challenges across Web, Cryptography, and OSINT using Burp Suite, Python, and ExifTool while connecting each flaw to core defensive concepts.

Средний 26 мин CTF
Этого урока пока нет на выбранном языке — показана версия на другом языке. Перевод готовится.

Цели обучения

  • Run a structured Web triage checklist with curl, browser DevTools, and Burp Suite
  • Identify encoding vs encryption mistakes, single-byte XOR, ECB block leaks, and weak RSA parameters in Python
  • Extract and verify image metadata and public artifacts safely in OSINT tasks with ExifTool
  • Connect starter Web, Crypto, and OSINT challenge patterns to deeper security modules

Рекомендуется заранее: CTF Formats, Toolkits, Ethics & Structured Note-Taking

#Why this matters

Web (veb-tahlil), Cryptography (kriptografiya), and OSINT make up the majority of non-binary challenges in beginner and intermediate CTFs. Jumping straight to heavy scanners or guessing cipher names wastes valuable time. A concise category playbook gives you the first three checks to run in five minutes and ties every puzzle back to real-world engineering flaws.

#Web (veb-tahlil) playbook

Starter web tasks usually hide clues in client-visible code or trust values sent by the browser. Work through this order before launching any automated tool:

  1. Inspect source and responses: Check HTML comments, linked JavaScript files, robots.txt, and HTTP headers (Set-Cookie, Location, custom X-* headers).
  2. Proxy traffic through Burp Suite: Route your browser through Burp Proxy and resend interesting requests in Repeater to test how the server reacts to small changes.
  3. Test server-side trust: Look for client-controlled role cookies, unsigned Base64 tokens, numeric resource IDs (id=1 changed to id=2 for broken object-level access), and syntax errors from single quotes or template markers.
Testing client-trusted cookies with Burp ProxyTesting client-trusted cookies with Burp ProxyBrowserBurp ProxyLab ServerGET /admin (Cookie: role=user)Repeater edits cookie valueGET /admin (Cookie: role=admin)200 OK (flag in dashboard)Displays response

You can run the same quick header and cookie check from the terminal with curl:

Checking headers and testing a cookie on a lab target
$ curl -i -s http://lab.local/profile | head -n 6
HTTP/1.1 200 OK
Content-Type: text/html; charset=utf-8
Set-Cookie: role=guest; Path=/
X-Debug-Hint: /api/v1/status

$ curl -s -b "role=admin" http://lab.local/profile | grep -o "CYBER{[^}]*}"

These checks connect directly to Web Security modules covering HTTP semantics, session management, and OWASP Top 10 access-control failures.

#Crypto (kriptografiya) playbook

Beginners often treat every scrambled string as strong encryption. Start by separating encoding (no secret key, such as Base64 or Hex) from encryption (uses a key). For custom or flawed crypto challenges, check three common patterns:

  • Known-plaintext XOR: Single-byte or short repeating-key XOR breaks immediately when you know the flag begins with CYBER{.
  • AES-ECB block leaks: Electronic Codebook mode encrypts identical 16-byte blocks into identical ciphertext blocks, exposing repeated structures or allowing block shuffling.
  • Weak RSA setups: Small public exponent e=3 with an unpadded short message (m^3 < n), small factorable modulus n, or two keys sharing a prime factor.
Recovering a single-byte XOR key using the known CYBER{ prefix
cipher_hex = "1903181f082122352805313f2305283f2f293f27"
ct = bytes.fromhex(cipher_hex)

# Because ct[0] = ord('C') ^ key, XORing ct[0] with 'C' reveals the key
key = ct[0] ^ ord("C")
plaintext = bytes(b ^ key for b in ct).decode()
print(f"key=0x{key:02x} -> {plaintext}")
# Output: key=0x5a -> CYBER{xor_key_reuse}

Understanding why these toy schemes fail prepares you for cryptography modules on authenticated encryption (AES-GCM), secure padding, and modern NIST post-quantum standards (FIPS 203, 204, 205).

#OSINT playbook

Open-source intelligence tasks test methodical verification rather than guessing:

  1. Inspect local files first: Run exiftool on downloaded images or documents to read camera model, author, software, comment, and GPS tags.
  2. Pivot and triangulate: Use unique usernames, domain registration details, or landmarks from the image and confirm each clue across two independent public sources.
  3. Document provenance: Record the URL, query, and timestamp for every clue so teammates can verify how you reached the answer.
Category Core tools First two checks Linked module
veb-tahlil Burp Suite, curl View source/headers, tamper cookies/IDs Web & API Security
kriptografiya Python, CyberChef Encoding vs cipher, known-plaintext/ECB/RSA Applied Cryptography
osint ExifTool, browser Embedded metadata, two-source verification Recon & Threat Intel

#Common mistakes

  • Launching heavy fuzzers immediately: Running directory or SQLi brute-forcers before reading the HTML, headers, and Burp history misses obvious clues and floods lab hosts.
  • Calling Base64 "encryption": Base64 is a reversible transport encoding with no secret key.
  • Forgetting non-EXIF metadata: Stripping basic EXIF fields may leave XMP, IPTC, or comment tags intact inside an image.
  • Confusing unrelated real accounts with OSINT targets: Always double-check challenge identifiers so you never investigate a real bystander.

#Summary

Starter Web, Crypto, and OSINT challenges reward structured triage over brute force. Inspect HTTP responses and client-trusted state with curl and Burp Suite, test encodings, XOR, ECB, and RSA assumptions with short Python scripts, and examine file metadata carefully with ExifTool. Linking each puzzle to its deeper defensive principle turns CTF practice into lasting engineering skill.

Проверка знаний

Войдите, чтобы проходить тест, завершать уроки и сохранять прогресс. Войти в систему

Практика: проверьте свои знания