Skip to content

Instantly share code, notes, and snippets.

@puzzlepeaches
puzzlepeaches / dark.md
Created July 17, 2018 00:04 — forked from a7madgamal/dark.md
Dark mode for Slack on MacOS
  1. Close slack
  2. Open this file /Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
  3. Append this to it
document.addEventListener('DOMContentLoaded', function() {
 $.ajax({
   url: 'https://cdn.rawgit.com/laCour/slack-night-mode/master/css/raw/black.css',
   success: function(css) {
 $("").appendTo('head').html(css);
@puzzlepeaches
puzzlepeaches / install.sh
Last active November 12, 2019 18:03
install
#!/bin/bash
echo 'Updating and upgrading. This may take a bin'
apt update && apt autoremove -y
echo 'Installing golang'
wget -q -O - https://raw.githubusercontent.com/canha/golang-tools-install-script/master/goinstall.sh | bash
echo 'Dont worry about it'
source ~/.bashrc
.git/HEAD
.git/config
.git/index
.git/logs/HEAD
/.DS_Store
/.appveyor.yml
/.arcconfig
/.arcrc
/.aws/credentials
/.babelrc
@puzzlepeaches
puzzlepeaches / user.js
Last active October 9, 2021 14:29 — forked from AetherEternity/user.js
Silent firefox
// Mozilla User Preferences
// To change a preference value, you can either:
// - modify it via the UI (e.g. via about:config in the browser); or
// - set it within a user.js file in your profile (create it if it doesn't exist).
//
// Profile folder location on different systems:
// Windows: C:\Users\<username>\AppData\Roaming\Mozilla\Firefox\Profiles\xxxxxxxx.default
// Mac OS X: Users/<username>/Library/Application Support/Firefox/Profiles/xxxxxxxx.default
// Linux: /home/<username>/.mozilla/firefox/xxxxxxxx.default
#!/bin/bash
bold="\e[1m"
Underlined="\e[4m"
red="\e[31m"
green="\e[32m"
blue="\e[34m"
#grey="\e[90m"
end="\e[0m"
ugb=""
@puzzlepeaches
puzzlepeaches / usergen.py
Created June 7, 2021 17:59
Really bad way of adding a letter after the first character in a username. Makes username validation a little easier if your client is using the format {f}{m}{last}@acme.com.
# Usage: python3 usergen.py -f users.txt | tee modified-users.txt
import string
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("--file", "-f", type=str, required=True)
args = parser.parse_args()
@puzzlepeaches
puzzlepeaches / docker.sh
Last active August 6, 2021 12:17
Docker install
# Run with:
# curl -skL https://git.io/JR3md | sudo bash
#! /bin/bash
if [ "$EUID" -ne 0 ]
then echo "[-] Please run as root"
exit
fi
# install the required services, pull docker the right docker for debian
@puzzlepeaches
puzzlepeaches / mailboxcheck.py
Created February 2, 2022 16:25
Lets you feed in a list of user credentials guessed during spraying to check if they have a valid mailbox for an on-prem Exchange server. Basically an easy way to tell if you are going to be able to abuse an ActiveSync endpoint or not. Need to install exchangelib for this to work.
import os
import argparse
from exchangelib import Credentials, Account, Configuration
from exchangelib.errors import ErrorNonExistentMailbox, UnauthorizedError
def args():
parser = argparse.ArgumentParser()
parser.add_argument("-c", "--creds", dest="creds", help="List of known valid user credentials in the format user@acme.com:password", action='store', required=True)
parser.add_argument("-t", "--target", dest="target", help="Target Exchange server.", action='store', required=True)
args = parser.parse_args()
@puzzlepeaches
puzzlepeaches / latestpd.py
Created April 1, 2022 10:46
Download latest Linux projectdiscovery tools with Python. Comment out line 54 if you want to hold on to the zipfiles following download.
import os
import glob
import zipfile
import requests
from lastversion import latest
tools = ["nuclei", "httpx", "dnsx", "subfinder", "naabu", "shuffledns"]
def get_version(tools):
for i in tools: