Giter Club home page Giter Club logo

powershell-scripts's Introduction

PowerShell-Scripts

Just a collection of PowerShell scripts that I wrote or borrowed for various purposes.

ctfdConversion.ps1

This script is built to convert CSV files to CTFd JSON format. The tricky thing here is making a CSV become an array capable JSON file, so a lot of manual scripting needs to be accomplished.

Some of these functions can be pulled out and used for other purposes.

join_domain.ps1

Changes the computer name to be "Windows-[Last 6 of MAC]" and then joins to a domain using Admin credentials

You will need to manually change the domain name and domain admin username.

port-sweep.ps1

This script accomplishes a few things:

  • Prompts user for the IP Range
  • Attempts a connection on DNS, RDP, WinRM, HTTP, and SMB
  • Stores all the results into a PowerShell object with properties
  • Multi-threaded based on the host's memory and won't exceed 70%
  • Outputs to a XML, HTML, and JSON

create_users.ps1

Credit to https://blog.netwrix.com/2018/06/07/how-to-create-new-active-directory-users-with-powershell/

A simple script for creating Active Directory users with a CSV files. This will need to be ran on the Domain Controller. You will also need to make a CSV will the following headers:

  • username
  • password
  • firstname
  • lastname
  • department

Ping Sweeps

Credit to https://pen-testing.sans.org/blog/2017/03/06/pen-test-poster-white-board-powershell-ping-sweeper/

pingSweep.ps1

The most basic form of a PowerShell ping-sweep on a /24 network.

parallelPingSweep.ps1

Using workflows, this takes a ping-sweep a bit further and launches multiple ping-sweeps in parallel (Multi-threaded PowerShell O.o )


Under Construction

pingSweepOsDetect.ps1 - The if/else is broken I think - I'll come back to this later... probably, lol

powershell-scripts's People

Contributors

oofles avatar

Stargazers

 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.