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/python | |
import requests | |
import csv | |
import os | |
import json | |
import pandas as pd | |
scope = "okta.users.read okta.groups.read okta.groups.manage okta.users.manage okta.logs.read okta.events.read okta.trustedOrigins.manage okta.trustedOrigins.read" | |
client_id = os.environ['OKTA_CLIENT_ID'] |
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/python | |
import requests | |
import os | |
import json | |
import pandas as pd | |
client_id = os.environ['WAVEFRONT_APIKEY'] | |
class Events(): |
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
### set deployment host & network path of file | |
$msbuild = “\\some-network-path\splunkforwarder-7.3.2-c60db69f8e32-x64-release.msi” | |
$deployment_host = “hostname-example.com:8089" | |
$arguments = @( | |
“/i $msbuild” | |
“DEPLOYMENT_SERVER=$deployment_host” | |
“WINEVENTLOG_SEC_ENABLE=1” | |
“AGREETOLICENSE=yes” |
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 __future__ import print_function | |
import pickle | |
import os.path | |
from googleapiclient.discovery import build | |
from google_auth_oauthlib.flow import InstalledAppFlow | |
from google.auth.transport.requests import Request | |
import requests | |
import sys | |
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 | |
import csv | |
import os | |
# in order to run this script you will need an environmental variable set in your bash_profile called OKTA_AUTH that equals an Okta API Key. | |
# Specify your Group ID (you can get this id by running the curl command below) | |
# curl -v -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: 'API KEY GOES HERE'" "https://{domain-here}.okta.com/api/v1/groups?limit=200" | |
# might want to install jq on your terminal to format the JSON |
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 | |
import csv | |
import os | |
# in order to run this script you will need an environmental variable set in your bash_profile called OKTA_AUTH that equals an Okta API Key. | |
# Specify your Group ID (you can get this id by running the curl command below) | |
# curl -v -X GET -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: 'API KEY GOES HERE'" "https://{domain-here}.okta.com/api/v1/groups?limit=200" | |
# might want to install jq on your terminal to format the JSON |
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
function disable-ssl-2.0 | |
{ | |
New-Item 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -Force | |
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Server' -name 'Enabled' -value '0' –PropertyType 'DWORD' | |
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client' -name 'Enabled' -value '0' –PropertyType 'DWORD' | |
New-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\SSL 2.0\Client' -name 'DisabledByDefault' -value '1' –PropertyType 'DWORD' | |
Write-Host 'Disabling SSLv2' | |
} | |
function disable-ssl-3.0 | |
{ |
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
''' | |
put the windows machine name in the hostname variable. | |
replace %APPPLICATION GOES HERE% with app you wish to uninstall. | |
uninstalls can cause a reboot be sure to only run this outside of a production state. | |
''' | |
$hostname = 'Computer names here', 'Computer names here' | |
$APP = Get-WmiObject -Class win32_product -ComputerName $hostname -Filter "Name like '%APPPLICATION GOES HERE%'" | |
echo $APP | |
$APP.Uninstall() |
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
$sysprep = 'C:\Windows\System32\Sysprep\Sysprep.exe' | |
$args = '/generalize','/oobe','/reboot','quiet' | |
& $sysprep $args |
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 python3 | |
import boto3 | |
def default_handler( event, context ): | |
print(boto3.client('sts').get_caller_identity()) | |
''' replace share-id with actual Id(s)''' | |
client = boto3.client('storagegateway') |
NewerOlder