Skip to content

Instantly share code, notes, and snippets.

@dedenker
dedenker / Pinged.psm1
Created November 9, 2017 20:35
This Powershell script is to listen on a port and react as ping function would do. Across domain allowed in headers!
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.
@dedenker
dedenker / detect-private-browsing.markdown
Created June 19, 2019 07:55
Detect Private Browsing