Skip to content

Instantly share code, notes, and snippets.

View RedTahr's full-sized avatar

Allister RedTahr

  • New Zealand
View GitHub Profile
@RedTahr
RedTahr / pi-clean-pihole
Last active August 27, 2019 07:33
notes on setting up a pi from a blank raspbian install to pihole
20190827
moved to https://github.com/RedTahr/RedTahr.github.io/blob/master/notes/piholes-setup-notes.md
written in the style of a markdown file, kinda, so # are titles, ## are subtitles etc.
run through as-is for a previously unpiholed network, if replacing a prior pi on the same IP
then maybe setup pihole before doing the static ip.
write raspbian of your choice to micro SD (I'm using the lite version to keep needless processing down on the pi)
@RedTahr
RedTahr / add_xml_to_explorer_preview_pane.txt
Created February 24, 2020 19:29
Preview PowerShell script files in Windows Explorer Preview Pane
# https://www.powershellmagazine.com/2012/09/10/pstip-preview-powershell-script-files-in-windows-explorer-preview-pane/
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.xml -Name PerceivedType -Value text
@RedTahr
RedTahr / kali-ptp-Dockerfile
Last active June 12, 2020 08:47
basic kali dockerfile from pentestpartners.com
# https://www.pentestpartners.com/security-blog/docker-for-hackers-a-pen-testers-guide/
# From the Kali linux base image
FROM kalilinux/kali-rolling
# Update and apt install programs
RUN apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install -y \
exploitdb \
exploitdb-bin-sploits \
git \
gdb \
@RedTahr
RedTahr / rdp-multimon.md
Created January 24, 2021 19:55
RDP multimon support, finding the screen IDs
@RedTahr
RedTahr / sandbox-config.md
Created January 26, 2021 04:05
sandbox config to install and start custom apps and tools and map network drives

sandbox config file

sandbox.wsb

Default Default C:\Users\redtahr\Downloads\tools-for-windows-sandbox true
@RedTahr
RedTahr / clear-ntfsaccess.md
Created July 14, 2022 00:13
clearing file permissions for when I stupidly thought dual booting two versions of Windows would be painless.

PS D:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

PS D:> Import-Module NTFSSecurity

PS D:> Get-ChildItem -Path D:\Downloads -Recurse -Force | Clear-NTFSAccess

PS D:> Get-ExecutionPolicy -Scope CurrentUser RemoteSigned

PS D:> Set-ExecutionPolicy -ExecutionPolicy Undefined -Scope CurrentUser