Skip to content

Commit

Permalink
设置CGO_ENABLED=0 ,避免出现 /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_…
Browse files Browse the repository at this point in the history
…2.34 not found (required by 2022-12-04
  • Loading branch information
hktalent committed Dec 4, 2022
1 parent e1a89f9 commit 85fc9a7
Show file tree
Hide file tree
Showing 9 changed files with 3,833 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/build/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
main: main.go
goos:
- linux
Expand Down
2 changes: 1 addition & 1 deletion .github/build/linuxarm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
main: main.go
goos:
- linux
Expand Down
2 changes: 1 addition & 1 deletion .github/build/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ builds:
- -s -w -X main.Version={{.Version}}
binary: scan4all
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
main: main.go
goos:
- darwin
Expand Down
2 changes: 1 addition & 1 deletion .github/build/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds:
- -s -w
binary: scan4all
env:
- CGO_ENABLED=1
- CGO_ENABLED=0
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
main: main.go
Expand Down
4 changes: 3 additions & 1 deletion doNaabu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ func DoInitAll() {

func TestDoUncover(t *testing.T) {
DoInitAll()
a := strings.Split(`'ssl:"China Lodging Group"'
a := strings.Split(`'gov.cn'
'ssl:"gov.cn"'
'ssl:"China Lodging Group"'
'ssl:"huazhu"'
'ssl:"huazhu.com"'
'ssl:"alipay.com"'
Expand Down
38 changes: 38 additions & 0 deletions gov.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions gov1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"template-id":"weblogic-iiop-detect","info":{"name":"Weblogic IIOP Protocol Detection","author":["f1tz"],"tags":["network","weblogic"],"description":"The IIOP (Internet Inter-ORB Protocol) protocol makes it possible for distributed programs written in different programming languages to communicate over the Internet.\n","reference":null,"severity":"info"},"type":"network","host":"http://1.85.55.147:8003","matched-at":"1.85.55.147:8003","ip":"1.85.55.147","timestamp":"2022-12-03T10:40:22.986497+08:00","matcher-status":true,"matched-line":null}
{"template-id":"weblogic-iiop-detect","info":{"name":"Weblogic IIOP Protocol Detection","author":["f1tz"],"tags":["network","weblogic"],"description":"The IIOP (Internet Inter-ORB Protocol) protocol makes it possible for distributed programs written in different programming languages to communicate over the Internet.\n","reference":null,"severity":"info"},"type":"network","host":"http://asgjj.anshun.gov.cn:8005","matched-at":"asgjj.anshun.gov.cn:8005","ip":"61.243.39.2","timestamp":"2022-12-03T10:40:23.348327+08:00","matcher-status":true,"matched-line":null}
4 changes: 2 additions & 2 deletions pkg/naabu/v2/pkg/runner/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ func writeCSVHeaders(data *Result, writer *csv.Writer) {

if err := writer.Write(headers); err != nil {
errMsg := errors.Wrap(err, "Could not write headers")
//gologger.Error().Msgf(errMsg.Error())
gologger.Error().Msgf(errMsg.Error())
}
}

Expand All @@ -712,7 +712,7 @@ func writeCSVRow(data *Result, writer *csv.Writer) {
}
if err := writer.Write(rowData); err != nil {
errMsg := errors.Wrap(err, "Could not write row")
//gologger.Error().Msgf(errMsg.Error())
gologger.Error().Msgf(errMsg.Error())
}
}

Expand Down
Loading

0 comments on commit 85fc9a7

Please sign in to comment.