InfoSecMonkey: No fluff. Just the config that works.

Category Archives: Scripting

Managing Windows Firewall from the Command Line: netsh, PowerShell and 7 Hidden Features

Managing Windows Firewall from the Command Line: netsh, PowerShell and 7 Hidden Features

Master the Windows firewall command line with netsh and PowerShell, plus 7 hidden features like FQDN rules, drop forensics and auto-revert.

Read More
Lua Primer for Security Engineers: The Language Behind Nmap, Wireshark and Snort 3

Lua Primer for Security Engineers: The Language Behind Nmap, Wireshark and Snort 3

Learn Lua for security engineers. Parse FortiGate logs and write Nmap NSE scripts. Master tables, patterns, and closures in this practical guide.

Read More
Txt2Task –  Import a ASCII list of tasks into Apple Reminders

Txt2Task – Import a ASCII list of tasks into Apple Reminders

Use Txt2Tasks to import tasks to Apple Reminders from plain text. Follow this guide to install the app, format your file, and handle permissions.

Read More
The vi Cheat Sheet (2026 Edition): From Survival Keys to Power Moves

The vi Cheat Sheet (2026 Edition): From Survival Keys to Power Moves

Use this vi cheat sheet to master survival keys and power moves. Learn vi modes, operator grammar, and vim extensions for fast config editing.

Read More
SED and AWK for FortiGate Configs: Surgical Edits, Inventories, and Migrations from the Shell

SED and AWK for FortiGate Configs: Surgical Edits, Inventories, and Migrations from the Shell

Use sed and awk for FortiGate configs to extract tables, inventory objects, and remap interfaces. Learn to parse and edit FortiOS backups safely from...

Read More
FortiGate AutoScripts Deep Dive: Inside the Trigger “Fields” Block

FortiGate AutoScripts Deep Dive: Inside the Trigger “Fields” Block

Configure FortiGate automation trigger fields for precise log matching. Learn the AND logic, wildcard syntax, and how to find valid field names.

Read More
Deploying Nuclei on Ubuntu Server

Deploying Nuclei on Ubuntu Server

Install Nuclei on Ubuntu Server with this step-by-step guide. Learn to deploy the binary, manage templates, and automate updates with systemd for secure scanning.

Read More
Demystifying Regular Expressions (Regex) in Fortinet Environments

Demystifying Regular Expressions (Regex) in Fortinet Environments

Master Fortinet regex syntax for DLP and IPS. Learn PCRE vs POSIX rules, avoid CPU spikes, and use ready-to-use patterns for FortiOS security profiles.

Read More
Detecting Bettercap on the Wire: Building a Blue-Team Lab to Identify and Alert on Layer-2 MitM Activity

Detecting Bettercap on the Wire: Building a Blue-Team Lab to Identify and Alert on Layer-2 MitM Activity

Build an isolated lab to detect Bettercap ARP poisoning. Configure Arpwatch and Suricata to alert on Layer-2 MitM activity and rogue DNS artifacts.

Read More
Impacket Scripts Explained: A Practitioner’s Field Guide to the Toolkit Every Defender Should Recognize

Impacket Scripts Explained: A Practitioner’s Field Guide to the Toolkit Every Defender Should Recognize

Impacket scripts explained for defenders. Learn how psexec, secretsdump, and other tools operate on the wire to build accurate Active Directory detections.

Read More
Automate Commenting on macOS File System

Automate Commenting on macOS File System

Automate macOS file comments using an AppleScript Quick Action. Assign a keyboard shortcut to add metadata to files in Finder without manual clicks.

Read More
Random Password Generator from the Command Line

Random Password Generator from the Command Line

Generate random passwords with pwgen command line. Learn to install pwgen on macOS and Linux, and use flags to create secure, non-ambiguous strings for...

Read More
The Not-So Complete Guide to Getting Started with Jinja2 Templating

The Not-So Complete Guide to Getting Started with Jinja2 Templating

Master Jinja2 templating Python by building templates with variables, control flow tags, and Flask integration. Stop manual string concatenation and generate clean dynamic files.

Read More
Style All Occurrences of Tokens in Sublime Text

Style All Occurrences of Tokens in Sublime Text

Use the StyleToken package in Sublime Text to highlight all occurrences of a token. Install the plugin and style log entries for faster troubleshooting.

Read More
Extracting Registration Codes from PDF

Extracting Registration Codes from PDF

Extract Fortinet registration codes from PDF files into a CSV using a Python script with pdfplumber. Automate license imports for support.fortinet.com.

Read More
Mass Create Objects in FortiGate with Python

Mass Create Objects in FortiGate with Python

Mass create FortiGate objects with Python using CSV templates. Automate static route deployment for ISFW without manual CLI entry.

Read More
Sublime Text Customizing

Sublime Text Customizing

Sync Sublime Text 4 settings via iCloud on macOS. Use these shell commands and keyboard shortcuts for faster editing, macros, and panel management.

Read More
Syncing Sublime Text for macOS with iCloud

Syncing Sublime Text for macOS with iCloud

Learn how to sync Sublime Text with iCloud on macOS using symbolic links. Keep your settings and packages consistent across multiple Macs.

Read More