├── go.mod ├── README.md └── main.go /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/vsec7/revip 2 | 3 | go 1.18 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # revip 2 | revip is a simple GO tool for reverse IP domain checker (scrap from rapiddns.io) 3 | 4 | Created By viloid (github.com/vsec7) 5 | 6 |
7 | 8 |
9 |
10 | ## • Requirement
11 | > go version: go1.18+
12 |
13 | ## • Installation
14 | ```
15 | go install -v github.com/vsec7/revip@latest
16 | ```
17 |
18 | ```bash
19 |
20 | revip (Reverse IP)
21 |
22 | By : github.com/vsec7
23 |
24 | Basic Usage :
25 | ▶ echo domain.com | revip
26 | ▶ cat listurls.txt | revip
27 |
28 | Options :
29 | -o, --output Output to file
30 |
31 | ```
32 |
33 |
34 | ## • Donate
35 |
36 | SOL Address : viloid.sol
37 |
38 | EVM Address : viloid.bnb | viloid.arb
--------------------------------------------------------------------------------
/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "bufio"
5 | "flag"
6 | "fmt"
7 | "io/ioutil"
8 | "net/http"
9 | "os"
10 | "regexp"
11 | "strings"
12 | "sync"
13 | )
14 |
15 | func revip(s string) [][]string {
16 | client := &http.Client{}
17 | req, _ := http.NewRequest("GET", "https://rapiddns.io/sameip/"+s+
18 | "?full=1#result", nil)
19 | res, err := client.Do(req)
20 | if err != nil {
21 | }
22 | defer res.Body.Close()
23 |
24 | re := regexp.MustCompile(`\n