Skip to content

Instantly share code, notes, and snippets.

@bitnetwork
bitnetwork / server.js
Last active July 8, 2023 21:09
A telnet server written in Node.js
var lib_net = require("net");
var lib_chalk = require("chalk");
var clients = {};
var lastId = -1;
function cleanInput(data) {
return data.toString().replace(/(\r\n|\n|\r)/gm,"");
}
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
using namespace std;
int main(int argLen, char * argVec[]) {
if (argLen <= 1 or strcmp(argVec[1], "--help") == 0) {
@bitnetwork
bitnetwork / hxphack.js
Last active April 30, 2016 18:36
A hackerexperience.com hack dependency html file for the userscript. It may be listed here: //greasyfork.org/en/scripts/by-site/hackerexperience.com
<!DOCTYPE html>
<html>
<head>
<meta name='viewport' content='width=device-width'>
<style>
body {
height: 100%;
width: 100%;
}
@bitnetwork
bitnetwork / wget.js
Last active March 22, 2020 13:37 — forked from udawtr/wget.vbs
wget.js - similar to wget but written in jscript
//wget.js - similar to wget but written in vbscript
//based on a script by Chrissy LeMaire
//forked by Bit
var shell = new ActiveXObject("WScript.shell");
//Usage
if (WScript.Arguments.length < 1) {
shell.Popup("Usage: wget.js <url> (file)");
WScript.Quit();