This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
tenant_id = '' | |
client_id = '' | |
client_secret = '' | |
scope = 'https://graph.microsoft.com/.default' | |
token_url = f'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' | |
token_data = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
tenant_id = '' | |
client_id = '' | |
client_secret = '' | |
scope = 'https://graph.microsoft.com/.default' | |
token_url = f'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' | |
token_data = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
tenant_id = '' | |
client_id = '' | |
client_secret = '' | |
scope = 'https://graph.microsoft.com/.default' | |
token_url = f'https://login.microsoftonline.com/{tenant_id}/oauth2/v2.0/token' | |
token_data = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from xml.etree import ElementTree as ET | |
# https://github.com/3gstudent/Homework-of-Python/blob/master/ewsManage.py | |
# Authentication details | |
client_id = '' | |
client_secret = '' | |
tenant_id = '' | |
mailbox = '[email protected]' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"username": "psharp", | |
"domain": "domain", | |
"dc": "192.168.1.2", | |
"sleep": 1, | |
"playbooks": [ | |
{ | |
"name": "Adversary Simulation Playbook 1", | |
"host": "win10-1", | |
"scoutfpath": "C:\\Installer.exe", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using System.Reflection; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace GetAndRunBlockDlls | |
{ | |
class Program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Reflection; | |
using System.Text; | |
namespace GetAndRun | |
{ |
NewerOlder