Skip to content

Instantly share code, notes, and snippets.

View sonjz's full-sized avatar

Jason Huggins sonjz

  • ReCollect, a Routeware Company
  • Nova Scotia
View GitHub Profile
@sonjz
sonjz / test-arrayref-of-hashes.pl
Last active June 7, 2019 15:57
dealing with arrayref of hashes
# tested on https://www.tutorialspoint.com/execute_perl_online.php
use warnings;
use strict;
use Data::Dumper;
my @errors = (
{
at => "Thu Jun 6 20:31:11 2019",
error => "/url/1/2/3: 403 Forbidden"
@sonjz
sonjz / Test-VPNFilterComebackPorts.ps1
Last active January 14, 2022 07:02
Powershell - VPNFilter PortScan
#Requires -RunAsAdministrator
# description: quick port scan for vulnerable VPNFilter for your router, you can specify router ip manually,
# by default it will hit the external IP of your router, which is what VPNFilter would be scanning
# author: github @sonjz
param(
[string]$routerIp = $null, # if not provided, it will perform a WhatsMyIp and scan that address
[int[]]$ports = @(23, 80, 2000, 8080), # current VPNFilter ports, http://forums.timewarnercable.com/t5/Connectivity/VPNFilter-Arris-TG1672/m-p/152563/highlight/true#M50525
[switch]$skipInstall = $false,
@sonjz
sonjz / Get-WhatsMyIp.ps1
Last active June 12, 2018 14:48
Powershell - WhatsMyIp
# src: https://gallery.technet.microsoft.com/scriptcenter/Get-ExternalPublic-IP-c1b601bb
$info = ((curl http://ipinfo.io/json).Content | ConvertFrom-Json);
$info ;
$info.ip ;
@sonjz
sonjz / Install-AWSEnhancedNetworkingDrivers.ps1
Last active August 14, 2018 12:08
Installs Enhanced Network Drivers for AWS, be sure you are using a supported instance type: https://aws.amazon.com/ec2/instance-types/#instance-type-matrix
# Author: jason.huggins@gmail.com
# Created: 2017-03-04
# Description: Installs Enhanced Network Drivers for AWS, be sure you are using a supported instance type:
# https://aws.amazon.com/ec2/instance-types/#instance-type-matrix
#
# Quick Usage:
# Install-AWSEnhancedNetworkingDrivers.ps1 ;
# Install-AWSEnhancedNetworkingDrivers
# Prerequisites