Skip to content

Commit

Permalink
remove tcpports check
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed Apr 26, 2022
1 parent b407893 commit 21cd4f6
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 116 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ You can also use environment variables with the same names.

## Development

Checkip is easy to extend. If you want to add a new way to check an IP address, just write a function of type [Check](https://pkg.go.dev/github.com/jreisinger/checkip#Check). Consider adding the check to `check.Default` [variable](https://pkg.go.dev/github.com/jreisinger/checkip/check#pkg-variables).
Checkip is easy to extend. If you want to add a new way of checking an IP address, just write a function of type [Check](https://pkg.go.dev/github.com/jreisinger/checkip#Check). Add the new check to `check.All` [variable](https://pkg.go.dev/github.com/jreisinger/checkip/check#pkg-variables) and consider adding it to `check.Default` variable.

```
make run # test, install and run
Expand Down
3 changes: 1 addition & 2 deletions check/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"github.com/jreisinger/checkip"
)

// All contains all available checks, except for TcpPorts that scans the target.
// All contains all available checks.
var All = []checkip.Check{
AbuseIPDB,
BlockList,
Expand All @@ -22,7 +22,6 @@ var All = []checkip.Check{
Ping,
Shodan,
ThreadCrowd,
// TcpPorts,
Tls,
UrlScan,
VirusTotal,
Expand Down
109 changes: 0 additions & 109 deletions check/tcpports.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/checkip/checkip.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func init() {
log.SetPrefix(os.Args[0] + ": ")
}

var a = flag.Bool("a", false, "run all checks except for TcpPorts")
var a = flag.Bool("a", false, "run all available checks")
var j = flag.Bool("j", false, "output all results in JSON")
var c = flag.Int("c", 5, "number of concurrent checks")

Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ go 1.18

require (
github.com/go-ping/ping v0.0.0-20211014180314-6e2b003bffdd
github.com/jreisinger/nmapservices v0.1.2
github.com/oschwald/geoip2-golang v1.5.0
github.com/stretchr/testify v1.7.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ github.com/go-ping/ping v0.0.0-20211014180314-6e2b003bffdd h1:WwvAAgvP2MO5bxYtSl
github.com/go-ping/ping v0.0.0-20211014180314-6e2b003bffdd/go.mod h1:xIFjORFzTxqIV/tDVGO4eDy/bLuSyawEeojSm3GfRGk=
github.com/google/uuid v1.2.0 h1:qJYtXnJRWmpe7m/3XlyhrsLrEURqHRM2kxzoxXqyUDs=
github.com/google/uuid v1.2.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/jreisinger/nmapservices v0.1.2 h1:I0W1uEcipojtI8CpcRBuLh6pKA5v1LG1MOnj1E4MaMw=
github.com/jreisinger/nmapservices v0.1.2/go.mod h1:THd4lTeAoL7N7hLl0ObImf/xVLFVPGmEJR54p+AH//c=
github.com/oschwald/geoip2-golang v1.5.0 h1:igg2yQIrrcRccB1ytFXqBfOHCjXWIoMv85lVJ1ONZzw=
github.com/oschwald/geoip2-golang v1.5.0/go.mod h1:xdvYt5xQzB8ORWFqPnqMwZpCpgNagttWdoZLlJQzg7s=
github.com/oschwald/maxminddb-golang v1.8.0 h1:Uh/DSnGoxsyp/KYbY1AuP0tYEwfs0sCph9p/UMXK/Hk=
Expand Down

0 comments on commit 21cd4f6

Please sign in to comment.