Skip to content

Instantly share code, notes, and snippets.

View jmcph4's full-sized avatar

Jack McPherson jmcph4

View GitHub Profile
@jmcph4
jmcph4 / guess.c
Created July 4, 2024 04:34
Guess a 4-digit PIN
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define MAX_PIN 9999
int main(int argc, char** argv) {
if (argc != 2) {
printf("usage: guess pin\n");
return EXIT_FAILURE;
https://asciinema.org/a/XZVTLthgtqhFCTm9NY1W39VUo
@jmcph4
jmcph4 / relay-security-pwns.md
Created July 1, 2024 23:28
List of vulnerabilities in PBS relay implementations
=== Statistics for Blocks 20159075 - 20159576 ===
TOTAL: 501
rsync-builder: 119 (23.75%)
Builder0x69: 1 (0.20%)
Titan Builder: 131 (26.15%)
beelder.eth: 1 (0.20%)
a local builder: 28 (5.59%)
Bob The Builder: 1 (0.20%)
Nethermind: 14 (2.79%)
JetBuilder: 12 (2.40%)
@jmcph4
jmcph4 / block-building-reading-list.md
Last active June 26, 2024 02:11
In no particular order, a reading list on the topic of Ethereum block building
[package]
name = "mania"
version = "0.1.0"
edition = "2021"
[dependencies]
reth-primitives = { git = "https://github.com/paradigmxyz/reth", rev = "c008a1fa0990089e96c7f7661587ac080fbea4c5" }
secp256k1 = { version = "0.29", default-features = false, features = ["global-context", "recovery"] }
[patch.crates-io]
@jmcph4
jmcph4 / Cargo.toml
Last active June 1, 2024 07:24
Start Lighthouse programmatically
[package]
name = "hookable"
version = "0.1.0"
edition = "2021"
[dependencies]
eyre = "0.6.12"
tokio = { version = "1.38.0", features = ["full"] }
slog = "2.7.0"

References

  1. F. D'Amato and M. Neuder. "Equivocation attacks in mev-boost and ePBS" Ethereum Research. https://ethresear.ch/t/equivocation-attacks-in-mev-boost-and-epbs/15338 (accessed May 15, 2023).
  2. R. Miller. "Post mortem: April 3rd, 2023 mev-boost relay incident and related timing issue." The Flashbots Collective. https://collective.flashbots.net/t/post-mortem-april-3rd-2023-mev-boost-relay-incident-and-related-timing-issue/1540 (accessed May 15, 2023).
  3. M. Sproul. "Unbundling attacks on MEV relays using RPC" Lighthouse Blog. https://lighthouse-blog.sigmaprime.io/mev-unbundling-rpc.html (accessed May 11, 2023).
  4. D. Marzec and L. Thibault. "Subverting the total eclipse (of the heart)" HackMD. [https://hackmd.io/@dmarz/total-eclipse-o
digraph asset_graph {
node [shape = circle] "GBP" "USD" "JPY" ;
"GBP" -> "USD" [label = "1.25"];
"JPY" -> "GBP" [label = "0.01"];
"USD" -> "JPY" [label = "76.92307692307692"];
"USD" -> "GBP" [label = "0.8"];
"GBP" -> "JPY" [label = "100"];
"JPY" -> "USD" [label = "0.013"];
}