Skip to content

Instantly share code, notes, and snippets.

View gjyoung1974's full-sized avatar
🎯
Focusing

Gordon Young gjyoung1974

🎯
Focusing
View GitHub Profile
#!/usr/bin/python
"""
Implements an RFC 5424 compliant SysLog agent/client on MSFT Windows Server.
We live in a Internet world, Windows needs Syslog for WinEVT...
"""
import socket
import json
import win32con
import win32event
# [!] Windows Syslog Agent/Client
# [$] Forward Windows Events via UDP in JSON format, designed for compatibility with Syslog/Rsyslog
# [$] Written: Gordon Young
function getStatus () {
$ip = '192.168.1.100'
$offlineLogs = 'C:\Windows\Temp\queued.log'
import subprocess
import docker
from kubernetes import client, config
from tenable.cs import ContainerSecurity
from jira import JIRA
dockerClient = docker.from_env()
config.load_kube_config()
v1 = client.CoreV1Api()
@gjyoung1974
gjyoung1974 / get_gcr_vulns.py
Last active June 22, 2020 21:56
Get Google Container Registry image vulnerabilities
#!/bin/env python3
from datetime import date, datetime
import json
import logging
import subprocess
# Get all the Docker images in the repository
import uuid
from datetime import date
@gjyoung1974
gjyoung1974 / pyphone.py
Last active June 7, 2020 23:12
pyphone.py
#!/bin/env python
import pickle
import fnmatch
import os # For Raspi hardware + Find OS Path for images
import pygame
# why do we need *?
from pygame import *
from time import sleep
@gjyoung1974
gjyoung1974 / alerting_rules.yaml
Created May 20, 2020 02:11
Prometheus alert rules for sysdig falco events
## Prometheus server ConfigMap entries
##
serverFiles:
## Alerts configuration
## Ref: https://prometheus.io/docs/prometheus/latest/configuration/alerting_rules/
alerting_rules.yml:
groups:
- name: security
rules:
@gjyoung1974
gjyoung1974 / hello.c
Created May 19, 2020 19:42
hello world prints emojis
/*
============================================================================
Name : hello_world.c
Author : Gordon Young
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@gjyoung1974
gjyoung1974 / hello.c
Created May 19, 2020 19:42
hello world prints emojis
/*
============================================================================
Name : hello_world.c
Author : Gordon Young
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@gjyoung1974
gjyoung1974 / hello.c
Created May 19, 2020 19:42
hello world prints emojis
/*
============================================================================
Name : hello_world.c
Author : Gordon Young
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/
@gjyoung1974
gjyoung1974 / hello.c
Created May 19, 2020 19:42
hello world prints emojis
/*
============================================================================
Name : hello_world.c
Author : Gordon Young
Version :
Copyright : Your copyright notice
Description : Hello World in C, Ansi-style
============================================================================
*/