Skip to content

Instantly share code, notes, and snippets.

@puzzlepeaches
puzzlepeaches / latestpd.py
Created Apr 1, 2022
Download latest Linux projectdiscovery tools with Python. Comment out line 54 if you want to hold on to the zipfiles following download.
View latestpd.py
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:
@puzzlepeaches
puzzlepeaches / mailboxcheck.py
Created Feb 2, 2022
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.
View mailboxcheck.py
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 / docker.sh
Last active Aug 6, 2021
Docker install
View docker.sh
# 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 / usergen.py
Created Jun 7, 2021
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.
View usergen.py
# 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()
View subenum.sh
#!/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 / user.js
Last active Oct 9, 2021 — forked from AetherEternity/user.js
Silent firefox
View user.js
// 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
View wordlist.dict
.git/HEAD
.git/config
.git/index
.git/logs/HEAD
/.DS_Store
/.appveyor.yml
/.arcconfig
/.arcrc
/.aws/credentials
/.babelrc
View install.sh
#!/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
@puzzlepeaches
puzzlepeaches / dark.md
Created Jul 17, 2018 — forked from a7madgamal/dark.md
Dark mode for Slack on MacOS
View dark.md
  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);