Skip to content

Instantly share code, notes, and snippets.

@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();
@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%;
}
#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 / 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,"");
}
const lib_discord = require("discord.js");
const readline = require("readline");
var interFace = readline.createInterface({
input: process.stdin,
output: process.stdout
});
interFace.question("Token? ", (token) => {
interFace.close();
#include <iostream>
using namespace std;
#include <stdio.h>
#include <stdlib.h>
#include <curses.h>
#include <term.h>
static char term_buffer[2048];
void initTerminalData (void) {
const lib_crypto = require("crypto");
let mode = 0; // 0: bruteforce, 1: dictonary, 2: rainbow
let hashes = [
"86a1ea3adf8fbb53eb7a9b6b6b01c020", "099b3b060154898840f0ebdfb46ec78f",
"912ec803b2ce49e4a541068d495ab570", "1a1dc91c907325c69271ddf0c944bc72",
"81dc9bdb52d04dc20036dbd8313ed055", "3d3e47f4b9143d4d788b5bda77ba41f9",
"902fbdd2b1df0c4f70b4a5d23525e932", "4a7d1ed414474e4033ac29ccb8653d9b",
"912ec803b2ce49e4a541068d495ab570", "6d87a19f011653459575ceb722db3b69",
"9996535e07258a7bbfd8b132435c5962", "17d33d006957f5528a413429c3049b35"];
let cracked = {};
import hashlib
hashes = ["86a1ea3adf8fbb53eb7a9b6b6b01c020", "099b3b060154898840f0ebdfb46ec78f", "912ec803b2ce49e4a541068d495ab570", "1a1dc91c907325c69271ddf0c944bc72", "81dc9bdb52d04dc20036dbd8313ed055", "3d3e47f4b9143d4d788b5bda77ba41f9", "902fbdd2b1df0c4f70b4a5d23525e932", "4a7d1ed414474e4033ac29ccb8653d9b", "912ec803b2ce49e4a541068d495ab570", "6d87a19f011653459575ceb722db3b69", "9996535e07258a7bbfd8b132435c5962", "17d33d006957f5528a413429c3049b35"]
index = [0]
charset = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
# Increments the character by one
def incrementChar():
index[0] += 1
for pos in range(len(index)):
@bitnetwork
bitnetwork / server.js
Created March 7, 2017 23:30
Android created Gist
var lib_http = require("http");
var lib_fs = require("fs");
var lib_path = require("path");
var lib_websocket = require("websocket");
var lib_chalk = require("chalk");
var https = lib_http.createServer(function(request, response) {
var filePath = "." + request.url;
if (filePath === "./") {
filePath = "./index.html";
class Pixel {
constructor(options = {}) {
this.character = options.character || null;
this.color = options.color || null;
this.background = options.background || null;
}
merge(pixel) {
if (pixel.character !== null) {
this.character = pixel.character;