Skip to content

Instantly share code, notes, and snippets.

View alpominth's full-sized avatar

Hamilton P. alpominth

  • A city in Spain
  • 06:27 (UTC +02:00)
View GitHub Profile
@markusfisch
markusfisch / README.md
Last active November 2, 2023 10:49
Force any binary to use a specific network interface in Linux

setnif

Force any binary to use a specific network interface.

Requires gcc and bash. Linux only.

Usage:

$ sudo ./setnif.sh eth1 curl www.google.com
@jiahuif
jiahuif / main.go
Created October 16, 2017 06:00
golang: tunnel tcp over socks5
package main
import (
"flag"
"io"
"net"
"time"
log "github.com/sirupsen/logrus"
"golang.org/x/net/proxy"
@stbuehler
stbuehler / .gitignore
Last active November 2, 2023 10:58 — forked from markusfisch/README.md
Force any binary to use a specific network interface in Linux
*.so