Skip to content

Instantly share code, notes, and snippets.

View kalisearch.sh
#!/bin/bash
# requirements: curl, html2text, sed
#########
#
# Author: BBK
# Date: 25 Feb 2016
# Title: Kali Tools Search Engine
#
View lmNTLM.rule
## BBK 13 Mar 2016
## Takes a LM hash (which is 14 characters max, and has no lowercase), and toggles cases to generate possible NTLM hashes.
## Lets try to get lucky: Do nothing, lowercase all, uppercase all, capitalise first lowercase rest, lowercase first capital rest.
## These possibilites will also be contained below. As I said, trying to get lucky. Also, sanity check.
:
l
u
c
View hexchars.py
import sys
for x in range(1,256):
sys.stdout.write("\\x" + '{:02x}'.format(x))
@BeanBagKing
BeanBagKing / streams.py
Created Oct 28, 2016
Combines multiple pcaps, extracts and decodes TCP streams.
View streams.py
#!/usr/bin/python
# Takes multiple pcap files (packet*.pcap) and...
### Combines them into one pcap (combined.pcap)
### Detects the number of TCP streams
### For each stream, converts it to ascii and stores them in order in a file (encoded_streams.txt)
### Converts URL (percent encoded) values to plaintext equivalent (decoded_streams.txt)
# Run this in the same directory as your packet*.pcap files
@BeanBagKing
BeanBagKing / john_help.txt
Created Nov 8, 2016
John Help Documentation
View john_help.txt
root@kali:~# john -h
John the Ripper password cracker, version 1.8.0.6-jumbo-1-bleeding [linux-x86-64-avx]
Copyright (c) 1996-2015 by Solar Designer and others
Homepage: http://www.openwall.com/john/
Usage: john [OPTIONS] [PASSWORD-FILES]
--single[=SECTION] "single crack" mode
--wordlist[=FILE] --stdin wordlist mode, read words from FILE or stdin
--pipe like --stdin, but bulk reads, and allows rules
--loopback[=FILE] like --wordlist, but fetch words from a .pot file
@BeanBagKing
BeanBagKing / diffi.sh
Created Jan 20, 2017
diffi - Better diff output script
View diffi.sh
#!/bin/bash
# diffi - Better diff output script
# BeanBagKing - https://gist.github.com/BeanBagKing
# If both arguments aren't given, print help text
if [ -z $1 ] || [ -z $2 ]; then
echo "Usage: `basename $0` [OLD] [NEW]"
exit 1
fi
View .bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
View new_setup.sh
#!/bin/bash
YEL='\033[1;33m'
RED='\033[1;31m'
GRN='\033[1;32m'
NC='\033[0m' # No Color
# This script assumes you've already taken the necessary initial steps to setup network connectivity and install vmware tools
# You probably want at least open-vm-tools-desktop to copy and paste this script and/or the URL to wget it.
echo -e "${YEL}--${NC}Starting script, installing commonly used programs"
View nsesearch.sh
#!/bin/bash
script=$1
YEL='\033[1;33m'
NC='\033[0m' # No Color
if [ -z $script ]; then
echo "Usage: `basename $0` [KEYWORD]"
exit 1
fi
View gist:71375f9548ae896a0cf4cc2f7ba6e759
apt install cowsay fortune lolcat
while true; do fortune | cowsay -f `find /usr/share/cowsay/cows/ -type f | sort -R | head -n1` | lolcat -a -s 75; sleep 2; done
Kali version:
clear; while true; do /usr/games/fortune | /usr/games/cowsay -f `find /usr/share/cowsay/cows/ -type f | sort -R | head -n1` | /usr/games/lolcat -a -s 75; sleep 2; clear; done
Credit @jeffmcjunkin