Skip to content

Instantly share code, notes, and snippets.

Avatar

Sean Escriva webframp

View GitHub Profile
@webframp
webframp / keybase.md
Created Jul 25, 2017
Signing git commits on github using keybase.io gpg key
View keybase.md

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

@webframp
webframp / kerberos_attacks_cheatsheet.md
Created Sep 13, 2021 — forked from TarlogicSecurity/kerberos_attacks_cheatsheet.md
A cheatsheet with commands that can be used to perform kerberos attacks
View kerberos_attacks_cheatsheet.md

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:

@webframp
webframp / windows.md
Created Nov 28, 2016
Minimum Viable Windows
View windows.md

A Mostly usable Windows workstation for macOS or Linux users

Especially starting with Windows 10, it isn't all that bad to work on day to day. It just requires a bit of setup out of the box to make it behave better just like those other platforms, and is sufficiently different so as to be non obvious to experienced Linux or macOS users.

Pick and choose what to do from below that fits your needs.

Note: I use emacs, like emacs keybindings and do a bit of Chef development,

@webframp
webframp / zsh_to_fish.py
Created Sep 4, 2018 — forked from dvdbng/zsh_to_fish.py
Migrate zsh history to fish
View zsh_to_fish.py
import os
import re
def zsh_to_fish(cmd):
return (cmd.replace('&&', '; and ')
.replace('||', '; or '))
def is_valid_fish(cmd):
View darwin-configuration.nix
{ config, lib, pkgs, ... }:
{
# Enable User Setup
# https://rycee.gitlab.io/home-manager/index.html#sec-install-nix-darwin-module
imports = [ <home-manager/nix-darwin> ];
home-manager.useGlobalPkgs = true;
networking.hostName = "megatron";
@webframp
webframp / darwin-configuration.nix
Created Oct 9, 2020
Getting started with nix-darwin
View darwin-configuration.nix
{ config, lib, pkgs, ... }:
{
# Enable User Setup
# https://rycee.gitlab.io/home-manager/index.html#sec-install-nix-darwin-module
imports = [ <home-manager/nix-darwin> ];
home-manager.useGlobalPkgs = true;
# System settings
# Explained: https://gist.github.com/MatthewEppelsheimer/2269385
@webframp
webframp / README.md
Created Aug 21, 2020 — forked from dnozay/README.md
Collection of useful stuff for interacting with gitlab.
View README.md

Reset root/admin password

Lost the root/admin password? You can reset it using the command-line. Recipe adapted from gitlab issue #308.

# start the console
sudo gitlab-rails console
@webframp
webframp / service-checklist.md
Created Sep 13, 2016 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist
View service-checklist.md

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@webframp
webframp / CVE-2019-19781-firstresponse.md
Last active Jan 18, 2020
CVE-2019-19781 - Live Response First Steps from @darkQuassar
View CVE-2019-19781-firstresponse.md

CVE-2019-19781 Response steps - Have I been compromised?

Critical Exposure in Citrix ADC (NetScaler) – Unauthenticated Remote Code Execution

Credit: Suggested steps taken from twitter post by @darkQuassar

Just converted to copy/pastable gist for easy access

Check the root user command history

@webframp
webframp / config.el
Created Nov 12, 2019
doom emacs config dir .doom.d
View config.el
;;; ~/.doom.d/config.el -*- lexical-binding: t; -*-
;; To modify or add binding for existing modules use add-hook! or after! macros
;; https://github.com/hlissner/doom-emacs/wiki/Customization#reconfigure-packages
;; HOTFIX for Emacs 26.1 and gnutls 3.6 - no longer needed?
;; https://www.reddit.com/r/emacs/comments/cdf48c/failed_to_download_gnu_archive/
;; (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
;;; UI