Skip to content

Instantly share code, notes, and snippets.

View laurobmb's full-sized avatar
😌

Lauro Gomes laurobmb

😌
View GitHub Profile
@mda590
mda590 / stress_test.py
Created June 8, 2018 14:07
Python script useful for stress testing systems
"""
Produces load on all available CPU cores.
Requires system environment var STRESS_MINS to be set.
"""
from multiprocessing import Pool
from multiprocessing import cpu_count
import time
import os
@landonb
landonb / Vagrantfile
Last active November 13, 2024 04:51
Windows Vagrantfile example
Vagrant.configure("2") do |config|
# Other box urls: https://www.bram.us/2014/09/24/modern-ie-vagrant-boxes
config.vm.box = "modern.ie/win7-ie11"
config.vm.box_url = 'http://aka.ms/vagrant-win7-ie11'
# big timeout since windows boot is very slow
config.vm.boot_timeout = 500
# Port forward WinRM (Windows Remote Management) and RDP
Queries do AD no Graylog (NXLog)
================================
Mapear:
Usuário – Criação, Exclusão, Modificação, Bloqueio e Desbloqueio.
Computador - Criação, Exclusão, Modificação, Bloqueio e Desbloqueio.
Grupos - Criação, Exclusão, Modificação, Alteração de membros.
Logon – Tentativas falhas de Logon, Logons com sucesso.
Categorias Filtradas:
@gerhard
gerhard / botnet-apache-proxy-blocker.sh
Created May 28, 2012 23:17
How to stop a botnet attack exploiting Apache ProxyRequests
#!/usr/bin/env sh
tail -f /var/log/apache2/gosquared*access.log | awk '
BEGIN { blocked_ips="" }
/ http/ {
if (! index(blocked_ips, $1)) {
// append this ip to our internal blocked_ips list
blocked_ips = blocked_ips " " $1
"date" | getline current_time