Skip to content

Instantly share code, notes, and snippets.

lanmaster53 / Dockerfile
Last active Jul 13, 2020
Docker image for running Python 3 scripts in a throw-away environment.
View Dockerfile
FROM python:3.7-slim-buster
RUN mkdir -p /src
ENTRYPOINT ["/bin/bash"]
View docker-compose.yml
version: '3.7'
build: .
image: recon-ng
container_name: recon-ng
- '5000:5000'
View introspection-query.graphql
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
directives {
lanmaster53 / git-shallower
Last active Dec 7, 2018
Basic script to update git repository without any history or excess data in .git
View git-shallower
# Basic script to update a git repository without any history or excess data in .git.
# Parses the url from .git/config, downloads latest version, and purges everything in .git/ except the config file.
# Limitations:
# * Only works with the master branch.
# * Doesn't account for local virtual environments.
# * Doesn't allow for maintaining a stash of changes.
if [ -f $FILE ]; then
# parse the url from the config file
lanmaster53 / google-voice-purge.js
Last active Nov 27, 2018
Google Voice Purge Developer Console Script
View google-voice-purge.js
Copy and paste this into the developer console for any view of the legacy Google Voice browser interface.
This script will page through and delete all objects in the view using keyboard shortcuts (51 = `#` = move to trash).
There is no shortcut for deleting objects permanently from trash. Trash is purged after 30 days according to Google.
var e2 = new KeyboardEvent("keydown", {view: window, key: "#",keyIdentifier: "U+0023", code: 'Digit3', shiftKey: true, bubbles: true, cancelable: true});
delete e2.which;
View autocomplete.html
<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>Autocomplete Password Test</title>
function toggleType() {
var el = document.getElementById("pw");
if (el.type =="password") {
el.type = "text";
lanmaster53 /
Last active Dec 10, 2020
Burp Python Scripter scripts
import sys
# Provides introspection into the Python Scripter API.
apis = ('extender', 'callbacks', 'helpers', 'toolFlag', 'messageIsRequest', 'messageInfo')
funcs = (type, dir)
if messageIsRequest:
for api in apis:
print('\n{}:\n{}'.format(api, '='*len(api)))
lanmaster53 / tag-replace.js
Last active May 5, 2017
JavaScript library for parsing template tags out of textarea elements and overlaying a select element of options with which to replace the tag.
View tag-replace.js
// define global variables to pass data between textarea and select elements
var currentEl = null;
var currentTag = null;
// dynamically create a select box to populate with options
$("body").append($("<select></select>").attr("id", "template-select").attr("style", "position: absolute; display: none;"))
function getCaretPosition(el) {
var start, end;
if (el.setSelectionRange) {
View arrow.html
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
.arrow-1 {
content: "";
View .bashrc
# other stuff here
# derivative of
# create virtualenv management functions
function venv-activate() {
# always activate a local venv if available
if [ -d "$(pwd)/venv" ]
echo "local virtualenv activated (venv)."
# ...but warn if a global venv by the given name exists