Skip to content

Instantly share code, notes, and snippets.

View jakobfriedl's full-sized avatar
🔱

Jakob Friedl jakobfriedl

🔱
View GitHub Profile
@jakobfriedl
jakobfriedl / pcap_analyzer.py
Last active May 19, 2024 14:20
Analyze .pcap files.
from scapy.all import rdpcap, IP, TCP, DNS, DNSQR
from collections import defaultdict
import argparse
def banner():
print("""
╔═╗┌─┐┌─┐┌─┐ ╔═╗┌┐┌┌─┐┬ ┬ ┬┌─┐┌─┐┬─┐
╠═╝│ ├─┤├─┘ ╠═╣│││├─┤│ └┬┘┌─┘├┤ ├┬┘
╩ └─┘┴ ┴┴ ╩ ╩┘└┘┴ ┴┴─┘┴ └─┘└─┘┴└─
""")
@jakobfriedl
jakobfriedl / generator.py
Created March 12, 2024 15:43
Generate PowerShell reverse shell payloads
#!/usr/bin/env python3
# Author: Jakob Friedl
# Description: Generate powershell reverse shell payloads
import sys
import base64
import argparse
parser = argparse.ArgumentParser(description="Powershell reverse shell generator")
parser.add_argument('ip')
@jakobfriedl
jakobfriedl / mitre_parser.py
Last active October 30, 2023 15:19
Parses MITRE ATT&CK enterprise tactics, techniques and sub-techniques to python list format
#!/usr/bin/env python
# -*- Coding: UTF-8 -*-
# Author: Jakob Friedl
# Created on: Mon, 30. Oct. 2023
# Description: Parses MITRE ATT&CK enterprise tactics, techniques and sub-techniques
from bs4 import BeautifulSoup
import requests
import re
import urllib3
@jakobfriedl
jakobfriedl / ADOE.py
Created October 24, 2023 14:11
Active Directory Object Enumerator for Havoc
#!/usr/bin/env python
# -*- Coding: UTF-8 -*-
# Author: Jakob Friedl
# Created on: Mon, 23. Oct 2023
# Description: Active Directory object enumeration for Havoc
import havocui
import havoc
import re
@jakobfriedl
jakobfriedl / stager.nim
Created October 24, 2023 10:43
Shellcode stager that loads remote shellcode directly into memory of specified process.
import winim
import os
import httpclient, streams
import sequtils, strutils, strformat
# Status indicators
template success(s: varargs[untyped]): untyped =
when DEBUG:
echo "[+] ", s
template fail(s: varargs[untyped]): untyped =
@jakobfriedl
jakobfriedl / Shhhavoc.py
Last active February 27, 2024 12:15
Shhhloader integration for Havoc
#!/usr/bin/env python
# -*- Coding: UTF-8 -*-
# Author: Jakob Friedl
# Created on: Mon, 16. Oct 2023
# Description: Shhhloader support for Havoc C2 framework
# Usage: Load this script into Havoc: Scripts -> Scripts Manager -> Load to create Shhhloader Tab
import os, sys, subprocess
import threading
import havoc