insideout Get Pro

06 · Scripting for security work

Pro

Computing Foundations, lesson 6

Scripting for security work

Write short scripts that read logs, parse JSON and call an API.

Reading logs by eye works for a screenful, not for a day's worth. A few lines of Python can read a log file, pull out the fields you need, count them, and ask a web service about what they found. You need basic Python; if code is new to you, start with the free beginner's guide linked at the end, CS50's Introduction to Programming with Python.

Part of Pro

In this lesson
  1. Reading a log file
  2. Finding addresses with a pattern
  3. Reading JSON events
  4. Asking a web API

Cybersecurity comes with Pro: every lesson in every module.

Computing Foundations overviewSpotted a mistake? Tell us.