Git Product home page Git Product logo

posh's Introduction

PoSH

Random Powershell scripts that I create to automate tasks I am too lazy to click on.

Make-AVnoise.ps1

! This script requires access to an API key from virustotal and - ideally - a VT enterprise account.

I had created this script for my lab environment. Sometimes I need to just download samples from VT to test AV detections and populate my lab Defender portal with data. Its purpose is not to maliciously infect a device. It has some fault controls as well so that when it breaks or just finishes running, all the samples that were not picked up and quarantined by AV are wiped from disk.

JitAuto.ps1

Working with Azure VMs and protecting them with JIT (Just In Time access) is great ! But when I have a lab of 5+ machines, its really daunting to go to the portal and Start all of them and then Request access one by one. I created this script to automate the process of starting a VM and then requesting access for it. You just need to edit the script to add your own Subscription ID and Resource Group for which you want to start the machines.

The script will

  • Capture your public IP
  • Iterate all machines in Resource Group
  • Start them if they are down
  • Create a JIT Access Request for the relevant tcp port depending on the OS, for your public IP

DISCLAIMER

The scripts are shared as is. Use them at your own risk. I do not intentionaly share scripts that may be breaking something and I take no responsibility if the script breaks something you built.

posh's People

Contributors

cventour avatar kizm-yss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.