Thursday, December 18, 2008

Introducing.. Name That Apple!

Are you a bit of a public wifi user? Like going to coffee houses that offer free wireless internet? Well if you own a laptop and like to have an excuse to get out of the house, but still be hooked to the internet, you're more than likely a public wifi user. (Or a mooch! :-P )

Being a public wifi-user myself, I love exploring the networks of wireless pubs because they are so dynamic and have so much information flowing over them. At times I've found people sharing music and information.

I wrote 'Name That Apple', because of discovering that you can at times find real names of people who use Macbooks, by trying to connect to them via netcat:

root@somebox:~$nc AppleComputeraddress 3689 -vv

Now the port is not important, you do not need an open port, just specify any port of your desire. You will then get output something like this:

SomePersons-compuer.local inverse host lookup failed:

Now where 'SomePersons' is, is where the actual name of the person who is using an Apple Macbook! (This depends on if they have there user account name as their real name, which most Apple Computer users do.)

So instead manually going through each IP address and testing this.. I decided to write a program that will do this for me.

Requirements:

1.) A Unix like system (I've tested this on Ubuntu and BackTrack, should work on most other *nix systems)

2,) netcat

3.) nmap

Note: You'll want to make sure you have dns-client enabled on your *nix system, without it, all the apple.local names will show up as 'UNKNOWN'

Download NTA.sh right here.

To get it to work:

1.) wget http://zitstif.no-ip.org/nta.tar

2.) tar -xf nta.tar

3.) sudo chmod a+x nta.sh

4.) ./nta.sh

Note: This will only work in a local area network.

 


Sunday, December 21, 2008

IPChicken

Some times I've found myself at the command line under *nix and wanted to know my WAN ip address. Sure, you can just open up lynx / links2 to a ipchicken.com or even log into your router, but what if you didn't have access to the router, and you only had basic *nix tools including wget at your disposal? Well this is a very short and simple script that I wrote to fix this problem. I call it ipchicken, and I wrote it as a compliment of ipchicken.com. So if they want the rights to this program or what have you, they are more than welcome to do as they please. I wrote this merely for the purpose of entertainment.

Requirements:

1.) You should only really need wget. (If you don't have awk or grep, then you're in serious trouble!)

To get it to work:

1.) wget http://zitstif.no-ip.org/ipchicken.tar

2.) tar -xf ipchicken.tar

3.) sudo chmod a+x ipchicken

4.) ./ipchicken

Download ipchicken right here.