Skip to content

Instantly share code, notes, and snippets.

View ryancdotorg's full-sized avatar

Ryan Castellucci ryancdotorg

View GitHub Profile
/* 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
# 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}}
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
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
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
--- 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)");
+
#!/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.')
@ryancdotorg
ryancdotorg / rsabd.py
Last active March 13, 2023 15:57
backdoored rsa key generation
#!/usr/bin/env python
import sys
import gmpy
import curve25519
from struct import pack
from hashlib import sha256
from binascii import hexlify, unhexlify
// In your browser, add a new bookmark with the following in the URL
// field and name it "Mx it up" (or whatever you fancy). This is known
// as a "bookmarklet" - if you select it from the bookmarks menu it
// will run on the page you currently have open.
javascript:(D=>{D.querySelectorAll("option[value^=mrs i]").forEach(N=>{for(var r=D.createElement("option"),p=N.parentNode,o=p.children,t=0;t<o.length;++t)if(/^mx/i.test(o[t].value))return o[t].selected=!0;r.value=r.innerText=N.value.replace(/rs/i,s=>"R"==s[0]?"X":"x"),p.appendChild(r),r.selected=!0})})(document)
#!/bin/bash
IDLES=0
while sleep 30
do
PCT=`top -bn 2 -d 0.1 | grep '^%Cpu' | tail -n 1 | tr :. ' ' | awk '{print$2}'`
if [ $PCT -lt 10 ]
then
IDLES=$[$IDLES+1]
else