Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am nyangawa on github.
  • I am nyangawa (https://keybase.io/nyangawa) on keybase.
  • I have a public key whose fingerprint is DA00 EF1F E192 9986 0B5A 616F CDA4 0F96 20B8 761E

To claim this, I am signing this object:

@Nyangawa
Nyangawa / nflog.diff
Created August 10, 2017 08:43
NFLOG support for google/gopacket
diff --git a/layers/enums.go b/layers/enums.go
index f28bcbd..85f40e2 100644
--- a/layers/enums.go
+++ b/layers/enums.go
@@ -129,6 +129,7 @@ const (
LinkTypeLinuxUSB LinkType = 220
LinkTypeIPv4 LinkType = 228
LinkTypeIPv6 LinkType = 229
+ LinkTypeNFLOG LinkType = 239
)
cat /etc/sudoers
@Nyangawa
Nyangawa / semtex.c
Last active January 4, 2018 05:32
semtex.c
/*
* linux 2.6.37-3.x.x x86_64, ~100 LOC
* gcc-4.6 -O2 semtex.c && ./a.out
* 2010 sd@fucksheep.org, salut!
*
* update may 2013:
* seems like centos 2.6.32 backported the perf bug, lol.
* jewgold to 115T6jzGrVMgQ2Nt1Wnua7Ch1EuL9WXT2g if you insist.
*/