Skip to content

Instantly share code, notes, and snippets.

@lenew
lenew / go2proxy.go
Last active November 1, 2017 06:14
go2proxy
/**
* simple tcp proxy with timeout failover
* thanks to:
* https://github.com/xtaci/kcptun
* https://github.com/jpillora/go-tcp-proxy
*/
package main
import (
"flag"
//**********************************************************************************
//
//OpenSSLKey
// .NET 2.0 OpenSSL Public & Private Key Parser
//
// Copyright (C) 2008 JavaScience Consulting
//
//***********************************************************************************
//
// opensslkey.cs
@lenew
lenew / AppleIAPVerifyServer.go
Last active March 17, 2018 18:19
Apple IAP Receipt Extract Tool
/*
* A Http Server to verify an Apple IAP Receipt
* Return with Receipts data
* Usage Example: curl -X POST http://127.0.0.1:5000/verifyReceipt -d '{"receipt-data":"apple receipt base64 data"}'
*/
package main
import (
"crypto/rsa"
"crypto/x509"
@lenew
lenew / socks5.go
Last active November 1, 2022 04:11
Transparent socks5 server with route mark
package main
import (
"flag"
"fmt"
"log"
"net"
"os"
"syscall"