Skip to content

Instantly share code, notes, and snippets.

@sploutchy
sploutchy / Program.cs
Created June 28, 2024 06:40
KrbRelay Remote Capable
using KrbRelay.Clients;
using KrbRelay.Com;
using Microsoft.Win32;
using NetFwTypeLib;
using SMBLibrary;
using SMBLibrary.Client;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
@sploutchy
sploutchy / dcomintegritycheck.py
Last active April 2, 2024 05:03
Check if DCOM Packet Integrity Authentication Level is required on a remote server
from __future__ import division
from __future__ import print_function
import argparse
import sys
import logging
from impacket import version
from impacket.examples import logger
from impacket.examples.utils import parse_target
from impacket.dcerpc.v5 import transport, epm
@sploutchy
sploutchy / rpcrelayclientserver.patch
Created September 9, 2020 09:56
RPC Relay Client and Server Patch
From 53256e4b29331df20a5977b54c1741b2adc30394 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Wed, 9 Sep 2020 11:54:00 +0200
Subject: [PATCH] RPC Relay client and server
---
examples/ntlmrelayx.py | 12 +-
impacket/dcerpc/v5/dcomrt.py | 30 +-
impacket/dcerpc/v5/rpcrt.py | 624 ++++++++++++++++--
.../examples/ntlmrelayx/attacks/rpcattack.py | 95 +++