Skip to content

Instantly share code, notes, and snippets.

@BeanBagKing
BeanBagKing / streams.py
Created October 28, 2016 15:52
Combines multiple pcaps, extracts and decodes TCP streams.
#!/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
import sys
for x in range(1,256):
sys.stdout.write("\\x" + '{:02x}'.format(x))
## 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
#!/bin/bash
# requirements: curl, html2text, sed
#########
#
# Author: BBK
# Date: 25 Feb 2016
# Title: Kali Tools Search Engine
#