Skip to content

Instantly share code, notes, and snippets.

View detect-private-browsing.markdown
@dedenker
dedenker / Pinged.psm1
Created Nov 9, 2017
This Powershell script is to listen on a port and react as ping function would do. Across domain allowed in headers!
View Pinged.psm1
Function Start-Pong {
<#
.Synopsis
Creates a new HTTP Listener with PING reply function
.Description
This module is heavily based on a module that is a HTTP listener (see blog).
I just adjusted a little so the HASH convertion is missing and authentication can be ignored.
The function I only required is to "pong" a ping, given to a adres + port + namespace.
This function requires running from an elevated administrator prompt to open a port.