{"id":23084556,"url":"https://github.com/scripttiger/ip","last_synced_at":"2026-01-16T00:46:38.353Z","repository":{"id":133916600,"uuid":"99600992","full_name":"ScriptTiger/IP","owner":"ScriptTiger","description":"Tired of paying a subscription service to access an API to resolve geoIP data? Look no further! Resolving locally and maintaining your own database is easier than ever. This repo is everything IP: 32-bit/128-bit calculations, ping monitoring across multiple nodes, IPv4/IPv6 network calculations, geoip lookups.","archived":false,"fork":false,"pushed_at":"2025-01-15T03:40:12.000Z","size":8684,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-09T03:42:10.447Z","etag":null,"topics":["128-bit","32-bit","64-bit","binary","bitwise","conversion","geoip","geoip-lookup","geolite2","geolocation","hexidecimal","ip","ipv4","ipv6","lookup","maxmind","networking","offline","scripttiger"],"latest_commit_sha":null,"homepage":"https://scripttiger.github.io/more/","language":"Batchfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptTiger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-07T17:06:42.000Z","updated_at":"2025-01-15T03:40:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"fe41fc6a-d47d-4d90-ab1b-661f9bca3d18","html_url":"https://github.com/ScriptTiger/IP","commit_stats":{"total_commits":83,"total_committers":1,"mean_commits":83.0,"dds":0.0,"last_synced_commit":"037af0d97f10c33109067f83762e99144999866e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptTiger%2FIP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptTiger%2FIP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptTiger%2FIP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptTiger%2FIP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptTiger","download_url":"https://codeload.github.com/ScriptTiger/IP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247024116,"owners_count":20870935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["128-bit","32-bit","64-bit","binary","bitwise","conversion","geoip","geoip-lookup","geolite2","geolocation","hexidecimal","ip","ipv4","ipv6","lookup","maxmind","networking","offline","scripttiger"],"created_at":"2024-12-16T16:12:15.862Z","updated_at":"2026-01-16T00:46:38.347Z","avatar_url":"https://github.com/ScriptTiger.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Say Thanks!](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://docs.google.com/forms/d/e/1FAIpQLSfBEe5B_zo69OBk19l3hzvBmz3cOV6ol1ufjh0ER1q3-xd2Rg/viewform)\n\n**If you find these scripts useful, you may also be interested in checking out the reference implementation in the goIP repository, which contains much of the same functionality ported to Go and compiled to binaries for much faster results, as well as a REST API available for IP queries.  \ngoIP Reference Implementation: https://github.com/ScriptTiger/goIP/tree/main/ref  \ngoIP Binary Downloads: https://github.com/ScriptTiger/goIP/releases**\n\n**There is also a Java GUI client available as a front end for the REST API:  \nGeoIP: https://github.com/ScriptTiger/GeoIP  \nGeoIP Downloads: https://github.com/ScriptTiger/GeoIP/releases**\n\n# IP\nTired of paying a subscription service to access an API to resolve geoIP data? Look no further! Resolving locally and maintaining your own database is easier than ever. This repo is everything IP: 32-bit/128-bit calculations, ping monitoring across multiple nodes, IPv4/IPv6 network calculations, geoip lookups.\n\nUsing bitwise and otherwise calculations of numbers 32 bits and higher in a 32-bit environment to calculate 32-bit IPv4 and 128-bit IPv6 network information.\n\n7-Zip and wget are also components to this project licensed separately in accordance with their attached documentation.\n\nPing_Test:  \nMonitor continuous ping statistics across a series of nodes.\n\nScript_Calc:  \nCan calculate and convert numbers 32 bits and higher from a 32-bit environment.\n\nNetwork_Calc:  \nCurrently only calculates IPv4. Since IPv4 addresses take up exactly 32 bits, this script requires Script_Calc to accurately calculate the decimal conversion of an IP address because 32-bit environments are limited to only calculate 31-bit numbers because the 32nd bit is used for sign control in designating if a number is positive or negative. The decimal conversion is included in this script for the sole purpose of letting you know what it is, while all other calcluations are bitwise and don't require a decimal conversion. Once IPv6 is also included, Script_Calc will be required for all IPv6 calculations.  \nNote: The reverse IP address decimal conversion (/d /r) intentionally stays within 32-bit limitations to be able to convert to various executable output that stores data as a reverse 32-bit number (i.e. NirSoft/Nir Sofer INI files). The forward decimal conversion is useful for various lookup tables that list networks in decimal (i.e. GeoLite2's optional decimal format).\n\nIP_Search:  \nCurrently only supports searching IPv4 addresses. Thanks to MaxMind, non-numerical data has multilingual support! You can also use this script both interactively and scripted. For scripted searches with pretty output, just send the language and IP to search for to the script like this:  \n`IP_Search.cmd en 8.8.8.8`  \nThe above command will search for 8.8.8.8 (Google DNS) and output the results in English.  \nFor scripted searches in CSV format:  \n`IP_Search.cmd csv 8.8.8.8 C:\\SomeFile.csv`  \nThe above command will search for 8.8.8.8 (Google DNS) and output the results in CSV format to the file C:\\SomeFile.csv. You can optionally not specify a file name to allow output to the console.  \nLanguage options are as follows:  \nde  \nen  \nes  \nfr  \nja  \npt-BR  \nru  \nzh-CN  \nBecause GeoLite2 is the free product from MaxMind, the accuracy is obviously not going to be as good as the paid product, and neither are 100%. The only thing this search script CAN do with nearly 100% accuracy, assuming you have just recently run the Data_Update.cmd, is detect Tor nodes, as the Tor exit node list is provided directly from the Tor Project and is separate from the MaxMind data. The following is the current output of the script:\n\nOutput Field            | Explanation\n------------------------|-------------------------------------------------------------------------------------------------------\n----- WAN Data -----\nWAN:                    | Target IP's parent wide area network\nContinent:              | Continent on which the target IP resides\nCountry:                | Country in which the target IP resides\nSubdivisin 1:           | Major subdivision in which the target IP resides\nSubdivisin 2:           | Minor subdivision in which the target IP resides\nCity:                   | City in which the target IP resides\nMetro Code:             | Metro code to the target IP's surrounding area\nTime Zone:              | Time zone of the target IP's surrounding area\nEU:                     | Is the target IP in the EU (Yes/No)\nRegistered Country:     | Country to which the target IP is registered\n------------------------| Displayed as: Country, Continent (Time zone)\nRepresented Country:    | Foreign national representation possessing the IP\n------------------------| Displayed as: Country, Continent (Time zone)\nKnown Proxy:            | Does the target IP host a known proxy server (Yes/No)\nPost Code:              | Post code to the target IP's surrounding area\nGoogle Maps:            | Google Maps link to view the IP's approximate location\nAccuracy:               | Approximate accuracy of the target IP's location results\n----- ASN Data -----\nASN Network:            | Network to which the target IP's covering ASN spans\nASN:                    | Autonomous system number covering the target IP\nISP:                    | ISP controlling the target IP's covering ASN\n----- Other Data -----\nKnown Tor Exit:         | Does the target IP host a known Tor exit node (Yes/No)\nBlacklisted by Snort:   | Is the target IP blacklisted by Snort (Yes/No)\n\nData_Update.cmd:  \nWill automatically download the latest data from all sources to the Data subdirectory:  \nGeoLite2 (requires free or paid MaxMind license key from https://www.maxmind.com/en/my_license_key written to license_key.txt in the same directory)  \nhttps://check.torproject.org/exit-addresses  \nhttp://reputation.alienvault.com/reputation.data  \nhttps://talosintelligence.com/documents/ip-blacklist\n\n\nThese scripts reference using GeoLite2 data created by MaxMind, available from:  \nhttp://www.maxmind.com\n\nThe GeoLite2 databases are distributed under the Creative Commons Attribution-ShareAlike 4.0 International License.\n\nYou can download this repo from the below link to get started:  \nhttps://github.com/ScriptTiger/IP/archive/master.zip\n\n# More About ScriptTiger\n\nFor more ScriptTiger scripts and goodies, check out ScriptTiger's GitHub Pages website:  \nhttps://scripttiger.github.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscripttiger%2Fip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscripttiger%2Fip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscripttiger%2Fip/lists"}