This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"errors" | |
"fmt" | |
"net" | |
"time" | |
) | |
type ChessState struct { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib, hmac | |
from base64 import b64decode as b64d, b64decode as b64d | |
line = input('hashed known_hosts line> ').strip() | |
host = input('suspected host> ').strip() | |
_, _, e_hkey, e_hdigest = line.split()[0].encode().split(b'|') | |
hkey, hdigest = b64d(e_hkey), b64d(e_hdigest) | |
d = hmac.digest(hkey, host.encode(), hashlib.sha1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
License: | |
ServiceNow script include that implements AES in ECB and CFB modes. | |
Copyright (C) 2021 K. Lustic | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import random | |
import select | |
import shlex | |
import signal | |
import socket | |
import ssl | |
import struct | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Deps: | |
# ripgrep: https://github.com/BurntSushi/ripgrep | |
# Credit: | |
# Trufflehog: https://github.com/dxa4481/truffleHog | |
import argparse | |
import logging | |
import os | |
import pathlib | |
import subprocess |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Scan the Google Authenticator export QR code to get a otpauth-migration:// URI | |
# Then, provide that URL here and get your precious seeds back. | |
# The last components on each line of output are the 80-bit TOTP conforming seeds Authenticator uses, e.g. | |
# | |
# Output looks like this | |
# Some Service 1 (Andres) - JBUSYICBNZSHEZLT | |
# Some Service 2 (Kevin) - JZXXIICTN4QEEYLE | |
from urllib.parse import unquote | |
def consume(b: bytes): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To use this Bash function: | |
# [user]$ source tracert.sh | |
# [user]$ tracert | |
# Tracing to 8.8.8.8... | |
# 1 250.50.224.1 | |
# ... | |
# [user]$ tracert 1.1.1.1 | |
# Tracing to 1.1.1.1... | |
# 1 250.50.224.1 | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import logging | |
import random | |
import select | |
import shlex | |
import signal | |
import socket | |
import ssl | |
import struct | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Modified from here: | |
# https://docs.aws.amazon.com/general/latest/gr/sigv4-signed-request-examples.html#sig-v4-examples-get-query-string | |
import sys, os, base64, datetime, hashlib, hmac, urllib | |
# ************* REQUEST VALUES ************* | |
method = 'GET' | |
service = 'ec2' | |
host = 'ec2.amazonaws.com' | |
region = 'us-east-1' | |
endpoint = 'https://ec2.amazonaws.com' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import itertools | |
import logging | |
import requests | |
import sys | |
import threading | |
import urllib3 | |
class Scanner(object): |