Menu

Home

Rohit Paniker
Attachments
InfoSniper.py (12876 bytes)

IP Geolocation Tool+API for Python is a Python API which can be used to trace IP Addresses. It was written using some hacks and tweaks of HTTP Protocol. There used to be times when i desperately needed free open source APIs for python and other languages and used to search the whole web for hours and hours searching for any open source API which can be used in my apps/projects. Even after doing so i never found any free or Open Source APIs for specific language. All i found was APIs for Java Script to be used with websites and HTML Code Embed Tags. Then out of frustration came up with idea and decided to write my own custom API in my favorite language Python so the coder/programmers like me never suffers the pain of searching for open source free APIs. Nevertheless i started off with cracking and hacking up HTTP header of an IP Information providing site called http://www.infosniper.net/ and sniffing around and through its HTTP Header data, Analyzing its contents and noting down all required data positions and their possible start and end points to be used with the filter algorithm so that the code doesn't outputs unnecessary unfiltered data. Coming up with ideas and thinking on how to grab and filter the IP Information flowing back and forth the HTTP Header, coming up with solutions and designing my imagination properly. Finally i fired up my favorite IDE(At the time of writing it was Eclipse) and started writing big chunks of python codes and info filtering algorithms, worked on CUI looks as well, Debugged bugs and fixed unfiltered unnecessary outputs. And here i finally came up with my new creation which u can see above. :D if u would like to try out my code just visit this site and download or copy paste it.. Its free and open-source.

                    Instructions For experienced  users :

Option 1 : Traces Your IP Address and grab's information about it . Pass numerical 1 as its argument:

                      C:\Python27>Python InfoSniper.py 1

Option 2 : By passing numerical 2 value as argument this let you enter other or specific IP and get info on it:

                      C:\Python27>Python InfoSniper.py 2