Required tools for playing around with memory:
hexdump
objdump
readelf
xxd
gcore
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <assert.h> | |
#include "zlib.h" | |
#define CHUNK 16384 | |
/* | |
40 Length of the zlib stream |
function TerminateProcess { | |
param ( | |
$ProcessName | |
) | |
$p = Get-Process $ProcessName -ErrorAction SilentlyContinue | |
if ($p) { | |
Stop-Process -InputObject $p | |
} | |
} |
##################################################################### | |
# Toggle Defender Real-time Protection | |
# | |
# Syntax: | |
# | |
# Defender - toggle Real-time Protection (default) | |
# Defender -state 0/1 - Set Real-time Protection to Enable/Disable | |
##################################################################### | |
param( |
Set-PSReadLineOption -EditMode Emacs | |
Set-PSReadLineKeyHandler -Chord Ctrl+LeftArrow BackwardWord | |
Set-PSReadLineKeyHandler -Chord Ctrl+RightArrow ForwardWord | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
Set-PSReadLineOption -HistorySearchCursorMovesToEnd | |
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward | |
$global:globalPromptInvokedCount = 0 |