Skip to content

Instantly share code, notes, and snippets.

View ryancdotorg's full-sized avatar

Ryan Castellucci ryancdotorg

View GitHub Profile
--- 10.8.5/Security-Security-55179.13/libsecurity_ssl/lib/sslKeyExchange.c 2021-10-06 05:52:10.000000000 +0100
+++ 10.9/Security-Security-55471/libsecurity_ssl/lib/sslKeyExchange.c 2021-10-06 05:52:02.000000000 +0100
@@ -32,28 +32,30 @@
#include "sslDebug.h"
#include "sslUtils.h"
#include "sslCrypto.h"
-
+#include "sslRand.h"
#include "sslDigests.h"
@ryancdotorg
ryancdotorg / web-crypto-scrypt.js
Last active January 9, 2024 14:40
An async JavaScript Scrypt implementation using Web Cryptography APIs for PBKDF2.
// SPDX-License-Identifier: MIT
//
// An async JavaScript Scrypt implementation using Web Cryptography APIs for PBKDF2
//
// Copyright © 2014-2018 cryptocoinjs (original implementation)
// Copyright © 2016 Richard Moore (asyncronous version)
// Copyright © 2019-2022 Ryan Castellucci (WebCrypto version)
//
// See also:
// https://github.com/cryptocoinjs/scryptsy
#!/usr/bin/env node
const vm = require('vm');
const fs = require('fs');
const tty = require('tty');
const path = require('path');
const repl = require('repl');
const homedir = require('os').homedir();
const startup = path.join(homedir, '.fnode.js');
diff -ruN dropbear.orig/Makefile.in dropbear/Makefile.in
--- dropbear.orig/Makefile.in 2023-12-21 13:53:06.474210019 +0000
+++ dropbear/Makefile.in 2023-12-21 18:43:15.890803869 +0000
@@ -50,7 +50,7 @@
cli-authpubkey.o cli-tcpfwd.o cli-channel.o cli-authinteract.o \
cli-agentfwd.o
-CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o \
+CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o common-ident.o \
common-channel.o common-chansession.o termcodes.o loginrec.o \
Binary files dropbear.a/.git/index and dropbear.b/.git/index differ
diff -ruN -x 'config.*' dropbear.a/Makefile.in dropbear.b/Makefile.in
--- dropbear.a/Makefile.in 2023-12-21 13:53:06.474210019 +0000
+++ dropbear.b/Makefile.in 2023-12-21 18:43:15.890803869 +0000
@@ -50,7 +50,7 @@
cli-authpubkey.o cli-tcpfwd.o cli-channel.o cli-authinteract.o \
cli-agentfwd.o
-CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o \
+CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o common-ident.o \
@ryancdotorg
ryancdotorg / rotate_dkim.py
Last active October 27, 2023 15:22
Experimental DKIM rotate/revoke/repudiate script for Exim+Route53. I take no responsibility for its use.
#!/usr/bin/env python
import os
import grp
import sys
import stat
import time
import hmac
import boto3
import tempfile
@ryancdotorg
ryancdotorg / exim-rebuild.sh
Last active August 17, 2023 00:28
produce debian exim packages linked against OpenSSL instead of GnuTLS
#!/bin/sh
set -ex
sudo apt-get update
sudo apt-get upgrade
sudo apt-get build-dep exim4
sudo apt-get install --no-install-recommends devscripts fakeroot
apt-get source exim4
perl -i -pe 's/^\s*#\s*OPENSSL\s*:=\s*1/OPENSSL:=1/' exim4-*/debian/rules
cd exim4-*
dch -l +openssl 'rebuild with openssl'
This file has been truncated, but you can view the full file.
#pragma once
/* automatically generated */
#define U64H2BE(V) __extension__({ \
uint64_t _v = (V); \
uint8_t _t[8]; \
_t[0] = (_v & UINT64_C(0xFF00000000000000)) >> 56; \
_t[1] = (_v & UINT64_C(0x00FF000000000000)) >> 48; \
_t[2] = (_v & UINT64_C(0x0000FF0000000000)) >> 40; \
tcpdump version 4.99.4
libpcap version 1.10.4 (with TPACKET_V3)
OpenSSL 1.1.1t 7 Feb 2023
# tcpdump -d -y IEEE802_11_RADIO 'subtype probe-req'
# 5d64c17672b015af55ed53fd68ad5d3230f2d59cd1a4262e1cc8f15c01d14c4d
(000) ldb [3]
(001) lsh #8
(002) tax
(003) ldb [2]
(004) or x