Skip to content

Instantly share code, notes, and snippets.

View mbabinski's full-sized avatar

Micah Babinski mbabinski

View GitHub Profile
@mbabinski
mbabinski / WebDAVAnalysis.py
Created July 31, 2023 22:42
A simple Python script which I used to scan suspicious webdav servers, looking for recently-updated malicious files to research.
# WebDAVAnalysis.py
from webdav3.client import Client
domains = ['dhqidee98lja03f52atdmii.webdav.drivehq.com',
'dhqidcr68ljmwke8780y3bg.webdav.drivehq.com',
'kpm.webdav.drivehq.com',
'dhqidv8g20pwi1uxkdlojyb.webdav.drivehq.com',
'dhqid9pjapv63d8xvji8g4s.webdav.drivehq.com',
'dhqidaxs78nhjtsucbk0eg2.webdav.drivehq.com',
'dhqidfvyxawy0du9akl2ium.webdav.drivehq.com',
@mbabinski
mbabinski / InvestigationClosure.py
Created May 24, 2023 19:45
Demonstration tool showing how to bulk close investigations in the Rapid7 Insight IDR platform using InsightIDR4Py. Created for the Medium post "Button-Pusher to MasterBuilder: Automating SIEM Workflows."
import InsightIDR4Py as idr
import argparse
import sys
# collect user choices
parser = argparse.ArgumentParser(description="Closes investigations in bulk depending on user selections.",
epilog='Example usage: `python InvestigationClosure.py --assignee-email \
swilliams@acme.com --days-since-last-access 30 --source ALERT --disposition BENIGN`')
parser.add_argument("-p", "--priority",
dest="priority",