Skip to content

Instantly share code, notes, and snippets.

View RedTahr's full-sized avatar

Allister RedTahr

  • New Zealand
View GitHub Profile
@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

@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 / rdp-multimon.md
Created January 24, 2021 19:55
RDP multimon support, finding the screen IDs
@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 / 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 / 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 / setup git commands
Created July 14, 2019 22:35
basic setup git commands that i rarely need so always forget
# https://www.git-tower.com/learn/git/faq/change-author-name-email
$ git config --global user.name "John Doe"
$ git config --global user.email "john@doe.org"
or --local to set per repo
# https://help.github.com/en/articles/setting-your-commit-email-address
<username>@users.noreply.github.com

Keybase proof

I hereby claim:

  • I am redtahr on github.
  • I am redtahr (https://keybase.io/redtahr) on keybase.
  • I have a public key ASDeSMjk2aOEDibfB2jGzmKezCVXyrh4ZTkoz-Es2zFgWQo

To claim this, I am signing this object:

@RedTahr
RedTahr / top10tools.md
Created October 2, 2018 22:42
me being lazy and using gists to get a list of things from one computer to another.

taken from TinkerSec's answer on https://www.peerlyst.com/posts/pentestez-iso-creating-a-new-pentest-instance-christopher-gebhardt?trk=profile_page_overview_panel_posts#comment-65ugaE4YQaQeQXbbc

OpenVAS - http://www.openvas.org/ Vulnerability Scanner. Easy to use. Web App Based. Point and Run. Great for high level vulnerability scan. Shows common "bad things" that could be exploited by malicious hackers. Good for Asset awareness (We don't have an Apache server in our environment?! Where did that come from?) Zenmap - https://nmap.org/zenmap/ Host and Service Scanner. Good for Asset and Service Awareness.

@RedTahr
RedTahr / techcommunity-post.txt
Created September 26, 2018 09:07
hardening windows 10 - simple tips
...putting this here so i don't loose them.
https://techcommunity.microsoft.com/t5/Windows-10-security/Hardening-Windows-10-on-an-IT-Pro-s-laptop/td-p/180502
‎04-13-2018 04:13 PM - edited ‎04-16-2018 10:59 AM
a clean install of Windows 10 is pretty good, that said, I do have the following advice:
It is important to properly configure User Account Control on all machines; out of the box it is very insecure meaning anything can bypass it to grab admin privileges.
It is important to make sure that Secure Boot is enabled on all machines.