Skip to content

Instantly share code, notes, and snippets.

Avatar

Josh Frantz jfrantz1-r7

  • Rapid7
View GitHub Profile
View insightvm.yaml
This file has been truncated, but you can view the full file.
swagger: '2.0'
info:
description: |-
# Overview
This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the
Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the
`application/json` media type. This API uses Hypermedia as the Engine of Application State (HATEOAS) and
is hypermedia friendly. All API connections must be made to the security console using HTTPS.
View gist:feb9fb49603690fb391ea4cc8ff5cb20
## This is a sample configuration file. See the nxlog reference manual about the
## configuration options. It should be installed locally and is also available
## online at http://nxlog.org/docs/
## Please set the ROOT to the folder your nxlog was installed into,
## otherwise it will not start.
#define ROOT C:\Program Files\nxlog
define ROOT C:\Program Files (x86)\nxlog
View gist:d4b44fbf86b014314e50faafdc445a76
Panic Soft
#NoFreeOnExit TRUE
define ROOT C:\Program Files (x86)\nxlog
define CERTDIR %ROOT%\cert
define CONFDIR %ROOT%\conf
define LOGDIR %ROOT%\data
define LOGFILE %LOGDIR%\nxlog.log
LogFile %LOGFILE%
View gist:9c9e3eadbf8504229868bd8229fdc99a
<Extension _json>
Module xm_json
</Extension>
<Input eventlog>
Module im_msvistalog
Exec to_json();
</Input>
<Output tcp>
View ez.ps1
$RegUninstallPaths = @(
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall',
'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall')
$VersionsToKeep = @('Java 8 Update 261')
Get-WmiObject Win32_Process | Where {$_.ExecutablePath -like '*Program FilesJava*'} |
Select @{n='Name';e={$_.Name.Split('.')[0]}} | Stop-Process -Force
get-process -Name *iexplore* | Stop-Process -Force -ErrorAction SilentlyContinue
View gist:1941622f7e0ec3687e52e336ab37124d
$DateTime = Get-Date -f "yyyy-MM"
$CSVFile = "C:\AD_Groups"+$DateTime+".csv"
$CSVOutput = @()
$ADGroups = Get-ADGroup -Filter *
$i=0
$tot = $ADGroups.count
foreach ($ADGroup in $ADGroups) {
View purge_orphan_asset_data.sql
------------------------------------------------------------------------------------------------------------------------------------------------------------
-- Asset Purge v3
------------------------------------------------------------------------------------------------------------------------------------------------------------
SET search_path TO nxsilo_default, nxadmin, nxglobal;
ANALYZE VERBOSE;
\echo `date` 'Disable constraints'
SET session_replication_role = replica;
------------------------------------------------------------------------------------------------------------------------------------------------------------
View delete_recursive_empty_directories.ps1
Get-ChildItem $directory -Directory -Recurse -Force |
Sort-Object -Property FullName -Descending |
Where-Object { $($_ | Get-ChildItem -Force | Select-Object -First 1).Count -eq 0 } |
Remove-Item
View gist:97d50920a6d1cacb7abf029b4cc0935d
#!/bin/bash
#############################################################################################################
## Information ##
#############################################################################################################
## Created by Clay Nelson on 2/15/19 ##
## Sources: ##
## Shannon Johnson - https://www.jamf.com/jamf-nation/discussions/29555/script-to-install-update-java ##
## Lewis Lebentz - https://lew.im/2017/03/auto-update-chrome/ ##
## Joe Farage - https://www.jamf.com/jamf-nation/third-party-products/files/764/firefox-install-update ##
View public-aws.md

#Public resources

ECR

Lambda

Lambda Layer

Serverless Application Repository

You can’t perform that action at this time.