Skip to content

Instantly share code, notes, and snippets.


Silent Break Security silentbreaksec

View GitHub Profile
silentbreaksec / nginx.conf
Last active Jan 2, 2020
Red Team Nginx Sample Config
View nginx.conf
user nginx;
worker_processes auto;
pid /usr/local/nginx/logs/;
include /etc/nginx/conf.d/*.conf;
worker_rlimit_nofile 50000;
events {
worker_connections 50000;
# HELK Installation Script (Elasticsearch, Logstash, Kibana & Nginx)
# HELK build version: 0.9 (BETA Script)
# Author: Roberto Rodriguez @Cyb3rWard0g
# Description: This script installs every single component of the ELK Stack plus Nginx
# Blog:
# Fork version: 0.1
# Fork Author: Ryan Watson @gentlemanwatson
silentbreaksec / snippet.cs
Created Nov 6, 2019
Convert C# EXE to Assembly
View snippet.cs
[DllImport("shell32.dll", SetLastError = true)]
static extern IntPtr CommandLineToArgvW([MarshalAs(UnmanagedType.LPWStr)] string lpCmdLine, out int pNumArgs);
public static string[] CommandLineToArgs(string commandLine)
int argc;
var argv = CommandLineToArgvW(commandLine, out argc);
if (argv == IntPtr.Zero)
throw new System.ComponentModel.Win32Exception();
silentbreaksec / SysmonStartup.bat
Created Mar 2, 2018
Windows batch file to deploy Sysmon using a startup script via GPO
View SysmonStartup.bat
@echo off
:: Author: Ryan Watson
:: Twitter: @gentlemanwatson
:: Version: 1.0
:: Credits: Credit to and their Sysmon GPO article for the kick off point
:: ** IMPORTANT **
:: 1) Create a Sysmon folder with the SYSVOL share on your domain controller
:: 2) Download Sysmon from Microsoft and place both sysmon.exe and sysmon64.exe in