Skip to content

Instantly share code, notes, and snippets.

View serverwentdown's full-sized avatar

Ambrose Chua serverwentdown

View GitHub Profile
clear
echo ""
echo " ---- CHECKING MD5 ---- "
echo ""
echo ""
SUM=$(openssl md5 "$2")
BFO="MD5($2)= "
echo "MD5 TO CHECK WITH"
echo "----------------------------------"
echo ""
@serverwentdown
serverwentdown / server.js
Last active January 29, 2019 20:18 — forked from mixonic/server.js
// Bug fixes for current versions.
//
// This server will start a bash shell and expose it
// over socket.io to a browser. See ./term.html for the
// client side.
//
// You should probably:
//
// npm install socket.io
@serverwentdown
serverwentdown / static_server.js
Last active December 26, 2015 14:43 — forked from ryanflorence/static_server.js
Node.JS static file web server. Put it in your path to fire up servers in any directory, takes an optional port argument. (Modded for larger files)
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 4002;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
@serverwentdown
serverwentdown / README.md
Last active August 29, 2015 14:15 — forked from NV/README.md

JavaScript Timer

Run 5 times, with one second delay between calls

t1 = new Timer(500, function(){
  console.log(this.count);
  if (this.count >= 5) {
    this.stop();
  }

});

@serverwentdown
serverwentdown / keyboard_pcap.py
Last active September 15, 2018 12:25 — forked from shahrilnet/keyboard_pcap.py
USB HID PCAP parser for HITB GSEC .edu 2018 - VValueCiphered
from scapy.all import *
from argparse import ArgumentParser
from sys import argv
from collections import OrderedDict
# USB HID Keyboard scan codes
# https://gist.github.com/MightyPork/6da26e382a7ad91b5496ee55fdc73db2
key_hid = {
0x00 : ['', ''], # no key pressed
0x04 : ['a', 'A'],