xkln.net


Exploring IP GeoLocation With PowerShell

December 04, 2019

IP Geolocation is the mapping of an IP address to its geographical location, typically a country, state, or city. We can be confident that an IP block allocated by a regional internet registry (e.g, APNIC) to an Australian ISP will mean that IP range will be assigned to a service…

Multithreading In PowerShell - Running A Specific Number Of Threads

November 28, 2019

In this post we’re aiming to accomplish in PowerShell what the previous post did in Python, which is to create a pool of threads to carry out a set of given tasks concurrently. The closest equivalent to what we achieved in Python can be accomplished in PowerShell using Runspace…

Multithreading In Python - Running A Specific Number Of Threads

October 17, 2019

One of the great things about Python is how easy it makes creating a pool of threads and assigning them tasks. A practical example would be if we’re looping through an array of 100,000 objects with each one containing a URL or IP address we need to hit, we wouldn’t want to…

Running PowerShell On AWS Lambda

October 07, 2019

Having previously written a few Amazon Echo Skills I knew AWS Lambda could run JavaScript and Python, but I recently found out it can also run PowerShell. Requirements PowerShell Core The first requirement is that only PowerShell Core 6 and later are supported. One advantage of…

Creating Network Diagrams with JavaScript

October 02, 2019

I had a bit of spare time and wanted to mess around with Cisco’s NeXt UI Toolkit, a JavaScript library which, amongst other things, provides functionality for generating network topology diagrams. Once we download and extract the library from the Cisco site, we’ll have 4 folders…

PowerShell Script To Generate New Blog Post For Gatsby

October 02, 2019

What previously ran on Hugo is now running on GatsbyJS. For no other reason than that I’ve found myself increasingly using GatsbyJS for both work and personal projects, so it made sense to move this site to a platform I was using elsewhere. To provide some background on the file…

Modifying RANCID To Work With IOS XE

September 15, 2019

I recently needed to add a few Cisco IOS XE routers into a fairly old RANCID 2.3.8 install. I found out rather quickly this wasn’t going to work. Older versions of RANCID force use of the 3des-cbc cipher, while the newer IOS XE versions don’t support this. This cipher mismatch…