PowerShell Function Basics and Recursion
## Defining a Function ```powershell function Get-Factorial { param([int]$n) if ($n -le 1) { return 1 } return $n * (Get-Factorial -n ($n - 1)) } Get-Factorial -n 5 …
All notes
100 notes## Defining a Function ```powershell function Get-Factorial { param([int]$n) if ($n -le 1) { return 1 } return $n * (Get-Factorial -n ($n - 1)) } Get-Factorial -n 5 …
# Writing Python Functions and Recursion Basics ## Defining a simple function A function packages reusable logic under a name. You define it with `def`, give it parameters, and …
# WinDbg Patching Arguments at Runtime When a function is about to receive a bad argument (e.g. `NULL` filename passed to `__loaddll`), you can fix the pointer value on [[Stack F…
Active recall is a learning technique that involves actively testing yourself on material rather than passively re-reading. It is closely related to [[Spaced Repetition]] and [[Le…
Testing self-hosted git sync.
Spaced repetition is a learning technique where you review information at strategically increasing intervals over time. Instead of cramming, you revisit material just as you're ab…
# The 5 Principles of Digital Forensics 1. **Lawfulness** All evidence must be collected legally and ethically. Unauthorized access or unlawful searches can render evidence in…
# Core Principles of Forensic Science These principles form the philosophical foundation of all forensic disciplines—physical, biological, and digital. They explain *why* evidenc…
# Synthesis: Core Forensic Principles in Practice Today's session connected the foundational **[[Core Principles of Forensic Science]]** with the procedural **[[The 5 Principles …
# Evidence Acquisition Fundamentals Acquisition is the bridge between the *existence* of a digital trace and its *usability* as evidence. It is where the philosophical principles…
This is a test note for debugging wikilink functionality. It contains a link to [[Test Node Beta]]. Created for bug-fixing purposes.
This is a second test note for debugging wikilink functionality. It contains a link back to [[Test Node Alpha]]. Created for bug-fixing purposes.
# Regex Fundamentals A foundational reference for regex syntax, with emphasis on practical application in digital forensics, log analysis, and tooling like [[Burp Suite]]. ## 1.…
## Convergent vs. Divergent Thinking These two complementary modes of thinking describe how we approach problems and process information. ### Divergent Thinking - **Definition**…
# PowerShell as an Acquisition Engine PowerShell is described in Hosmer's book as a powerful **acquisition engine** for digital investigations. Its role is to gather raw informat…
# PowerShell Cross-Platform PowerShell was originally **Windows-only** because it was built on the .NET Framework. In 2016, Microsoft open-sourced PowerShell and rebuilt it on .N…
PowerShell is typically preinstalled on modern Windows desktop and server platforms. If it is not present, you can download and install it by searching for **Windows Management Fr…
PowerShell ISE (Integrated Scripting Environment) is a free Windows application that provides a workspace for experimenting with and writing [[PowerShell CmdLets]] and scripts. It…
The opening of *Practical Malware Analysis* presents a cautionary incident-response scenario: a network is breached, antivirus identifies the malware as **TROJ.snapAK**, the respo…
# Malware Analysis **Malware analysis** is the process of dissecting malicious software to understand how it works, how to identify it, and how to defeat or eliminate it. It is a…