So, I have a webserver running at my school, which is located in the comm tech room. It hosts a few things, like the school's website and my own custom 'software'. However (and this is where the nerdy part comes in) I forgot the IP for it (the domain is dodgy still), so guess what I did.
If you guessed "go down to the comm tech room, type 'ifconfig' in the terminal, and remember that", you're incorrect. Nope. That would be too simple. Too normal! Bah, I scoff at the mainstream way of doing things. I'm a hipster nerd.
What I did was this:
I installed XAMPP on the school computer I was using
I wrote a quick 15-liner in PHP that would scan the school's network for webservers (simply file_get_contents the IP, and return results with !=null). Not only did I find my webserver way down the list (I scanned xxx.xxx.xxx.[0-255] to make it faster), I also found some fun stuff.
Teamviewer websevers, phone access webservers, ftp gateway things that I was very surprised to see unlocked, and things like that. Does my school network really suck that badly to allow me, in 5 minutes, scan the network efficiently to find all accessible web resources for me to then check read/write permissions on all files (because they exist on the same network) using simple scandir() and is_writable() calls?
Very bad, I'd say.
What are your experiences with nerd-dom? Have you ever done anything in the nerd way instead of the 'easy', 'normal' (array  ) way?
Last edited by Physicsguy; 11-17-2011 at 10:54 PM..
|