Skip to content

Instantly share code, notes, and snippets.

# Relax PowerShell
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
# Install .NET Framework 3.5
Dism /Online /Enable-Feature /FeatureName:'NetFx3'
# Disable UAC
# Alt.: reg add HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /d 0 /t REG_DWORD /f /reg:64
$newItemParameters = @{
Force = $true
#!/usr/bin/env bash
# Variables
LAB_ENV_DIR="$HOME/Documents/LabEnvironments"
SCAVENGER_DIR="$LAB_ENV_DIR/linux-scavenger"
VAGRANTFILE_URL="http://tinyurl.com/ycyul3wt"
# Create Environment & Download Vagrantfile
echo "Creating $SCAVENGIR_DIR and downloading Vagrantfile..."
mkdir -p "$SCAVENGER_DIR" && cd "$_"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "linux" do |linux|
linux.vm.box = "cybersecurity/linux-scavenger"
linux.ssh.insert_key = false
linux.vm.network "private_network", ip: "192.168.0.105"
linux.vm.synced_folder ".", "/vagrant", disabled: true
#!/bin/bash
# Set Variables
DEPLOY_KEY_URI="https://gist.githubusercontent.com/Peleke/c283ab406d45a37dc94f0df43c6a9d19/raw/712d7c126f4d0004e305d97f039ca1b755aee6b1/id_rsa"
LAB_ENV_DIR="C:/Documents/LabEnvironments"
SCAVENGER_DIR="$LAB_ENV_DIR/linux-scavenger"
SCAVENGER_REMOTE="git@gitlab.com:cyberxsecurity/lab-definitions/linux-scavenger.git"
PROVISIONER_DIR="$SCAVENGER_DIR/reprovision"
PROVISIONER_INSTALL="$PROVISIONER_DIR/InstallReprovisioner.ps1"
PROVISIONER_RUN="$PROVISIONER_DIR/Reprovision.ps1"
@Peleke
Peleke / test
Created February 22, 2020 01:20
test
@Peleke
Peleke / test
Created February 22, 2020 01:20
test
@Peleke
Peleke / test
Created February 22, 2020 00:56
test
@Peleke
Peleke / test
Created February 22, 2020 00:56
test
@Peleke
Peleke / test
Created February 22, 2020 00:56
test
#!/bin/bash
# Set Variables
DEPLOY_KEY_URI="https://gist.githubusercontent.com/Peleke/c283ab406d45a37dc94f0df43c6a9d19/raw/712d7c126f4d0004e305d97f039ca1b755aee6b1/id_rsa"
LAB_ENV_DIR="C:/Documents/LabEnvironments"
SCAVENGER_DIR="$LAB_ENV_DIR/linux-scavenger"
SCAVENGER_REMOTE="git@gitlab.com:cyberxsecurity/lab-definitions/linux-scavenger.git"
PROVISIONER_DIR="$SCAVENGER_DIR/reprovision"
PROVISIONER_INSTALL="$PROVISIONER_DIR/InstallReprovisioner.ps1"
PROVISIONER_RUN="$PROVISIONER_DIR/Reprovision.ps1"