Skip to content

Instantly share code, notes, and snippets.

@gboddin
gboddin / ZFS.md
Created March 3, 2024 15:04
ZFS CKSUM errors on all replicas -> memory corruption

Just dropping my experience here for future readers.

For a while now I was having random file corruption with ZFS:

Once in a while after scrubbing there would be 1 to 5 CKSUM errors found on some files:

   pool: data
 state: ONLINE
status: One or more devices has experienced an error resulting in data
@gboddin
gboddin / 00-MINING.md
Last active January 27, 2024 11:58
Mining optimisation under Linux

Mining under linux

Disclaimer

I'm in no case responsible for fried hardware, erased software or burning down houses. Make sure your miners are always well cooled.

General recommendation

Though you can easily mix nVidia and AMD in the same rig with Linux, it's recommended to use a different thread for each platform so a Driver crash doesn't bring the whole rig down. It should be noted however, that some mining software have trouble when both architecture are found on the same rig.

@gboddin
gboddin / nebula.service
Last active July 28, 2023 20:17
Nebula systemd multinet
# This is a mostly empty service, but allows commands like stop, start, reload
# to propagate to all nebula@ service instances.
[Unit]
Description=Nebula VPN
Documentation=info:nebula
After=network.target
Wants=network.target
[Service]
@gboddin
gboddin / jarm-list.csv
Last active July 25, 2023 00:55
JARM exploration
HASH Description
21d2ad00021d21d00021d2ad21d21df4e3c58923bbd15f0f36892ab3187607 QNAP devices
29d29d00029d29d21c29d29d29d29de89a29da3ee50098446f31579da51a6e Docker registries
29d29d20d29d29d00029d29d29d29d7d36b37b24a2d9588a0b8abfe23303d7 Kubernetes masters
29d29d15d29d29d21c29d29d29d29d7e041aa174fa2d3165f8bda79299bfea Ubiquity/CommVault
2ad2ad0002ad2ad0002ad2ad2ad2ad755a2cec4b52fb1bce1ac7f1e48c8a7d F5?
3fd3fd0003fd3fd0003fd3fd3fd3fd5b4368bf786845fef915ced422fd1b09 Minio
29d29d00029d29d21c42d43d00041db6525da0b3c6db046c54191c7bbf62aa FSecure policy manager
ace
adria
agrajag
alistair
amy
angharad
anubis
apophis
archer
arthur
@gboddin
gboddin / readme.txt
Created February 26, 2022 23:05
mini socks proxy
$ ./proxy 5858
-> open proxy on port 5858
$ curl -x socks5h://<target>:5858 http://192.168.0.1
@gboddin
gboddin / .zshrc
Last active April 29, 2021 07:18
antigen-zsh-config
# this file go in ~/.zshrc
# if you use the debian/ubuntu package zsh-antigen :
source /usr/share/zsh-antigen/antigen.zsh
# otherwise
# source path/to/antigen.zsh
antigen use oh-my-zsh
antigen bundle git
@gboddin
gboddin / gopot.go
Created March 3, 2021 17:03
Go pot
package main
import (
"bufio"
"fmt"
"log"
"net"
"time"
)
var lport = ":8883"
@gboddin
gboddin / probe.sh
Created December 15, 2020 01:32
LeakIX migration to l9
user@leakixsyn001:~$ ulimit -n 4096 ; sudo ./ip4scout random -r 25000 -p 27017,9200|./l9tcpid service --deep-http --max-threads=2048|pv -rabl|tee open.json|./l9explore service --explore-timeout 5s -t 2048 -l|tee leaks.json |./l9filter transform -i l9 -o human
2020/12/15 01:28:56 selected input : l9
2020/12/15 01:28:56 selected output : human
2020/12/15 01:28:56 Recommended blacklist loaded
2020/12/15 01:28:56 30 networks in blacklist
2020/12/15 01:28:56 Loaded 2 ports to scan
2020/12/15 01:28:56 Using source port 7427
2020/12/15 01:28:56 Listening!
IP: 47.104.19.66, PORT:9200, PROTO:elasticsearch, SSL:false
HTTP/1.1 200 OK
@gboddin
gboddin / l9examples.sh
Created December 3, 2020 13:06
l9 examples
ip4scout random -p 3306,9200,5601|l9serviceid|tee services.json|l9explore service --plugin-directory=~/.l9plugins/services > leaks.json