(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| def deBruijn(n, k): | |
| ''' | |
| An implementation of the FKM algorithm for generating the de Bruijn | |
| sequence containing all k-ary strings of length n, as described in | |
| "Combinatorial Generation" by Frank Ruskey. | |
| ''' | |
| a = [0] * (n + 1) | |
| out = [] |
| #!/usr/bin/env sh | |
| # Download lists, unpack and filter, write to stdout | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' |
| #!/usr/bin/env python | |
| import getopt, sys, re, urllib2, urllib, BaseHTTPServer | |
| from urllib2 import Request, urlopen, URLError, HTTPError | |
| ################## HEADER ################################### | |
| # | |
| # Traceroute-like HTTP scanner | |
| # Using the "Max-Forwards" header |
| #!/usr/bin/env python | |
| """ | |
| Sniff a specific port for Bit Torrent DHT traffic and print | |
| requests/responses in human readable form. | |
| Reference: http://www.bittorrent.org/beps/bep_0005.html | |
| """ | |
| from pcapy import open_live | |
| from bencode import bdecode |
| #include <netdb.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <errno.h> | |
| #define CANARY "in_the_coal_mine" | |
| struct { | |
| char buffer[1024]; |
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
| /* | |
| * (un)comment correct payload first (x86 or x64)! | |
| * | |
| * $ gcc cowroot.c -o cowroot -pthread | |
| * $ ./cowroot | |
| * DirtyCow root privilege escalation | |
| * Backing up /usr/bin/passwd.. to /tmp/bak | |
| * Size of binary: 57048 | |
| * Racing, this may take a while.. | |
| * /usr/bin/passwd overwritten |
| #!/usr/bin/env sh | |
| if [ -z "$(which aws)" ]; then | |
| echo "aws command not callable" | |
| exit 1 | |
| fi | |
| if [ -z "$(which python)" ]; then | |
| echo "python command not found" | |
| exit 1 |
| #!/usr/bin/env python3 | |
| import boto3 | |
| import argparse | |
| import configparser | |
| from os.path import expanduser | |
| from botocore.exceptions import ClientError | |
| def chose_profile()->str: | |
| session = boto3.Session() |