Skip to content

Commit

Permalink
一些小的改动
Browse files Browse the repository at this point in the history
  • Loading branch information
No-Github committed Aug 18, 2022
1 parent 462bf1f commit fa7278c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion engine/fofa.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var fofaRecursion = 0

func TodoFofa() (string, []string) {
fofaRecursion += 1
if fofaRecursion% ones.Recursion == 0 { // 到达最大递归层数,直接退出
if fofaRecursion-ones.Recursion == 0 { // 到达最大递归层数,直接退出
return "", nil
}

Expand Down
4 changes: 2 additions & 2 deletions engine/quake.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var quakeRecursion = 0

func TodoQuake() (string, []string) {
quakeRecursion += 1
if quakeRecursion % ones.Recursion == 0 {
if quakeRecursion%ones.Recursion == 0 {
return "", nil
}

Expand Down Expand Up @@ -45,7 +45,7 @@ func TodoQuake() (string, []string) {
fmt.Println("请求失败:", err.Error())
os.Exit(3)
}

//fmt.Println(string(resp.Body()))
var serviceInfo ones.ServiceInfo
err := json.Unmarshal(resp.Body(), &serviceInfo)
if err != nil {
Expand Down
22 changes: 11 additions & 11 deletions mod/flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package mod
import "flag"

var (
V bool
Fofa string
Quake string
Shodan string
Chaos string
Zoomeye string
Hunter string
Num int
Version = "v1.0.0"
Json string
Txt string
V bool
Fofa string
Quake string
Shodan string
Chaos string
Zoomeye string
Hunter string
Num int
Version = "v1.0.4"
Json string
Txt string
Recursion int
)

Expand Down
2 changes: 1 addition & 1 deletion utils/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func OutputProcess() {
HostSlice = append(TmpSlice)
}
if ones.Hunter != "" {
AllJson, TmpSlice = onese.TodoHunter()
TmpSlice = onese.TodoHunter()
HostSlice = append(TmpSlice)
}
if ones.Shodan != "" {
Expand Down

0 comments on commit fa7278c

Please sign in to comment.