Created
May 8, 2012 09:04
-
-
Save ericjang/2633760 to your computer and use it in GitHub Desktop.
IP address and stream data logging in NodeJS using the Net module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//note that this is just basic IP address routing. XSS exploit needed for more accurate location. | |
var http = require('http'); | |
var server = http.createServer(function(req,res){ | |
res.writeHead(200); | |
res.end('Hello HTTP'); | |
console.log('client connected! ip address is ' + req.socket.remoteAddress); | |
}); | |
server.listen(8080); | |
console.log('server listening at localhost:8080. Send your victim over!'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment