Git Product home page Git Product logo

powershellforpentesters's Introduction

PowerShellForPentesters

MayorSec ko-fi

PowerShell for Pentesters is a basic introduction to using PowerShell on internal penetration tests. This course is essentially the PowerShell module from my popular Movement, Pivoting, and Persistence course on TCM Academy and Udemy. In the course we will cover:

  • User, group, and workstation enumeration
  • Domain enumeration
  • Downloading with PowerShell
  • Group Policy Enumeration
  • ACL Enumeration
  • PowerShell Remoting
  • PowerView and other popular offensive PowerShell scripts
  • Mimikatz exploitation

Scripts are provided for easy installation of Active Directory functionality, however no instruction will be given on installing virtual machines in video. A lab guide provided in this repo will outline the basics for installing your network on Virtualbox. The process is similar on VMWare Workstation and Workstation Pro.

You will need Hashcat for the course, which is accessible at https://hashcat.net/hashcat/. You can also access Hashcat through Kali Linux if you have it installed. A course wordlist is included in the repo which contains user passwords when necessary, and will not require a GPU to crack.

ADGenerator

This script will auto-generate the required users, groups, and permissions necessary for my Powershell for Pentesters course.

Instructions

In order to generate a functional domain controller and active directory, the listed PowerShell scripts need to be executed in the following order:

  • Invoke-ForestDeploy.ps1

. .\Invoke-ForestDeploy.ps1

Invoke-ForestDeploy -DomainName <domain name>

This will install the Windows Active Directory Domain Services toolset and generate the actual domain. Follow the instructions on screen, making note of the domain name used as this will be needed later.

  • ADGenerator.ps1

. .\ADGenerator.ps1

Invoke-ADGenerator -DomainName <domainname>

This will generate the appropriate users, groups, permissions, configurations, and misconfigurations needed for the actual course.

  • NamePC.ps1

. .\NamePC.ps1

executeNameChange -ComputerName Workstation-01

This is ran on the Workstation-01 machine created to appropriately name the workstation in the domain. Ensure that you use -ComputerName flag and specify Workstation-01.

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.