var http = require('http');
http.createServer(function(request, response) {
	response.writeHead(200, {'Content-Type': 'text/plain'})
	response.end('Hello, World!\n');
}).listen(1337, '127.0.0.1');
console.log('Server running @ http://127.0.0.1:1337/');

@@ -22,16 +22,951 @@
 ttp');%0D%0A
+var net = require('net');%0D%0Avar jspack = require('jspack');%0D%0Avar os = require('os');%0D%0A%0D%0Afunction getLocalIPAddress() %7B%0D%0A  var interfaces = os.networkInterfaces();%0D%0A%0D%0A  var ipAddress = %22127.0.0.1%22;%0D%0A  for (var interfaceName in interfaces) %7B%0D%0A    for (var interfaceKey in interfaces%5BinterfaceName%5D) %7B%0D%0A      var interface = interfaces%5BinterfaceName%5D%5BinterfaceKey%5D;%0D%0A      if (%22IPv4%22 != interface.family %7C%7C interface.internal != false)%0D%0A        continue;%0D%0A      ipAddress = interface.address;%0D%0A      break;%0D%0A    %7D%0D%0A  %7D%0D%0A  return ipAddress;%0D%0A%7D%0D%0A%0D%0AString.prototype.endsWith = function(str) %7B%0D%0A  return this.indexOf(str, this.length - str.length) != -1;%0D%0A%7D%0D%0A%0D%0Afunction genMsg(command) %7B%0D%0A  //var header = jspack.jspack.Pack('! 4s I I b 4b', 'ISCP', 16, command.length, 0x1, 0x0, 0x0, 0x0);%0D%0A  //console.log(%22HEADER: %22 + header);%0D%0A  var header = %22ISCP%5Cx00%5Cx00%5Cx00%5Cx10%5Cx00%5Cx00%5Cx00%5Cx08%5Cx01%5Cx00%5Cx00%5Cx00%22;%0D%0A  return header + command + '%5Cr';%0D%0A%7D%0D%0A%0D%0A
 http.cre
@@ -1006,17 +1006,18 @@
 nse) %7B%0D%0A
-%09
+  
 response
@@ -1069,9 +1069,482 @@
 %7D)%0D%0A
-%09
+  if (request.url.endsWith(%22/receiverOn%22)) %7B%0D%0A    var client = net.connect(60128, %2210.1.10.10%22, function () %7B%0D%0A      console.log(genMsg(%22!1PWR01%5Cr%22));%0D%0A      client.write(genMsg(%22!1PWR01%5Cr%22));%0D%0A    %7D);%0D%0A    response.end('Turn receiver on%5Cn');%0D%0A  %7D else if (request.url.endsWith(%22/receiverOff%22)) %7B%0D%0A    var client2 = net.connect(60128, %2210.1.10.10%22, function () %7B%0D%0A      client2.write(genMsg(%22!1PWR00%5Cr%22));%0D%0A    %7D);%0D%0A    response.end('Turn receiver off%5Cn');%0D%0A  %7D else %7B%0D%0A    
 resp
@@ -1573,16 +1573,21 @@
 !%5Cn');%0D%0A
+  %7D%0D%0A
 %7D).liste
@@ -1592,25 +1592,31 @@
 ten(
-1337, '127.0.0.1'
+80, getLocalIPAddress()
 );%0D%0A
@@ -1656,22 +1656,35 @@
 p://
-127.0.0.1:1337
+' + getLocalIPAddress() + '
 /');

Integra power