GithubHelp home page GithubHelp logo

krbtgt-golden-ticket's Introduction

KRBTGT & Thycotic's Secret Server

This script leverges the script provided by Microsoft and can be used for password changing. This original script can be found here.

How to use in Secret Server

The script leverages the powershell cmdlet "Invoke-Command". In order for the script to work, the environment and user that's running the script must be able to remote into the target machine.

For help with environment setup, go here.

  1. Create Script in Secret Server (Powershell)
    1. Go to Admin -> Scripts
    2. Under the "Powershell" tab, click "Create New"
    3. Copy the Script "KRBTGT Secret Server Script.ps1" and click "Ok"
  2. Create Password Type that uses the Script that was created.
    1. Go to Admin -> Remote Password Changing
    2. Click "Configure Password Changing"
    3. Click "New"
    4. Select "Powershell Script" as the Base Password Changer, enter name and save. ("Example: KRBTGT Password Change)
    5. Under "Password Change Commands" select the script created and enter the following as args: -InvokeMachine $INVOKE MACHINE -targetAdforest $TARGET AD FOREST -targetaddomain $TARGET AD DOMAIN -accountscope $Account Scope -dcaccountlist $AD Domain Controller Account(s) -username $[1]$USERNAME -password $[1]$PASSWORD -runoption $RUN OPTION -logpath $LOG PATH
    6. Save
  3. Create a Secret Template that using the Password type previously created. (To Import the Secret Template click here)
    1. Go to Admin -> Secret Templates

    2. Click "Create New"

    3. Create the following Secret Fields

      • "Invoke Machine" -> Machine to Invoke Into
      • "Target AD Forest" -> Target AD Forest - (Can be empty)
      • "Target AD Domain" -> Target AD Domain - (Can be empty)
      • "Account Scope" -> Script Scope to run 1 - 4
        • 1 - Scope of KrbTgt in use by all RWDCs in the AD Domain (DEFAULT)***
        • 2 - Scope of KrbTgt in use by specific RODC - Single RODC in the AD Domain
        • 3 - Scope of KrbTgt in use by specific RODC - Multiple RODCs in the AD Domain
        • 4 - Scope of KrbTgt in use by specific RODC - All RODCs in the AD Domain
      • "AD Domain Controller Account(s)" -> AD Domain Controller Account to Target
      • "Run Option" -> Run Option
        • 1 - Informational Mode (No Changes At All)
        • 2 - Simulation Mode (Temporary Canary Object Created, No Password Reset!)
        • 3 - Simulation Mode - Use KrbTgt TEST/BOGUS Accounts (Password Will Be Reset Once!)
        • 4 - Real Reset Mode - Use KrbTgt PROD/REAL Accounts - (Password Will Be Reset Once!) (DEFAULT)***
        • 8 - Create TEST KrbTgt Accounts
        • 9 - Cleanup TEST KrbTgt Accounts
        • 0 - Exit Script
      • "Log Path" -> Desired Log Path (will log to "Invoke Machine")
      • "Fake Password" -> Fake Password (Secret Server Workaroud)
    4. Click "Configure Password Changing

    5. Click "Edit"

    6. Check "Enable Password Changing

    7. Select the Password Type from above for "Password Type To Use"

    8. Fill in other password change setting desired.

    9. Save

krbtgt-golden-ticket's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.