A short survey of log collection options and why you picked the wrong one. 😜
I'm Steve Coffman and I work at Ithaka. We do JStor (academic journals) and other stuff. How big is it?
| Number | what it means |
|---|---|
| 101,332,633 | unique visitors in 2017 |
| --[[ | |
| This allows you to bind any function-number key (F1-F24) to a "G" button on your mouse. | |
| To add a binding, insert a new element in the bindings table below and save this script. | |
| Script by tgp1994 (https://github.com/tgp1994) | |
| ]] | |
| local bindings = { | |
| G7 = "F13", | |
| G8 = "F14" | |
| } |
This gist gives instructions to setup a Validating Admission Webhook or Mutating Admission Webhook in Kubernetes.
Heavy credits to
This means that users with an account that Candid recognizes
can access the controller as long as they have appropriate
permissions granted. Note that Candid usernames are given
an @external suffix to distinguish them from controller-local usernames.
Note that identity-url can only be set at bootstrap time and cannot be changed later.
The allow-model-access=true setting allows users to access models
| #!/usr/bin/env python2 | |
| # NOTE: this script was created for educational purposes to assist learning about kerberos tickets. | |
| # Likely to have a few bugs that cause it to fail to decrypt some TGT or Service tickets. | |
| # | |
| # Recommended Instructions: | |
| # Obtain valid kerberos tickets using Rubeus or mimikatz "sekurlsa::tickets /export" | |
| # Optionally convert tickets to ccache format using kekeo "misc::convert ccache <ticketName.kirbi>" | |
| # Obtain appropriate aes256 key using dcsync (krbtgt for TGT or usually target computer account for Service Ticket) | |
| # Run this script to decrypt: | |
| # ./decryptKerbTicket.py -k 5c7ee0b8f0ffeedbeefdeadbeeff1eefc7d313620feedbeefdeadbeefafd601e -t ./Administrator@TESTLAB.LOCAL_krbtgt~TESTLAB.LOCAL@TESTLAB.LOCAL.ccaches |
| #!/usr/bin/env python | |
| from http import HTTPStatus | |
| from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer | |
| import base64 | |
| import json | |
| import logging | |
| import os | |
| import os.path | |
| import ssl |
| spec: | |
| fileAssets: | |
| - name: auditPolicyFile | |
| path: /srv/kubernetes/audit.yaml | |
| roles: | |
| - Master | |
| content: | | |
| apiVersion: audit.k8s.io/v1beta1 | |
| kind: Policy | |
| rules: |
| SERVER="my-server" | |
| USER="ADMIN" | |
| PASS="ADMIN" | |
| # ON | |
| curl -si -u $USER:$PASS -k -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"Action": "Reset", "ResetType": "On"}' https://$SERVER/redfish/v1/Systems/1/Actions/ComputerSystem.Reset | |
| #OFF | |
| curl -si -u $USER:$PASS -k -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"Action": "Reset", "ResetType": "ForceOff"}' https://$SERVER/redfish/v1/Systems/1/Actions/ComputerSystem.Reset |
| import logging | |
| import psycopg2 | |
| from psycopg2.extras import RealDictCursor | |
| from psycopg2.extensions import TRANSACTION_STATUS_UNKNOWN, TRANSACTION_STATUS_IDLE | |
| from flask import g | |
| import threading | |
| import tenacity | |
| import uuid | |
| import pwd | |
| import os |
| # Check these threads before proceeding: | |
| # https://github.com/microsoft/WSL/discussions/5857 | |
| # https://github.com/microsoft/WSL/issues/5821 | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| $CmdLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CmdLine | |
| Exit | |
| } | |
| # Restart the Host Network Service | |
| Restart-Service -Force -Name hns |