Skip to content

Instantly share code, notes, and snippets.

View rafaotetra's full-sized avatar

Rafael Silva rafaotetra

View GitHub Profile
@gotunandan
gotunandan / lvmount.sh
Created September 18, 2019 11:31 — forked from gilfreund/lvmount.sh
Automatically mount EC2 free ephemeral disks into an LVM group
#!/bin/bash
# based on code byLeon Mergen
# see: https://leonmergen.com/automatically-mounting-instance-store-on-an-aws-ami-150da3ffd041
LVDISPLAY="/sbin/lvdisplay"
PVCREATE="/sbin/pvcreate"
VGCREATE="/sbin/vgcreate"
LVCREATE="/sbin/lvcreate"
MKFS="/sbin/mkfs -t xfs"
MOUNTPOINT="/mnt/data"
provider "aws" {
version = "~> 2.0"
region = "eu-west-2"
}
# Providing a reference to our default VPC
resource "aws_default_vpc" "default_vpc" {
}
# Providing a reference to our default subnets
@Neo23x0
Neo23x0 / log4j_rce_detection.md
Last active August 15, 2025 09:49
Log4j RCE CVE-2021-44228 Exploitation Detection

log4j RCE Exploitation Detection

You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228

Grep / Zgrep

This command searches for exploitation attempts in uncompressed files in folder /var/log and all sub folders

sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
@zidenis
zidenis / OCI_Architect_Associate-Reading_List.md
Created February 8, 2022 11:15
Reading list to prepare for OCI Architect Associate Certificate Exam