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
blueprint: | |
name: "Tado: Turn off heating when window is open" | |
description: "Disables heating in a specific room when the window is open." | |
domain: automation | |
input: | |
# the window which opens | |
window_sensor: | |
name: "Window Sensor" | |
selector: | |
entity: |
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
<# | |
.SYNOPSIS | |
Register FIDO2 on behalf of another user | |
.DESCRIPTION | |
This script registers a FIDO2 key on behalf of another user. The script requires the admin to have a FIDO2 key and the user's UPN. | |
The script will connect to Microsoft Graph and register the FIDO2 key on behalf of the user. | |
The script will also register the FIDO2 key in Entra ID. | |
#> | |
param ( |
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
{ | |
"definition": { | |
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#", | |
"actions": { | |
"Condition": { | |
"actions": { | |
"Terminate": { | |
"inputs": { | |
"runStatus": "Cancelled" | |
}, |
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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"dataCollectionRules_OnePasswordLogs_name": { | |
"defaultValue": "OnePasswordLogs", | |
"type": "String" | |
}, | |
"dataCollectionEndpoints_1password_externalid": { | |
"defaultValue": "/subscriptions/SUBSCRIPTION-ID-HERE/resourceGroups/myresgroup/providers/Microsoft.OperationalInsights/dataCollectionEndpoints/1password", |
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
author: '@hazcod' | |
min_ver: '3.2.0' | |
proxy_hosts: | |
- phish_sub: 'login' | |
orig_sub: 'login' | |
domain: 'microsoftonline.com' | |
session: true | |
is_landing: true | |
- phish_sub: 'device.login' |
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
#!/usr/bin/env bash | |
join_by() | |
{ | |
local IFS="$1" | |
shift | |
echo "$*" | |
} | |
data=$(curl -s https://www.intigriti.com/programs) |
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
id: CVE-2021-44228 | |
info: | |
name: Log4J RCE | |
author: iNvist / hazcod | |
severity: critical | |
description: CVE-2021-44228 | |
requests: | |
- raw: |
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
#!/usr/bin/env bash | |
CLIENT_ID="_FALCON_API_CLIENT_ID_" | |
CLIENT_SECRET="FALCON_API_CLIENT_SECRET_" | |
CID="_FALCON_CID_" | |
TOKEN="_FALCON_INSTALL_TOKEN" | |
API_HOST="api.eu-1.crowdstrike.com" | |
function main() { |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/go-piv/piv-go/piv" | |
conf "github.com/hazcod/sop/config" | |
"github.com/pkg/errors" | |
"github.com/sirupsen/logrus" | |
"os" |
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
echo > CVE-2021-36934 fixer | |
echo See https://msrc.microsoft.com/update-guide/vulnerability/CVE-2021-36934 | |
echo Deleting current shadow copies... | |
vssadmin delete shadows /all /quiet | |
echo Fixing privilege issue... | |
icacls %windir%\system32\config\*.* /inheritance:e | |
echo Creating brand new shadow copy... |
NewerOlder