Justin

Justin

Add timestamps to Powershell/Command Prompt

When originally setting up CommandoVM (unfortunately not currently updated anymore), I noticed that when using CMD/PS that it had a timestamp for every line.  I went through all of the setup scripts on the Github page till I found the…

Powershell – Dynamically Tail Log File

I originally made this script to tail a certain program’s log files.  The program started logging, then when the file size hit 1024kb, it created a new file, keeping 10 files total in the directory.  This was tough to track…

Powershell – Combine Log Files

Gets the files inside of a folder, orders them by last write time, combines the contents, then outputs to a new file.  Used when I had multiple rolling log files that I wanted to combine so I could read the…

Powershell – Bound Ports Logging

This script provides 2 functionalities: Log the process with the most bound ports along with the number of ports linked to that process, plus a timestamp Log the output of a command to list processes with bound ports, plus a…

Tools #2 – Nirsoft Utilities

Ode to Nirsoft Nirsoft.net houses a collection of free, portable utilities that I have found indispensable over time.  Much like the SysInternals Suite, I fall back on them when I come across a good problem—chances are one of the small…

Sysmon – THE host-level tracing tool

I have heard about Sysmon for a long time. The past few weeks I have been getting into it and I gotta say, I wish I had gone down this path sooner. Just the sheer reach and configurability is both…