jreisinger / checkip Goto Github PK
View Code? Open in Web Editor NEWGet (security) info about IP addresses
License: MIT License
Get (security) info about IP addresses
License: MIT License
$ checkip $(dig +short checkip.amazonaws.com)
checkip: wrong IP address: checkip.check-ip.aws.a2z.com.
checkip: wrong IP address: checkip.eu-west-1.prod.check-ip.aws.a2z.com.
checkip: downloading https://iptoasn.com/data/ip2asn-combined.tsv.gz
checkip: downloading https://iplists.firehol.org/files/firehol_level1.netset
checkip: downloading https://download.db-ip.com/free/dbip-city-lite-2022-10.mmdb.gz
checkip: downloading https://download.db-ip.com/free/dbip-city-lite-2022-10.mmdb.gz
checkip: downloading https://download.db-ip.com/free/dbip-city-lite-2022-10.mmdb.gz
checkip: downloading http://cinsscore.com/list/ci-badguys.txt
checkip: downloading https://iplists.firehol.org/files/firehol_level1.netset
checkip: downloading https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt
checkip: downloading https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt
checkip: downloading https://iptoasn.com/data/ip2asn-combined.tsv.gz
checkip: downloading https://iplists.firehol.org/files/firehol_level1.netset
checkip: downloading https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt
checkip: downloading https://iptoasn.com/data/ip2asn-combined.tsv.gz
checkip: downloading http://cinsscore.com/list/ci-badguys.txt
checkip: downloading https://download.db-ip.com/free/dbip-city-lite-2022-10.mmdb.gz
checkip: downloading http://cinsscore.com/list/ci-badguys.txt
checkip: downloading http://cinsscore.com/list/ci-badguys.txt
checkip: downloading https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt
checkip: downloading https://iplists.firehol.org/files/firehol_level1.netset
checkip: downloading https://iptoasn.com/data/ip2asn-combined.tsv.gz
checkip: downloading http://cinsscore.com/list/ci-badguys.txt
checkip: downloading https://download.db-ip.com/free/dbip-city-lite-2022-10.mmdb.gz
checkip: downloading https://iptoasn.com/data/ip2asn-combined.tsv.gz
checkip: downloading https://raw.githubusercontent.com/stamparm/ipsum/master/ipsum.txt
checkip: downloading https://iplists.firehol.org/files/firehol_level1.netset
I would like to recommend ipinfo.io for the IP data.
Usage example:
curl https://ipinfo.io/8.8.8.8
{
"ip": "8.8.8.8",
"hostname": "dns.google",
"anycast": true,
"city": "Mountain View",
"region": "California",
"country": "US",
"loc": "37.4056,-122.0775",
"org": "AS15169 Google LLC",
"postal": "94043",
"timezone": "America/Los_Angeles"
}
Documentation: https://ipinfo.io/developers
Free IP databases: https://ipinfo.io/products/free-ip-database
nitefood/asn is mentioned in #41. The project is switching to IPinfo for their IP data as well: nitefood/asn#67 (comment)
Consider including IPinfo in the project for accurate data and generous free access. Please let me know what you think. Thank you very much.
What are those unreadable strings?
$ checkip -j 1.1.1.1 | jq -r '.checks[12].info.data.attributes.last_https_certificate.extensions'
{
"subject_alternative_name": [
"cloudflare-dns.com",
"*.cloudflare-dns.com",
"one.one.one.one",
"\u0001\u0001\u0001\u0001",
"\u0001\u0001",
"\\xa2\\x9f$\\x01",
"\\xa2\\x9f.\\x01",
"&\u0006GG\u0011\u0011",
"&\u0006GG\u0010\u0001",
"GGd",
"GGd"
]
}
❯ checkip -a 142.251.209.14 > /dev/null
checkip: ThreatCrowd: Get "https://www.threatcrowd.org/searchApi/v2/ip/report?ip=142.251.209.14": x509: “*.otxb.io” certificate name does not match input
Several people on reddit asked for flag that would make output in JSON. This might be useful within scripts/pipelines.
When running make run
too many times I get:
checkip: calling https://www.virustotal.com/api/v3/ip_addresses/218.92.0.158: 429 Too Many Requests
Cache responses for some time to prevent this.
The windows build doesn't function properly.
It tries using unix paths:
checkip.exe: IPSum: searching 1.1.1.1 in /var/tmp/ipsum.txt: open /var/tmp/ipsum.txt: The system cannot find the path specified.
checkip.exe: DBip: can't load DB file /var/tmp/dbip-city-lite.mmdb: open /var/tmp/dbip-city-lite.mmdb: The system cannot find the path specified.
checkip.exe: IPtoASN: searching 1.1.1.1 in /var/tmp/ip2asn-combined.tsv: open /var/tmp/ip2asn-combined.tsv: The system cannot find the path specified.
checkip.exe: CinsScore: searching 1.1.1.1 in /var/tmp/cins.txt: open /var/tmp/cins.txt: The system cannot find the path specified.
checkip.exe: MaxMind: open /var/tmp/GeoLite2-City.mmdb: The system cannot find the path specified.
https://iplists.firehol.org/ contains IP addresses of anonymous proxies (similar to TOR exit nodes)
https://osintframework.com/ => IP address
i want to update version in my pc.
i download it with wget(windows) then extract it in previously directory.
PS C:\Portables\Tools> .\checkip.exe
Program 'checkip.exe' failed to run: Access is deniedAt line:1 char:1
+ .\checkip.exe
+ ~~~~~~~~~~~~~.
At line:1 char:1
+ .\checkip.exe
+ ~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException
+ FullyQualifiedErrorId : NativeCommandFailed
i search a clue about wich file are denies but no luck.
i have .checkip.yaml in same directory also i copied it in to my user path. c:\users\yunus.checkip.yaml
do you have any idea how can i run it. ?
$ checkip 1.1.1.1
checkip: ThreadCrowd: Get "https://www.threatcrowd.org/searchApi/v2/ip/report?ip=1.1.1.1": x509: “*.otxb.io” certificate name does not match input
<...SNIP...>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.