This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# OpenSSL requires the port number. | |
SERVER=$1:443 | |
# Delay after each test | |
DELAY=0 | |
# Ciphers to test | |
ciphers=$(openssl ciphers 'ALL:eNULL' | sed -e 's/:/ /g') | |
# Some nice colours :) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"os/exec" | |
"runtime" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net" | |
"strconv" | |
"time" | |
) | |
//ServerIP defines the IP and port of the other peer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Write-Output "PowerShell Timer trigger function executed at:$(get-date)"; | |
$uri = "https://bing.com" | |
$poorsodnumber = "+44........" | |
if ((Invoke-WebRequest -Uri $uri -UseBasicParsing).StatusCode -eq 200) { write-output "$uri is UP" } else | |
{ | |
Write-Output "$uri is DOWN. Sending SMS." | |
# Pull in Twilio account info, previously set as environment variables | |
$sid = $env:TWILIO_ACCOUNT_SID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.Synopsis | |
Print all your VMs' effective route tables. | |
Author: Pedro Perez <pedro.perez@microsoft.com> | |
.DESCRIPTION | |
This quick and dirty script will run through your subscription and query the routing table for every VM. The information is printed on screen. | |
.EXAMPLE | |
.\RoutePrint.ps1 | |
There are no parameters. You'll be potentially asked to authenticate against Azure with your Azure admin account and to select a subscription if you have more than one. | |
#> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Param( | |
[string]$request | |
) | |
$uri = "http://whois.datasnitch.co.uk/$request" | |
$r = Invoke-WebRequest -Uri $uri | |
$r.Content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
from bs4 import BeautifulSoup | |
import requests | |
import re | |
import json | |
try: | |
url = sys.argv[1] | |
string = sys.argv[2] |