Skip to content

Instantly share code, notes, and snippets.

@0xef53
0xef53 / ping.go
Created November 9, 2016 07:32 — forked from artyom/ping.go
package main
import (
"fmt"
"net"
"os"
"time"
"golang.org/x/net/icmp"
"golang.org/x/net/ipv4"
@0xef53
0xef53 / proxy.go
Last active August 29, 2015 14:12 — forked from vmihailenco/proxy.go
package main
import (
"bytes"
"encoding/hex"
"flag"
"fmt"
"io"
"log"
"net"
# I didn't write this, I just adapted it from the lenny version: https://gist.github.com/href/54859127c183f67f947f
# inspired by http://askubuntu.com/a/528171
# prerequisites
sudo apt-get install bison
# get bash 3.1 source
mkdir src && cd src
wget http://ftp.gnu.org/gnu/bash/bash-3.1.tar.gz
tar zxvf bash-3.1.tar.gz
/* Copyright (C) 2011 Intel Corporation
Author: Andi Kleen
Set 2.6.x personality
uname26 is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public
License as published by the Free Software Foundation; version
2.
uname26 is distributed in the hope that it will be useful,