Skip to content

Instantly share code, notes, and snippets.

View hang10z's full-sized avatar

Kevin Taylor hang10z

View GitHub Profile
@hang10z
hang10z / Export-UntrustedGuardian.ps1
Created December 13, 2023 15:38 — forked from valorad/Export-UntrustedGuardian.ps1
Hyper-V TPM Migration (To solve error: "The key protector could not be unwrapped" that causes VM startup failure)
$GuardianName = 'UntrustedGuardian'
$CertificatePassword = Read-Host -Prompt 'Please enter a password to secure the certificate files' -AsSecureString
$guardian = Get-HgsGuardian -Name $GuardianName
if (-not $guardian)
{
throw "Guardian '$GuardianName' could not be found on the local system."
}
@hang10z
hang10z / kerberos_attacks_cheatsheet.md
Created May 16, 2022 03:00 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module:

@hang10z
hang10z / Ball.cs
Created July 26, 2015 05:05
Simple Rolling Ball Control Script, taken from Unity Standard Assets
using System;
using UnityEngine;
namespace UnityStandardAssets.Vehicles.Ball
{
public class Ball : MonoBehaviour
{
[SerializeField] private float m_MovePower = 5; // The force added to the ball to move it.
[SerializeField] private bool m_UseTorque = true; // Whether or not to use torque to move the ball.
[SerializeField] private float m_MaxAngularVelocity = 25; // The maximum velocity the ball can rotate at.
@hang10z
hang10z / ExceptionLogger.cs
Created July 26, 2015 04:27
Example Error Exception Logger for Unity 3D
//------------------------------------------------
using UnityEngine;
using System.Collections;
using System.IO;
//------------------------------------------------
public class ExceptionLogger : MonoBehaviour
{
//Internal reference to stream writer object
private System.IO.StreamWriter SW;
@hang10z
hang10z / ActionMaster21.cs
Created July 24, 2015 12:19
This is logic for scoring for a bowling game, written in C# for Unity 3D
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public static class ActionMaster21 {
public enum Action {Tidy, Reset, EndTurn, EndGame, Undefined};
public static Action NextAction (List<int> rolls) {
Action nextAction = Action.Undefined;
using UnityEngine;
using System.Collections;
using UnityEngine.UI;
public class OptionsController : MonoBehaviour {
public Slider volumeSlider;
public Slider difficultySlider; //Create variable to attach slider
public LevelManager levelManager; //object for levelmanager
using UnityEngine;
using System.Collections;
public class SpriteAnimator : MonoBehaviour
{
public Sprite[] SpriteList = null;
public float Interval = 1.0f;
//Reference to sprite component
private var timer = 0.0;
var bobbingSpeed = 0.18;
var bobbingAmount = 0.2;
var midpoint = 2.0;
function Update () {
waveslice = 0.0;
horizontal = Input.GetAxis("Horizontal");
vertical = Input.GetAxis("Vertical");
if (Mathf.Abs(horizontal) == 0 && Mathf.Abs(vertical) == 0) {
using UnityEngine;
using UnityEditor;
using System;
//Sets FBX Mesh Scale Factor to 1
public class FBX_Import : AssetPostprocessor
{
public const float importScale= 1.0f;
void OnPreprocessModel()
using UnityEngine;
using System.Collections;
public class Billboard : MonoBehaviour
{
private Transform ThisTransform = null;
// Use this for initialization
void Start ()
{