Skip to content

Instantly share code, notes, and snippets.

@nstarke
nstarke / network-callout.sh
Created June 21, 2022 21:41
Network Callout
#!/bin/bash
# sudo apt install iw curl jq
ALIVE="$1"
check_public_ip() {
INTERFACE="$1"
PUBLIC_IP=$(curl -s https://httpbin.org/ip | jq -r .origin)
if ! [[ -z $PUBLIC_IP ]]; then
echo "[+] Found Public IP $PUBLIC_IP for $INTERFACE"
fi
Import-Module WebAdministration
$port = 80
$ssl = $false
#App Start
SetupOptionalVariables
SetupAppPools
SetupWebSite
SetupWebApplication