Skip to content

Commit

Permalink
Add JSON example to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger authored Nov 16, 2022
1 parent aa6afd7 commit c247a48
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Sometimes I come across an IP address, for example when reviewing logs. And I want to know something more about it. Checkip is CLI tool and Go library that provides generic and security information about IP addresses in a quick way.

```
```sh
$ checkip 91.228.166.47
--- 91.228.166.47 ---
db-ip.com Petržalka, Slovakia
Expand All @@ -18,6 +18,41 @@ tls TLS 1.3, exp. 2023/01/02, www.eset.com, eset.com
malicious 0% (0/8) ✅
```

```sh
$ checkip -j 34.250.182.30 | jq '.checks[] | select(.type > 0 and .malicious == true)'
{
"name": "shodan.io",
"type": 2,
"malicious": true,
"info": {
"org": "Amazon Data Services Ireland Limited",
"data": [
{
"product": "lighttpd",
"version": "1.4.53",
"port": 80,
"transport": "tcp"
},
{
"product": "AWS ELB",
"version": "2.0",
"port": 443,
"transport": "tcp"
}
],
"os": "",
"ports": [
80,
443
],
"vulns": [
"CVE-2022-22707",
"CVE-2019-11072"
]
}
}
```

See Wiki for more [usage examples](https://github.com/jreisinger/checkip/wiki/Usage-examples).

## Installation
Expand Down

0 comments on commit c247a48

Please sign in to comment.