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-module ActiveDirectory | |
# Configuration | |
$tenantId = '' ### Paste your tenant ID here | |
$appId = '' ### Paste your Application ID here | |
$appSecret = '' ### Paste your Application secret here | |
$skiplist = "" # Specifcy items as a list: "SERVER1","SERVER2","SERVER3" | |
$mailserver = "mailserver.host.com" # Mailserver (SMTP) | |
$from_address = "from@host.com" # From address | |
$to_address = "to@host.com" # To address |
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-module ActiveDirectory | |
# Configuration | |
$tenantId = '' ### Paste your tenant ID here | |
$appId = '' ### Paste your Application ID here | |
$appSecret = '' ### Paste your Application secret here | |
# Start of script | |
$resourceAppIdUri = 'https://api.securitycenter.microsoft.com' | |
$oAuthUri = "https://login.microsoftonline.com/$TenantId/oauth2/token" |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
from twisted.internet.protocol import ClientFactory | |
from twisted.protocols.basic import LineReceiver | |
from twisted.internet import reactor | |
from struct import pack, unpack | |
INPUTS = {'00' : 'VCR/DVR', | |
'01' : 'CBL/SAT', | |
'02' : 'GAME', | |
'03' : 'AUX', | |
'05' : 'PC', |