Skip to content

Instantly share code, notes, and snippets.

View austinsonger's full-sized avatar
🙃
Localhost

Austin Songer, CISSP austinsonger

🙃
Localhost
View GitHub Profile
<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_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)
@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>

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 / 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

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