Skip to content

Instantly share code, notes, and snippets.

View Resistor52's full-sized avatar

Kenneth G. Hartman Resistor52

View GitHub Profile
@Resistor52
Resistor52 / gist:166aa3b10a6f6d49f9950411a6905df0
Created August 19, 2022 17:08
For Cloudwars - "Azure Advanced Remote Access" Q2
resource "azurerm_virtual_network" "sec510_cloudwars" {
name = "sec510-cloudwars"
resource_group_name = azurerm_resource_group.cloudwars.name
location = azurerm_resource_group.cloudwars.location
address_space = ["10.10.0.0/16"]
}
resource "azurerm_subnet" "sec510_cloudwars" {
name = "sec510-cloudwars-private"
@Resistor52
Resistor52 / gist:ba603b268d67239089902b515023e083
Last active October 24, 2021 13:37
Install Docker on Ubuntu 20.04
# Add the Repo
sudo apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg lsb-release
# Add Docker's GPG Key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
# Set up Docker CE
sudo apt-get update
@Resistor52
Resistor52 / gist:36c098b4275eb05a129b426c4c6dde7a
Created December 13, 2020 21:42
Quick SSH Brute Force with Metasploit on Ubuntu
#!/bin/bash
# https://docs.rapid7.com/metasploit/installing-the-metasploit-framework/
# TODO Run as Root Check
apt-get update
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
cd ~
wget https://raw.githubusercontent.com/danielmiessler/SecLists/master/Passwords/Common-Credentials/500-worst-passwords.txt
@Resistor52
Resistor52 / user-data-file
Last active December 13, 2018 21:43
Create an Ubuntu EC2 Linux Desktop with xRDP
## Supply this file as the user data when launching an Ubuntu EC2 instance
#!/bin/bash
apt -y update
DEBIAN_FRONTEND=noninteractive apt -y upgrade
apt install -y ubuntu-mate-desktop
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
dpkg -i google-chrome-stable_current_amd64.deb
apt install -y xrdp
systemctl enable xrdp