Standard escape codes are prefixed with Escape:
- Ctrl-Key:
^[ - Octal:
\033 - Unicode:
\u001b - Hexadecimal:
\x1B - Decimal:
27
| import http.server | |
| import socketserver | |
| HOST = "localhost" | |
| PORT = 8080 | |
| class HttpRequestHandler(http.server.SimpleHTTPRequestHandler): | |
| extensions_map = { | |
| ".js":"text/javascript", | |
| } |
| # create or add this to ur ~/.tmux.conf | |
| #set prefix | |
| set -g prefix C-a | |
| bind C-a send-prefix | |
| unbind C-b | |
| set -g history-limit 100000 | |
| set -g allow-rename off |
| <# | |
| .SYNOPSIS | |
| Script to Initialize my custom powershell setup. | |
| .DESCRIPTION | |
| Script uses scoop | |
| .NOTES | |
| **NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted. | |
| Author: Mike Pruett | |
| Date: October 18th, 2018 |
On Windows 10 Home edition, there is no Local Group Policy Editor (gpedit.msc)
and no Local Security Policy Editor (secpol.msc). These tools are reserved
to Professional editions of Windows.
It is however possible to install them on Windows 10 Home if you need them.
Open a PowerShell window as administrator and run the following command:
| cat /tmp/test.sh | |
| :; if [ -z 0 ]; then | |
| @echo off | |
| goto :WINDOWS | |
| fi | |
| if [ -z "$2" ]; then | |
| echo "usage: $0 <firstArg> <secondArg>" | |
| exit 1 | |
| fi |
| #! /bin/bash | |
| set -euo pipefail | |
| # This script will remove automatic association for all networks not listed in the whitelist | |
| # passed as the first argument. Passwords will NOT be removed from the Keychain. | |
| # | |
| # Alternatively, you can untick "Remember networks" in Network Preferences > Wi-Fi > Advanced, | |
| # but then you won't be able to auto-join networks even temporarily, and you might already | |
| # have a long list to go through. | |
| # |
A DLL can be loaded and executed via Excel by initializing the Excel.Application COM object and passing a DLL to the RegisterXLL method. The DLL path does not need to be local, it can also be a UNC path that points to a remote WebDAV server.
When delivering via WebDAV, it should be noted that the DLL is still written to disk but the dropped file is not the one loaded in to the process. This is the case for any file downloaded via WebDAV, and they are stored at: C:\Windows\ServiceProfiles\LocalService\AppData\Local\Temp\TfsStore\Tfs_DAV\.
The RegisterXLL function expects an XLL add-in which is essentially a specially crafted DLL with specific exports. More info on XLL's can be found on MSDN
The XLL can also be executed by double-clicking the .xll file, however there is a security warning. @rxwx has more notes on this here inc