Skip to content

Instantly share code, notes, and snippets.

View thau0x01's full-sized avatar

thau0x01 thau0x01

View GitHub Profile
@thau0x01
thau0x01 / extensions.py
Created March 23, 2019 04:29
Lista de extensções de arquivos alvo de ransomwares
extensions = [
# 'exe,', 'dll', 'so', 'rpm', 'deb', 'vmlinuz', 'img' # Arquivos do Sitema
'jpg', 'jpeg', 'bmp', 'gif', 'png', 'svg', 'psd', 'raw', # imagens
'mp3', 'mp4', 'm4a', 'aac', 'ogg', 'flac', 'wav', 'wma', 'aiff', 'ape', # Audios
'avi', 'flv', 'm4v', 'mkv', 'mov', 'mpg', 'mpeg', 'wmv', 'swf', '3gp', # Vídeos
'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', # Microsoft office
# OpenOffice, Adobe, Latex, Markdown, etc
'odt', 'odp', 'ods', 'txt', 'rtf', 'tex', 'pdf', 'epub', 'md',
'yml', 'yaml', 'json', 'xml', 'csv', # dados estruturados e config
'db', 'sql', 'dbf', 'mdb', 'iso', # bancos de dados e imagens de disco
@thau0x01
thau0x01 / get-contrib-emails.md
Last active February 21, 2022 18:44
get repository contributors emails

Get all git repository contributors emails

Powershell

Regular Expression that matches e-mail addresses

$re = "(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|`"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*`")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])"

List all contributors of a Git Repository

@thau0x01
thau0x01 / aws-snippets.md
Last active July 13, 2022 19:52
AWS CLI snippets

AWS CLI snippets

code snippets to help performing aws cli actions

Configure envvars

export REGION=us-east-1

Query EC2 Instances Public IP Addresses

@thau0x01
thau0x01 / bloodhoundce_import.py
Created October 27, 2023 23:13 — forked from aconite33/bloodhoundce_import.py
Import large files into BloodHound CE Edition
import requests
import json
import time
import argparse
import getpass
import os
import sys
def main():