Skip to content

Instantly share code, notes, and snippets.

Avatar

Ryan Castellucci ryancdotorg

View GitHub Profile
View endian.h
#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; \
View filters.out
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
View probecap.c
/* SPDX-License-Identifier: 0BSD OR OR MIT-0 OR Unlicense OR CC0-1.0+
Copyright ©2023 Ryan Castellucci, no rights reserved.
gcc -O2 probecap.c -lpcap -o probecap #*/
#include <string.h>
#include <stdint.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>
@ryancdotorg
ryancdotorg / address_verification_rules.txt
Created April 24, 2023 10:15
exim acl to block address verification services
View address_verification_rules.txt
# WARNING: These rules may cause your email addresses to be rejected by various
# services and/or flagged as potentially fraudulent. Care has been taken to make
# these rules as precise as possible, but there may be false positives. I take
# no responsibility for what happens if you use these rules.
# defer address validation attempts
defer
message = Please try later
log_message = everify probe (ip)
condition = ${if match_ip{$sender_host_address}{185.31.204.0/22}}
View altpre.pem
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
07:d1:d1:bf:95:5f:c9:75:ea:67:3c:b3:16:66:d6:9f
Signature Algorithm: ecdsa-with-SHA256
Issuer: C = US, O = "Cloudflare, Inc.", CN = Cloudflare Inc ECC CA-3
Validity
Not Before: Mar 31 00:00:00 2023 GMT
Not After : Mar 30 23:59:59 2024 GMT
View asper.pem
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
01:6e:17:41:fd:92:7b:b4:78:24:a9:8b:35:ae:58:be
Signature Algorithm: ecdsa-with-SHA256
Issuer: C = US, O = "Cloudflare, Inc.", CN = Cloudflare Inc ECC CA-3
Validity
Not Before: Mar 8 00:00:00 2023 GMT
Not After : Mar 6 23:59:59 2024 GMT
View happyfriday.pem
Certificate:
Data:
Version: 3 (0x2)
Serial Number:
07:d1:d1:bf:95:5f:c9:75:ea:67:3c:b3:16:66:d6:9f
Signature Algorithm: ecdsa-with-SHA256
Issuer: C = US, O = "Cloudflare, Inc.", CN = Cloudflare Inc ECC CA-3
Validity
Not Before: Mar 31 00:00:00 2023 GMT
Not After : Mar 30 23:59:59 2024 GMT
View 501-ath_regd_param.patch
--- a/drivers/net/wireless/ath/regd.c
+++ b/drivers/net/wireless/ath/regd.c
@@ -23,6 +23,10 @@
#include "regd.h"
#include "regd_common.h"
+static char *default_country_alpha2 = NULL;
+module_param_named(default_country, default_country_alpha2, charp, S_IRUGO);
+MODULE_PARM_DESC(default_country, "Default Country Code (ISO 3166-1 Alpha-2)");
+
View eap1300_to_eap1300ext.py
#!/usr/bin/env python3
import sys
in_file = sys.argv[1]
lower = in_file.lower()
if 'eap1300ext' in lower or 'eap1300' not in lower:
raise ValueError('This does not look like an EAP1300 firmware file name.')