#!/bin/bash
# HiGlogin.sh - Rune Hammersland
if [[ -n $1 ]]; then
    HiG_user=$1
else
    echo -n "Username: "
    read HiG_user
fi

echo -n "Password: "
read -s HiG_pass

# NB: -k denotes "unsecure" SSL. This is to avoid having to store the
# certificate on the laptop. Not A Good Idea (TM).
curl -k -d username=$HiG_user -d password=$HiG_pass https://172.30.30.1/cgi-bin/auth.pl > /dev/null

