Skip to content

Instantly share code, notes, and snippets.

View rikatz's full-sized avatar

Ricardo Katz rikatz

View GitHub Profile
@rikatz
rikatz / dhcpclient.go
Created April 11, 2023 00:47
DHCP Client with fake Mac Address
package main
import (
"flag"
"log"
"net"
"github.com/davecgh/go-spew/spew"
"github.com/insomniacslk/dhcp/dhcpv4"
client4 "github.com/insomniacslk/dhcp/dhcpv4/client4"
@rikatz
rikatz / Hypothesis
Created September 5, 2023 23:02
Broken SSL Passthrough
For the default backend, apparently it is using proxy_protocol. Proxy is not implemented yet, as NGINX does not support setting proxy using a variable.
Probably need to create 2 segregated internal listeners, one with proxy and one without it.
Maybe, if I can already pass inside what backend should be used (a dynamic variable with the script loaded globally? otherwise will have to query the shared map twice)
@rikatz
rikatz / main.go
Created July 8, 2024 21:55
nginx-go-crossplane parser for Lua
package main
import (
"encoding/json"
"fmt"
crossplane "github.com/nginxinc/nginx-go-crossplane"
)
func main() {