This file contains hidden or 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
| New-PSDrive -Name HKCR -PSProvider Registry -Root HKEY_CLASSES_ROOT -ErrorAction SilentlyContinue | Out-Null | |
| $count = 0 | |
| try { | |
| Get-ChildItem HKCR: -ErrorAction SilentlyContinue | ForEach-Object { | |
| if((Get-ItemProperty $_.PSPath -ErrorAction SilentlyContinue).PSObject.Properties.Name -contains "URL Protocol") { | |
| $name = $_.PSChildName | |
| $count += 1 | |
| $line = "URI Handler {0:d4}: {1}" -f $count, $name | |
| Write-Host $line | |
| } |
This file contains hidden or 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 python3 | |
| # Author: Sean Pesce | |
| # References: | |
| # https://stackoverflow.com/questions/19705785/python-3-simple-https-server | |
| # https://docs.python.org/3/library/ssl.html | |
| # https://docs.python.org/3/library/http.server.html | |
| # Shell command to create a self-signed TLS certificate and private key: | |
| # openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out cert.crt -keyout private.key |