Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile

A script to add a VPN connection in Windows 10

  1. Download both of the scripts, and place both files on the desktop.
  2. Double click on the VPN.bat file
  3. When prompted click "Yes" to run the script as an administrative user
  4. Enter the connection details when prompted (VPN address, pre shared key)
  5. Reboot
@austinsonger
austinsonger / vpn_setup.ps1
Created March 3, 2019 02:56 — forked from dunkelstern/vpn_setup.ps1
VPN Setup script for windows powershell
# Set these to the correct values
$server_address = "vpn.example.com"
$connection_name = "VPN Connection"
$certificate_path = "certificate.p12"
$ca_cert_path = "strongswanCert.pem"
$password = ConvertTo-SecureString -String "P12 passphrase" -AsPlainText -Force
# Import machine cert
Import-PfxCertificate -FilePath $certificate_path -CertStoreLocation Cert:\LocalMachine\My\ -Password $password

Configure IPsec/L2TP VPN Clients

IPsec/L2TP is natively supported by Android, iOS, OS X, and Windows. There is no additional software to install. Setup should only take a few minutes. In case you are unable to connect, first check to make sure the VPN credentials were entered correctly.


@austinsonger
austinsonger / HTML Select Drop Down
Created July 31, 2019 19:02 — forked from frankhu-2021/HTML Select Drop Down
A dropdown list of HTML for each State
<select onChange="window.location.href=this.value">
<option>Select Your State </option>
<option value="AL">Alabama</option>
<option value="AK">Alaska</option>
<option value="AZ">Arizona</option>
<option value="AR">Arkansas</option>
<option value="CA">California</option>
<option value="CO">Colorado</option>
<option value="CT">Connecticut</option>
<option value="DE">Delaware</option>
@austinsonger
austinsonger / osx_defaults.sh
Created July 31, 2019 19:03
OSX Defaults to setup a brand new machine
#!/usr/bin/env bash
echo "Need to recapture iTerm settings"
exit -1
# TODO: Need to figure out the settings for the following:
# 1) Finder: Left nav, favorite items with their order
# 2) Dock: Items with order
# 3) Security & Privacy Preferences: Full Disk Access, Camera, Microphone
# 4) Login items for my user (i.e. apps started when I login)
<html>
<head>
<title>Welcome to Public WiFi</title>
</head>
<body>
<h1>Welcome to Public WiFi</h1>
<?php
$base_grant_url = urldecode($_GET['base_grant_url']);
$user_continue_url = urldecode($_GET['user_continue_url']);
@austinsonger
austinsonger / osx_pentest_prefs.sh
Created January 5, 2020 06:33 — forked from pwntoken/osx_pentest_prefs.sh
OSX Penetration Test Preferences Lab Setup
# OSX for Pentesting (Mavericks/Yosemite)
# macOS Sierra shall be updated;
# This's a fork, folks - suck in the caffeine!
# http://pwntoken.github.io/
#!/bin/sh
# Ask for the administrator password upfront
echo "Have you read through the script prior to running this? (y or n)"
# XCode Command Line Tools
xcode-select --install
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo PATH=/usr/local/bin:/usr/local/sbin:$PATH >> ~/.bash_profile
source ~/.bash_profile
brew tap homebrew/versions
#!/bin/bash
# Requires:
# 1-2 Cores
# 512-1 GB RAM
# 300+ MB HD
bold=$(tput bold)
green=$(tput setaf 2)
normal=$(tput sgr0)
@austinsonger
austinsonger / install_docker.sh
Last active August 19, 2020 17:33 — forked from vasuadari/install_docker.sh
install_docker_on_ubuntu_18_04
#! /bin/bash
apt-get update -y
apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
software-properties-common