Skip to content

Instantly share code, notes, and snippets.

View jedisct1's full-sized avatar

Frank Denis jedisct1

View GitHub Profile
diff --git a/Cargo.toml b/Cargo.toml
index 5f580b6..984b476 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -35,7 +35,7 @@ rayon = { version = "1.7.0", optional = true }
# dependencies required if feature "prio2" is enabled
aes-gcm = { version = "^0.10", optional = true }
-ring = { version = "0.16.20", optional = true }
+ring = { package = "ring-wasi", version = "0.16.25", optional = true }
#include <errno.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "src/aegis128l/aegis128l.h"
static void
dump(const uint8_t *x, size_t len)
@jedisct1
jedisct1 / top-ndomain.tsv
Created June 18, 2013 21:54
Top 1000 nonexistent TLDs that we are seeing DNS queries for.
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 2. in line 2.
% domain name
---------------
15. notinuse
14. null
12. local
2.6 localdomain
2.4 home
2. lan
1.4 nda-hclin-ns01
0.87 belkin
@jedisct1
jedisct1 / lucet-ondemand.md
Last active February 5, 2023 14:07
Run WebAssembly files like standard executable files on Linux, using Lucet

The following instructions require Lucet, although they can be easily adapted to other WebAssembly runtimes.

Save the following script as /opt/lucet/bin/lucet-ondemand:

#! /bin/sh

wasm_file="$1"
if [ -n "$wasm_file" ]; then
  if od -x "$wasm_file" | head -n1 | grep -Fq '0000000 6100 6d73 0001'; then
$ redis-cli -h debaser keys '*paypal*'
paypal.com.0.security-confirmation.88052b22c8c2349c0599bd39a654c534.343.2u.se. A
paypal.com.cgi.bin.webscr.cmd.login.submit.dispatch.5105241541858541524185418541854104524158234.printanario.pt. A
abgleich-paypal.e7.to. A
paypal.com.login.webscr.flow.session.kf95piozhyz4mvqgf5q.dispatch.588fef.b7e9fe6.ku.52rt54gh4s6h54fd5h46rd54h6df54.h65sf465.hhg465sf4t6j5s4y6.n54q6sr54g6ez54h6q54tej5r646jr84y654nd6fsqj5r646jr84y654nd6f.animaedu.com. A
myaccount.online.paypal.comafraidgerty.ns360.info. A
paypalcraze.com. A
checker-paypal.tk. A
secure.paypalsecurity980222.cf. A
@jedisct1
jedisct1 / long-domain-names.txt
Last active November 26, 2022 19:34
Long domain names are long. Hopeless SEO, domains registered by cats and WTF domains.
1-tr-18su-ka-8dow-56-oo9-13swx-r-k-ife-0nj-rnq-ihb-dd-p-1-0-z-a.info.
292fu2013-1-2-3-htt-4t3l60-zqn673-w9gp7kip0422wemrzsftm-htm-com.info.
aljumahiriyahalarabiyahallibiyahashshabiyahalishtirakiyahaluzma.info.
anderson-piedmont-spartanburg-greenville-easley-spine-pain-care.info.
associationfrancaisedesdirecteursdelaphotographiedelatelevision.info.
audio-player-zawqkerrhfoepdnmvbdkslahgjvklahjkfqqqojcgrtsksmcls.info.
ausencosandwellascentisaaxwaynegossruddswanheinercrimemellifont.info.
australianpublicsectoranti-corruptionconference2009fraudrortsin.info.
bewarecrimestoppersassistcorruptpolicepoliticcrimecriminalfraud.info.
camp-the-lycian-way-camps-the-lycian-way-camping-lycian-way-map.info.
cargo vet diff aead 0.4.3 0.5.1 (used by aes-gcm, chacha20poly1305)
cargo vet diff aes 0.7.5 0.8.2 (used by aes-gcm)
cargo vet diff aes-gcm 0.9.4 0.10.1 (used by wasi-crypto)
cargo vet diff base64ct 1.1.1 1.5.3 (used by spki, pem-rfc7468)
cargo vet diff bindgen 0.59.2 0.60.1 (used by boring-sys)
cargo vet diff chacha20 0.8.1 0.9.0 (used by chacha20poly1305)
cargo vet diff chacha20poly1305 0.9.0 0.10.1 (used by wasi-crypto)
cargo vet diff cipher 0.3.0 0.4.3 (used by aes, ctr, aes-gcm, and 2 others)
cargo vet diff const-oid 0.6.2 0.9.1 (used by der, digest)
cargo vet diff crypto-bigint 0.2.11 0.4.9 (used by rfc6979, e
@jedisct1
jedisct1 / tweetnacl-indented.c
Last active November 12, 2022 18:02
Indented version of @TweetNacl
#include "tweetnacl.h"
#define FOR(i,n) for (i = 0;i < n;++i)
#define sv static void
typedef unsigned char u8;
typedef unsigned int u32;
typedef unsigned long long u64;
typedef long long i64;
typedef i64 gf[16];
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef USE_WOLFSSL
#include <wolfssl/options.h>
#endif
#include <openssl/ssl.h>
diff --git a/src/Compilation.zig b/src/Compilation.zig
index b00f13581..4e21245f4 100644
--- a/src/Compilation.zig
+++ b/src/Compilation.zig
@@ -4474,7 +4474,7 @@ fn detectLibCIncludeDirs(
// If linking system libraries and targeting the native abi, default to
// using the system libc installation.
- if (link_system_libs and is_native_abi and !target.isMinGW()) {
+ if ((link_system_libs or target.isDarwin()) and is_native_abi and !target.isMinGW()) {