This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
set targetDirectory=C:\Windows\System32\drivers\CrowdStrike | |
set filePattern=C-00000291*.sys | |
set timestamp=%date% %time% | |
echo [%timestamp%] Script started |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import argparse | |
import csv | |
def load_json(file_path): | |
with open(file_path, 'r') as file: | |
data = json.load(file) | |
return data | |
def search_permissions(data, additional_exclusions, active_only): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
||*.xdr.*.paloaltonetworks.com^ | |
||*.traps.paloaltonetworks.com^ | |
||distributions.traps.paloaltonetworks.com^ | |
||*.paloaltonetworks.com^ | |
||panw-xdr-installers-prod-us.storage.googleapis.com^ | |
||panw-xdr-payloads-prod-us.storage.googleapis.com^ | |
||global-content-profiles-policy.storage.googleapis.com^ | |
||panw-xdr-evr-prod-*.storage.googleapis.com^ | |
||panw-xdr-installers-prod-fr.storage.googleapis.com^ | |
||panw-xdr-payloads-prod-fr.storage.googleapis.com^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import argparse | |
import sys | |
def read_hosts_file(): | |
with open("/etc/hosts", "r") as file: | |
lines = file.readlines() | |
return [line for line in lines if line.strip() and not line.startswith('#')] | |
def write_hosts_file(lines): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
import requests | |
import argparse | |
import subprocess | |
from colorama import Fore, Style, init | |
init(autoreset=True) | |
def fetch_url(url, headers=None, max_redirects=3): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
show_help() { | |
echo "Usage: adminer <domain>" | |
echo "Run the AD-miner tool with a specified domain and secure password input." | |
echo | |
echo "Arguments:" | |
echo " <domain> The domain or cache prefix to use with the AD-miner tool." | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives import hashes, serialization | |
import base64 | |
def decrypt_creds(key, cipher_data): | |
flows = cipher_data["$"] | |
init_vector = bytes.fromhex(flows[:32]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\n | |
\r | |
\t | |
\0 | |
! | |
@ | |
# | |
$ | |
% | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import time | |
from collections import Counter | |
import requests | |
parser = argparse.ArgumentParser(description='Test (API) rate limiting by sending POST requests.') | |
parser.add_argument('url', type=str, help='The URL to send the POST requests to.') | |
parser.add_argument('data', type=str, help='Data to send as the body of the POST request. Can be a JSON array or form data.') | |
parser.add_argument('--content-type', type=str, choices=['json', 'form'], default='json', help='The content type of the data being sent (json or form). Default is json.') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import base64 | |
from binascii import unhexlify, hexlify | |
def decode_input(input_string): | |
decoded_data = base64.b64decode(input_string) | |
kind = hexlify(decoded_data[0:1]).decode() | |
if kind == '01': | |
iter_bytes = decoded_data[1:5] |
NewerOlder