Skip to content

Instantly share code, notes, and snippets.

View faisalfs10x's full-sized avatar
🎯
Focusing

Faisal Fs ⚔️ faisalfs10x

🎯
Focusing
View GitHub Profile
@faisalfs10x
faisalfs10x / favicon-hash.py
Last active January 3, 2024 04:22
Process a favicon.ico and calculate its hash based on https://twitter.com/brsn76945860/status/1171233054951501824
#!/usr/bin/python3
import mmh3
import requests
import argparse
import codecs
requests.packages.urllib3.disable_warnings()
parser = argparse.ArgumentParser(description='Process a favicon.ico and calculate its hash')
parser.add_argument('url', help='The URL path to favicon.ico')
@faisalfs10x
faisalfs10x / M365-msgraphenum.py
Last active January 9, 2024 14:03
Retrieve user or group information from Microsoft 365 via Microsoft Graph API
#!/usr/bin/python3
"""
# GitHub: https://github.com/faisalfs10x
# Usage
M365-msgraphenum.py -auth <token_file> -mode user
M365-msgraphenum.py -auth <token_file> -mode roles
M365-msgraphenum.py -auth <token_file> -mode group
M365-msgraphenum.py -auth <token_file> -mode groupmember -gid <group_id>