This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Runtime.InteropServices; | |
using System.Linq; | |
using System.Net; | |
using System.Diagnostics; | |
namespace ConsoleApplication2 | |
{ |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Net.NetworkInformation; | |
using Newtonsoft.Json; | |
namespace ConsoleMacAddressTest | |
{ | |
class NetworkAddressMappings | |
{ | |
public string PhysicalAddress |
This file contains hidden or 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
using System; | |
using System.Management; | |
using Newtonsoft.Json; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
namespace ConsoleDetectDriveMount | |
{ | |
class DriveDetails | |
{ |
This file contains hidden or 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
function Get-Doppelgangers | |
{ | |
<# | |
.SYNOPSIS | |
Detects use of NTFS transactions for stealth/evasion, aka 'Process Doppelganging' | |
Author: Joe Desimone (@dez_) | |
License: BSD 3-Clause | |
This file contains hidden or 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
$files = @("cscc.dat", "infpub.dat") | |
$files | foreach { | |
write-host $env:windir\$_ | |
echo "" > $env:windir\$_ | |
$acl = Get-Acl $env:windir\$_ | |
$acl.SetAccessRuleProtection($true,$true) # removes inheritence | |
$acl | Set-Acl | |
$acl = Get-Acl $env:windir\$_ | |
$acl.Access | %{$acl.RemoveAccessRule($_)} # removes rules |
This file contains hidden or 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
using System; | |
using System.IO; | |
using System.Diagnostics; | |
using System.Reflection; | |
using System.Configuration.Install; | |
using System.Runtime.InteropServices; | |
//Add For PowerShell Invocation | |
using System.Collections.ObjectModel; | |
using System.Management.Automation; |
This file contains hidden or 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 SimpleHTTPServer | |
import SocketServer | |
PORT = 8000 | |
class Handler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
pass | |
Handler.extensions_map['.shtml'] = 'text/html' | |
Handler.extensions_map['.application'] = 'application/x-ms-application' |
This file contains hidden or 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
<?XML version="1.0"?> | |
<scriptlet> | |
<registration | |
description="Win32COMDebug" | |
progid="Win32COMDebug" | |
version="1.00" | |
classid="{AAAA1111-0000-0000-0000-0000FEEDACDC}" | |
> | |
<script language="JScript"> | |
<![CDATA[ |
This file contains hidden or 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/env python | |
import sqlite3, argparse, sys, argparse, logging, json, string | |
import os, re, time, signal, copy, base64, pickle | |
from flask import Flask, request, jsonify, make_response, abort, url_for | |
from time import localtime, strftime, sleep | |
from OpenSSL import SSL | |
from Crypto.Random import random | |
import ssl | |
# Empire imports |
This file contains hidden or 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 os | |
from lib.common import empire | |
# FakeMenu class to pass obj to function later | |
class FakeMenu(object): | |
conn = None | |
installPath = os.getcwd() | |
# main = empire.MainMenu(args=args) is a blocking call | |
# we need a FakeMenu to load modules. |