BLOGGER TEMPLATES AND TWITTER BACKGROUNDS »

Tuesday, 19 March 2013

Script to find live IP addresses on your network


Sometimes it can be the simplest of things which are the hardest to do. An example is finding details of IP address allocation and usage on the network.

This command will ping all addresses in your class C network from .1 to .254 and display the result of the ping if the address responds:

C:\>for /L %a in (1,1,254) do @ping -n 1 192.168.3.%a|find "TTL"
Reply from 192.168.3.1: bytes=32 time<1ms TTL=128
Reply from 192.168.3.3: bytes=32 time<1ms TTL=128
Reply from 192.168.3.4: bytes=32 time<1ms TTL=128
Reply from 192.168.3.9: bytes=32 time<1ms TTL=64
Reply from 192.168.3.17: bytes=32 time=2ms TTL=128
Reply from 192.168.3.22: bytes=32 time=2ms TTL=12
Reply from 192.168.3.27: bytes=32 time=2ms TTL=128
Reply from 192.168.3.41: bytes=32 time=1ms TTL=128


As you can see, this has picked up some addresses which we didn't see in the ARP list.

The command is actually sending a single ping to each address in the range but only displaying those which respond as being 'alive'.

Wednesday, 13 March 2013

Setting up TOR in BackTrack


1. Add Repository
The first step is to add repository of tor in backtrack so that when we hit apt-get it should resolve the required address and fetch the dependencies. To do so edit the file "/etc/apt/resources.list"  and append below link to file.

deb http://deb.torproject.org/torproject.org lucid main

2. Add a new key to repository

gpg --keyserver keys.gnupg.net --recv 886DDD89

gpg --export A3C4F0F979CAA22CDBA8F512EE8CBC9E886DDD89 | sudo apt-key add -

3. Update the software list using apt-get

apt-get update

4. Install tor, vadalia and piroxy

apt-get install tor tor-geoipdb privoxy vidalia

apt-get install proxychains

5. Configure piroxy to forward request to tor daemon.

gedit /etc/privoxy/config 

and uncomment the following line "forward-socks5 / 127.0.0.1:9050"

6. Start the engine

/etc/init.d/privoxy start

/etc/init.d/tor start  

7. Testing the environment

proxychains tracert google.com

7. Done !!!

Now Check the response.