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.Runtime.InteropServices; | |
using System.Diagnostics; | |
using System.IO; | |
namespace InjectDonut | |
{ | |
public 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.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Security.Principal; | |
//Based on https://0x00-0x00.github.io/research/2018/10/17/Windows-API-and-Impersonation-Part1.html | |
namespace GetSystem | |
{ | |
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 | |
{ |
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
{ | |
"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
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
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
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 = { |
OlderNewer