Skip to content

Instantly share code, notes, and snippets.

@daniel-j
Last active December 22, 2015 23:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniel-j/6548548 to your computer and use it in GitHub Desktop.
Save daniel-j/6548548 to your computer and use it in GitHub Desktop.
dbwebb grill ht13 solver
#!/usr/bin/env node
// By djazz
// http://djazz.mine.nu
var net = require('net');
var cmd = new Buffer(new Buffer("げ啖䕉卒ㅔ兂噒獉啒儱䙖杫䙒偊䙕䙂楕䡸噒村こ婖䙌呖卒䱂噒杫ご朴け偸さ啖䕌䙤䍖佂啑䈱噕䉖䙌呖卒佂啑䈱噕䉖䕉伹䕉圹啒猴噖䙎䕉䈵啔剆啖杅ご朴歑倹䕖獧ㅔ䙂楔呂啑䙚䕌䙤䍖兂噑䙂汕獍啓吵噒啊䕉佬䕖朸歑倹祓兂噑䙂汕獍げ啖䙉䉒歑䙸䕌卒ㅔ杁啑䵸䙉䉒歑䙸祕䙸䕗啬䙉䙰歕㴸" , "ucs2").toString(), "base64").toString().split(",");
var client = net.connect(2323, "dbwebb.se", function () {
setTimeout(doCommand, 2000);
});
client.pipe(process.stdout);
function doCommand() {
var buf = new Buffer(cmd.shift().toUpperCase()+"\r\n");
process.stdout.write(buf.toString());
client.write(buf);
if (cmd.length === 0) return;
setTimeout(doCommand, 500);
}
#!/usr/bin/env node
var net = require('net');
// Om du inte har telnet, använd detta script ;)
var client = net.connect(2323, "dbwebb.se");
client.pipe(process.stdout);
process.stdin.on('data', function (data) {
client.write(data.toString().trim().toUpperCase()+"\r\n");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment