Giter Site home page Giter Site logo

ad_generator's Introduction

AD Lab generator

-- This scripts create a random set of users and groups, from de defined lists inside of .\code\data\

Scripts

-- We have 3 scripts:

  1. .\code\generate_schema.ps1
    • Creates a random schema of users and groups.
    • You can manually set the domain name inside the script by changing the variable
       # Set up domain name for testing...
       $domain = "xyz.local"
    • You can pass a name for the json file that is generated in the command line. by default it's set to ad_schema.json
       .\generate_schema.ps1 -OutJSONFile {your_file}
  2. .\code\gen_ad.ps1
    • As imagined, this script populates the DC using the file created using generate_schema.ps1 script.
    • You can pass a name for the json file to be used in the command line. by default it's set to ad_schema.json
       .\gen_ad.ps1 -JSONFile {your_file}
  3. .\code\del_ad.ps1
    • As imagined, this script removes from the DC the users and groups using the file same file used to create it in the first place.
    • You can pass a name for the json file to be used in the command line. by default it's set to ad_schema.json
       .\del_ad.ps1 -JSONFile {your_file}

References

-- I created this script step by step. I tried to recreate what was shown by John Hammond (@johnhammond010) in his video series about AD. It follows the same structure as he did in his videos, but y changed some things my self to practice my powershell-fu...

JH repo -> https://github.com/JohnHammond/active_directory

Other references to create this scripts is VulnAD script -> https://github.com/safebuffer/vulnerable-AD

ad_generator's People

Contributors

arzleck avatar

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.