Skip to content

Instantly share code, notes, and snippets.

@dunderhay
dunderhay / install_evilginx3.sh
Last active November 15, 2024 13:27
bash script to install evilginx3 on a ubuntu linux host
#!/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
@dunderhay
dunderhay / gist:e8a7faf552de119a034391f3baab563e
Created May 9, 2024 01:02
Query roadrecon db for specific users
import re
from roadtools.roadlib.metadef.database import User
import roadtools.roadlib.metadef.database as database
session = database.get_session(database.init())
pattern = r".*@example\.com$"
for user in session.query(User):
if user.mail and re.match(pattern, user.mail):
print(user.userPrincipalName)
@dunderhay
dunderhay / ConvertGallagherCredentials.py
Created June 10, 2024 09:26
Python script to encode / decode Gallagher card credentials
import binascii
import argparse
class GallagherCredentials:
def __init__(self, region_code, facility_code, card_number, issue_level):
self.region_code = region_code
self.facility_code = facility_code
self.card_number = card_number
self.issue_level = issue_level
@dunderhay
dunderhay / ntfy-havoc.py
Created July 3, 2024 23:30
python script to monitor havoc c2 log file and send notification of new agent connections via ntfy
import os
import time
import re
import requests
# Tested / works on Havoc version 0.7 (Bites The Dust)
# Path to havoc log file
log_file_path = 'teamserver.log'