Skip to content

Instantly share code, notes, and snippets.

View BlueSedDragon's full-sized avatar

FL.YL.BANxS BlueSedDragon

View GitHub Profile
@BlueSedDragon
BlueSedDragon / httpilltun.js
Created August 27, 2020 14:26
httpilltun.js
const process = require('process');
process.on('uncaughtException', console.error);
// used for the httpilltun itself.
const http = require('http');
const websocket = require('./node_modules/websocket');
const stream = require('stream');
const fs = require('fs');
const https = require('https');
const url = require('url');
#!/usr/bin/env python3
from time import time, sleep
try:
from time import time_ns
except ImportError:
def time_ns(): return int(str(time()).replace('.', ''))
from socket import socket, timeout, AF_INET, AF_INET6, SOCK_DGRAM, SOCK_STREAM
from threading import Thread