Skip to content

Instantly share code, notes, and snippets.

View mvelazc0's full-sized avatar

mvelazco mvelazc0

View GitHub Profile
general:
cloud_provider: aws
attack_range_password: AW^@#^%&^#@##
use_prebuilt_images_with_packer: '0'
key_name: yourkey-001423
ip_whitelist: 8.8.8.8 #your public ip address
attack_range_name: test-range
aws:
private_key_path: /Users/your/key-001423.key
region: us-west-2
@mvelazc0
mvelazc0 / modify_folder_permissions_ews.py
Created April 15, 2024 16:23
Modify folder permissions on an M365 mailbox using the EWS API
import requests
from xml.etree import ElementTree as ET
def create_find_folder_soap_request(mailbox, folder_name):
folder_name = str.lower(folder_name)
return f'''<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"