Skip to content

Instantly share code, notes, and snippets.

View randomaccess3's full-sized avatar

Phill Moore randomaccess3

View GitHub Profile
@randomaccess3
randomaccess3 / chromedriver-version.py
Last active September 3, 2022 04:51 — forked from primaryobjects/chrome-version.py
Identify the correct chromedriver-version to download
#
# Programmatically detect the version of the Chrome web browser installed on the PC.
# Compatible with Windows, Mac, Linux.
# Written in Python.
# Uses native OS detection. Does not require Selenium nor the Chrome web driver.
# Forked version of https://gist.github.com/primaryobjects/d5346bf7a173dbded1a70375ff7461b4
# Modified to obtain the right version of the selenium driver
# Doesn't support getting the M1 Mac version
@randomaccess3
randomaccess3 / Merge-CSVFiles.ps1
Created August 31, 2020 00:23 — forked from svch0stz/Merge-CSVFiles.ps1
Merge-CSVFiles: PowerShell Function to Merge a Folder of CSVs and Append a Filename column
# Usage: Merge-CSVFiles
# Usage: Merge-CSVFiles -Path C:\files\to\merge\ -Filter "*.csv" -OutputFile C:\Temp
# Combination of https://declanbright.com/downloads/Combine-Files.ps1 and https://gallery.technet.microsoft.com/scriptcenter/CombineMerge-multiple-CSV-23a53e83
#function Merge-CSVFiles {
#[cmdletbinding()]
param(
[string]$Path = ".",
[string]$Filter = "*.csv",
name: Custom.Windows.WMI.VolumeShadowCopies
sources:
- queries:
- SELECT * FROM wmi(query="SELECT DeviceObject, VolumeName, InstallDate FROM Win32_ShadowCopy")
@randomaccess3
randomaccess3 / gist:225a27eb24e6a812e760b582e9977015
Created May 5, 2020 01:13
Velociraptor - fast file collector
name: Custom.Windows.NTFS.MFT.FilesMatchingKeywords
description: |
This artifact scans the $MFT file on the host showing all files
within the MFT and collects those that match the given list.
parameters:
- name: MFTFilename
default: "C:/$MFT"
- name: Accessor