Skip to content

Instantly share code, notes, and snippets.

View volt4ire's full-sized avatar

Robert Barat volt4ire

View GitHub Profile
##################################################
# Extra tools
# $ sudo apt install -y kali-linux-default bloodhound bloodhound-ce-python chisel chisel-common-binaries dirsearch enum4linux-ng feroxbuster goshs grc iputils-ping mssqlpwner nishang peass powercat rlwrap rubeus seclists sharphound shellter sshpass
# urlencode:
# $ sudo apt install gridsite-clients
# csharp:
# $ sudo apt install mono-devel
# Install flatpak
# -> https://www.kali.org/docs/tools/flatpak/
# Python2 pip
@janpaul123
janpaul123 / find-removed-videos.sh
Created December 20, 2020 21:34
Find all Youtube videos in my archive which have since been removed
#!/bin/bash
set -Eeuxo pipefail
# Install youtube-dl
curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /tmp/youtube-dl
chmod a+rx /tmp/youtube-dl
# Create /tmp/print-missing-youtube.sh script.
echo '#!/bin/bash' > /tmp/print-missing-youtube.sh
@pirate
pirate / docker-compose.yml
Last active November 26, 2024 07:34
Example database container setups for PostgreSQL, MariaDB, Redis, Memcached, MongoDB, Neo4j, Hasura GraphQL, CockroachDB, and TiDB in Docker Compose
# Example database container setups for PostgreSQL, MariaDB, Redis, Memcached, MongoDB, Neo4j, Hasura GraphQL, CockroachDB, and TiDB in Docker Compose
# https://gist.github.com/pirate/1fafaa18a47254f388aa5c0f79f7d263
# Goes well with these docker-compose networking/ingress container examples:
# https://gist.github.com/pirate/1996d3ed6c5872b1b7afded250772f7c
version: '2.4'
services:
postgres:
@ttscoff
ttscoff / Podcast.bunch
Last active March 19, 2022 15:43
Brett's Bunch.app bunch for podcasting
# Start podcasting
## Some time tracking
& workflows/Timing
- task = Podcasting
- project = Podcasting
## Do not disturb me, audio settings
(dnd on)
@ttscoff
ttscoff / volumetoggle.rb
Created September 11, 2020 10:18
Script for macOS to save and restore audio input/output device and volume settings
#!/usr/bin/env ruby
# frozen_string_literal: true
# Brett Terpstra <https://brettterpstra.com>
#
# macOS: Stores all input/output devices and volume settings to a
# text file, restores on demand
#
## Dependencies
# SwitchAudioSource <https://github.com/deweller/switchaudio-osx>
tell application "System Events"
tell process "Firefox Nightly"
set tmp to value of attribute "AXEnhancedUserInterface"
set value of attribute "AXEnhancedUserInterface" to true
set returnUrl to value of attribute "AXValue" of text field 1 of combo box 1 of toolbar "Navigation" of UI element 1 of front window
set value of attribute "AXEnhancedUserInterface" to tmp
return returnUrl
end tell
end tell
@0xdade
0xdade / selfdestruct.py
Created January 23, 2020 04:26
Simple code snippet for a python file to delete itself, whether it's a standalone .py file or compiled into an executable using pyinstaller
#!/usr/bin/env python3
'''
Determine if this python is part of an executable or a standalone script and then delete the file accordingly.
If the script has been bundled into an executable using pyinstaller (such as pyinstaller --onefile <fname>.py) then the realpath of __file__ will be incorrect, thus the use of sys.executable.
Example of just relying on __file__:
$ pyinstaller --onefile test.py
[...]
$ ls dist/
@Neo23x0
Neo23x0 / Base64_CheatSheet.md
Last active April 13, 2026 08:47
Learning Aid - Top Base64 Encodings Table

Base64 Patterns - Learning Aid

Base64 Code Mnemonic Aid Decoded* Description
JAB 🗣 Jabber $. Variable declaration (UTF-16), e.g. JABlAG4AdgA for $env:
TVq 📺 Television MZ MZ header
SUVY 🚙 SUV IEX PowerShell Invoke Expression
SQBFAF 🐣 Squab favorite I.E. PowerShell Invoke Expression (UTF-16)
SQBuAH 🐣 Squab uahhh I.n. PowerShell Invoke string (UTF-16) e.g. Invoke-Mimikatz
PAA 💪 "Pah!" &lt;. Often used by Emotet (UTF-16)
@sidneys
sidneys / shairport-sync.conf
Created September 13, 2019 09:50
shairport-sync configuration for pulseaudio on macos
// /usr/local/etc/shairport-sync-pulseaudio/shairport-sync.conf
// shairport-sync configuration for pulseaudio on macos
// v16.0.1
// General Settings.
general =
{
name = "%h | shairport-sync";
output_backend = "pa";
@TarlogicSecurity
TarlogicSecurity / kerberos_attacks_cheatsheet.md
Created May 14, 2019 13:33
A cheatsheet with commands that can be used to perform kerberos attacks

Kerberos cheatsheet

Bruteforcing

With kerbrute.py:

python kerbrute.py -domain <domain_name> -users <users_file> -passwords <passwords_file> -outputfile <output_file>

With Rubeus version with brute module: