Skip to content

Instantly share code, notes, and snippets.

@gmassawe
gmassawe / kerberos_attacks_cheatsheet.md
Created August 4, 2022 17:18 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
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:

@gmassawe
gmassawe / mousejack
Last active July 29, 2022 04:05
Installing Mousejack on Kali 2022
sudo apt-get install virtualenv
git clone https://github.com/BastilleResearch/mousejack.git
cd mousejack
virtualenv -p /usr/bin/python2 venv
source venv/bin/activate
pip install pyusb
cp -r ~/Downloads/mousejack/venv/lib/python2.7/site-packages/usb ./prog/usb-flasher/
sudo make install
@gmassawe
gmassawe / openssl_cheat_sheet.md
Last active March 18, 2026 00:44
OpenSSL Cheat Sheet

OpenSSL Cheat Sheet

OpenSSL version note: Commands below target OpenSSL 3.x. Some flags differ in 1.x — noted inline where relevant.

Listing Available Ciphers

List all available ciphers with details:

openssl ciphers -v
@gmassawe
gmassawe / sources.list
Last active December 15, 2024 18:12
Kali Linux
deb http://http.kali.org/kali kali-rolling main non-free contrib
deb-src http://http.kali.org/kali kali-rolling main non-free contrib
deb http://http.kali.org/kali kali-rolling main non-free contrib
@gmassawe
gmassawe / sources.list
Created November 1, 2019 14:21
Ubuntu 14.04 Trusty Tahr
#deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
@gmassawe
gmassawe / sources.list
Created November 1, 2019 14:14
Ubuntu 16.04 Xenial
#deb cdrom:[Ubuntu 16.04.2 LTS _Xenial Xerus_ - Release amd64 (20170215.2)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
@gmassawe
gmassawe / openssl_self_signed.md
Last active March 18, 2026 00:49
Creating Self Signed Certificate

OpenSSL Cheat Sheet for Self-Signed Certificates

OpenSSL version note: Commands below target OpenSSL 3.x. Some flags differ in 1.x — noted inline where relevant.


Create Self-Signed Certificates with OpenSSL

Root CA

@gmassawe
gmassawe / netcfg.yaml
Created May 21, 2019 14:04
Ubuntu Server 18.04 - Static IP - Netplan
# Netplan static IP config Ubuntu Server 18.04
network:
version: 2
renderer: networkd
ethernets:
enp6s7:
dhcp4: no
dhcp6: no
addresses: [xxx.xxx.xxx.xxx/xx]
gateway4: xxx.xxx.xxx.xxx
@gmassawe
gmassawe / clearCachedGPOs.bat
Created March 14, 2019 16:18
Script to clear cached GPOs
@echo off
::
:: This script clears cached GPOs
:: George Massawe 03/14/2019
::
DEL /S /F /Q “%ALLUSERSPROFILE%\Microsoft\Group Policy\History\*.*”
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy /f
REG DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies /f
REG DELETE HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies /f
DEL /F /Q C:\WINDOWS\security\Database\secedit.sdb
@gmassawe
gmassawe / rmapps.ps1
Created January 21, 2019 20:18
Remove Windows 10 Pro (1803) Bloatware
Get-AppxPackage -allusers *communicationsapps* | Remove-AppxPackage
Get-AppxPackage -allusers *camera* | Remove-AppxPackage
Get-AppxPackage -allusers *calculator* | Remove-AppxPackage
Get-AppxPackage -allusers *alarms* | Remove-AppxPackage
Get-AppxPackage -allusers *photos* | Remove-AppxPackage
Get-AppxPackage -allusers *microsoft.people* | Remove-AppxPackage
Get-AppxPackage -allusers *messaging* | Remove-AppxPackage
Get-AppxPackage -allusers *soundrecorder* | Remove-AppxPackage
Get-AppxPackage -allusers *stickynotes* | Remove-AppxPackage
Get-AppxPackage -allusers *maps* | Remove-AppxPackage