Skip to content

Instantly share code, notes, and snippets.

View uolter's full-sized avatar

Walter Traspadini uolter

View GitHub Profile
@uolter
uolter / iplookup.go
Created January 22, 2021 13:49
IP Lookup ... reads form a txt file a list of domains and gets their ip addresses
package main
import (
"bufio"
"fmt"
"net"
"os"
)
func readDomainsFromFile(filePath string) (domains []string, err error) {
@uolter
uolter / main.go
Last active November 11, 2021 10:19
Go check SSL/TLS
package main
import (
"crypto/tls"
"fmt"
"time"
)
type target struct {
domain string
@uolter
uolter / tls_check.go
Created December 27, 2021 12:50
Check TLS (https) certificate
package main
import (
"crypto/tls"
"flag"
"fmt"
"log"
"os"
"time"
)
@uolter
uolter / kv_exp_dates.sh
Created December 27, 2021 13:43
List certificate expire dates in azure key vault
#!/bin/bash
###############################
# pip install python-dateutil #
###############################
KEYVAULTS=$(az keyvault list --query "[].name" -o tsv)
# KEYVAULTS="<space_delimited_list_of_vault_names>"
for KEYVAULT in $KEYVAULTS; do
for CERT in $(az keyvault certificate list \
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyAllOutsideEU",
"Effect": "Deny",
"NotAction": [
"a4b:*",
"access-analyzer:Get*",
"access-analyzer:List*",