├── requirements.txt ├── setup.bat ├── main.py └── README.md /requirements.txt: -------------------------------------------------------------------------------- 1 | ipinfo 2 | requests -------------------------------------------------------------------------------- /setup.bat: -------------------------------------------------------------------------------- 1 | pip install -r requirements.txt 2 | start cmd.exe /c "python main.py" -------------------------------------------------------------------------------- /main.py: -------------------------------------------------------------------------------- 1 | import requests 2 | import ipinfo 3 | token = 'c7d8b6fbdc8dca' 4 | print("WARNING: LOCATIONS ARE RETRIVED FROM THE ISP, MEANING THAT YOU CANNOT GET THE ADDRESS, THIS ALSO MEANS THAT THE PERSON DOES NOT LIVE WHERE THE IP IS LOCATED") 5 | ip = input("IP ADDRESS:\n") 6 | print("Advanced mode or Simple mode?") 7 | mode = input("Advanced for Advanced or Simple for Simple\n").lower() 8 | if mode == "simple": 9 | handler = ipinfo.getHandler(token) 10 | details = handler.getDetails(ip) 11 | substring1 = "domain" 12 | print("Country: ", details.country_name) 13 | print("Post Code: ", details.postal) 14 | print("Region: ", details.region) 15 | print("City: ", details.city) 16 | 17 | if 'domain' in locals(): 18 | print("Domain: ", details.domain) 19 | print("Coordinates: ", details.loc) 20 | if 'abuse' in locals(): 21 | print("Personal Information: ", details.abuse) 22 | else: 23 | print("No personal information found, this is common") 24 | elif mode == "advanced": 25 | handler = ipinfo.getHandler(token) 26 | details = handler.getDetails(ip) 27 | print(details.all) 28 | input("Press Enter to exit") -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WHAT IS IP-INFO? 2 | 3 | IP-INFO is a tool to get data from an IP, it's a very simple user friendly tool made in [Python](https://www.python.org/doc/essays/blurb/) 4 | 5 | # WHAT DO YOU NEED? 6 | 7 | **IP-INFO Requires:** 8 | 9 | 1. [Python 3](https://www.python.org/downloads/) 10 | 2. An [IP](https://www.google.com/search?client=opera-gx&q=IP&sourceid=opera&ie=UTF-8&oe=UTF-8) to get data from 11 | 3. That's it! 12 | 13 | # HOW IS IT USED? 14 | 15 | 1. Download the files, of course you need the files to use it! 16 | 2. Extract the downloaded files, IP-INFO comes in a [.zip](https://experience.dropbox.com/resources/what-is-a-zip-file) file, you can [extract](https://support.microsoft.com/en-us/windows/zip-and-unzip-files-8d28fa72-f2f9-712f-67df-f80cf89fd4e5) it by right clicking it. 17 | 3. Run setup.bat, [batch](https://en.wikipedia.org/wiki/Batch_file) is a file type that runs commands, this installs all extra required files using Python. 18 | 4. Open main.py, after you complete step 3, IP-INFO will automatically open, after the first time you run it, you will only need to open *main*.py 19 | 5. Enter an IP, you can use [your IP](https://www.google.com/search?client=opera-gx&q=MY%20IP&sourceid=opera&ie=UTF-8&oe=UTF-8) by searching "My IP" on Google, alternatively you can use a websites IP or someone else's IP 20 | 6. Choose between Advanced mode and Simple mode, the difference between them is: simple is much more organized but gives you less information, advanced is much more complicated but more information, you can choose either by typing "Advanced" or "Simple" when the tool prompts you to. 21 | 7. Enjoy, after its complete you can press enter to restart the tool or close the window. 22 | 23 | # DISCLAIMERS 24 | 25 | 1. All information is not collected by me, it is requested from [IPINFO](https://ipinfo.io)'s API 26 | 2. I'm not responsible for what you do with the information. 27 | 3. You can't attack me because someone leaked your info or used your info against you while using this tool. 28 | --------------------------------------------------------------------------------