This file contains hidden or 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
// TcbElevation - Authors: @splinter_code and @decoder_it | |
#define SECURITY_WIN32 | |
#include <windows.h> | |
#include <sspi.h> | |
#include <stdio.h> | |
#pragma comment(lib, "Secur32.lib") | |
void EnableTcbPrivilege(BOOL enforceCheck); |
This file contains hidden or 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
from hashlib import md5, sha1 | |
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes | |
from cryptography.hazmat.backends import default_backend | |
from base64 import b64encode, b64decode | |
import sys, time | |
import requests | |
DEFAULT_MASTERKEY=b'p1a2l3o4a5l6t7o8' | |
class PanCrypt(): |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
This script lists all Logic app api connections v1 and shows which apis belong | |
to which Logic app.It also lists the orfan apis | |
.DESCRIPTION | |
This script lists all Logic app api connections v1 and shows which apis belong | |
to which Logic app.It also lists the orfan apis | |
.NOTES | |
This script was created by the Microsoft Engineer Yanbo Deng | |
.LINK |
This file contains hidden or 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
#Run this script as admin, auto-elevate if not ran as admin | |
Write-Host "[INFO] Elevating script to admin..." | |
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit } | |
Pause | |
Write-Host "[INFO] Start time:" -ForegroundColor Yellow | |
$StartTime = Get-Date | |
Write-Host $StartTime | |
This file contains hidden or 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
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory)] | |
[string] | |
$ComputerName, | |
# Parameter help description | |
[Parameter()] | |
[string] | |
$OUPath = 'OU=Windows,OU=Servers,DC=mydomain,DC=local', |
This file contains hidden or 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
### What is this script ? ### | |
# Given a folder that contains some zip files, this script lists the files | |
# within the zipped files that contain a specific string. | |
# | |
# Example behavior (if you run the script with the example values) : | |
# This script will search for files that have the following characteristics : | |
# - ".csv" files contained within a zip, in a the folder | |
# "C:\Users\lulu\Downloads\tmp\dev" or its subfolders | |
# - The file must contain the string "foo" | |
# - The script will return 2 files or less |
This file contains hidden or 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
function Show-Notification { | |
[cmdletbinding()] | |
Param ( | |
[string] | |
$ToastTitle, | |
[string] | |
[parameter(ValueFromPipeline)] | |
$ToastText |
This file contains hidden or 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
If(-Not(Get-WmiObject WmiMonitorID -Namespace root\wmi -ErrorAction SilentlyContinue)) { | |
Write-Host "No display detected - exiting ..." | |
exit 1 | |
} | |
Function ConvertTo-Char | |
( | |
$Array | |
) | |
{ |
This file contains hidden or 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
param ( | |
$StartTime = '09:00', | |
$EndTime = '18:00', | |
$DaysOff = @('Saturday', 'Sunday') | |
) | |
$StartTimeDate = Get-Date $StartTime | |
$EndTimeDate = Get-Date $EndTime | |
$Date = Get-Date |