Skip to content

Instantly share code, notes, and snippets.

@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 / install_evilginx3.sh
Last active May 20, 2024 00:55
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