Skip to content

Commit

Permalink
minor changes in Makefile, README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed Apr 28, 2022
1 parent 19c6c4f commit f54e4cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@ install: test

run: install
checkip 1.1.1.1
checkip -j 1.1.1.1 | jq -r \
'.checks[] | select(.type==1 or .type==2) | "\(.malicious) \(.name)"'
checkip -j 1.1.1.1 | \
jq -r '.checks[] | select(.type==1 or .type==2) | "\(.malicious) \(.name)"'
./randip 2 | checkip -a -j 2> /dev/null | \
jq -r '"\(.malicious_prob)\t\(.ipaddr)"'
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ Checkip is a CLI tool and library that provides generic and security information

```
$ checkip 1.1.1.1
cert TLS 1.3, exp. 2022/10/25, cloudflare-dns.com, *.cloudflare-dns.com, one.one.one.one
db-ip.com Sydney, Australia
dns name one.one.one.one
iptoasn.com CLOUDFLARENET
ping 0% packet loss (5/5), avg round-trip 20 ms
malicious 0% (0/6) ✅
db-ip.com Sydney, Australia
dns name one.one.one.one
iptoasn.com CLOUDFLARENET
ping 0% packet loss (5/5), avg round-trip 15 ms
tls TLS 1.3, exp. 2022/10/25, cloudflare-dns.com, *.cloudflare-dns.com, one.one.one.one
malicious 0% (0/7) ✅
```

## Usage examples
Expand All @@ -19,10 +19,11 @@ Select Sec (1) and InfoSec (2) check [type](https://pkg.go.dev/github.com/jreisi
```
$ checkip -j 1.1.1.1 | \
jq -r '.checks[] | select(.type==1 or .type==2) | "\(.malicious) \(.name)"'
false firehol.org
false cinsscore.com
false github.com/stamparm/ipsum
false firehol.org
false blocklist.de
false tls
false github.com/stamparm/ipsum
false threatcrowd.org
false otx.alienvault.com
```
Expand Down

0 comments on commit f54e4cd

Please sign in to comment.