Skip to content

Commit 85fc9a7

Browse files
committed
设置CGO_ENABLED=0 ,避免出现 /lib/x86_64-linux-gnu/libc.so.6: version GLIBC_2.34 not found (required by 2022-12-04
1 parent e1a89f9 commit 85fc9a7

File tree

9 files changed

+3833
-7
lines changed

9 files changed

+3833
-7
lines changed

.github/build/linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- -s -w
1212
binary: scan4all
1313
env:
14-
- CGO_ENABLED=1
14+
- CGO_ENABLED=0
1515
main: main.go
1616
goos:
1717
- linux

.github/build/linuxarm64.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- -s -w
1212
binary: scan4all
1313
env:
14-
- CGO_ENABLED=1
14+
- CGO_ENABLED=0
1515
main: main.go
1616
goos:
1717
- linux

.github/build/mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ builds:
1111
- -s -w -X main.Version={{.Version}}
1212
binary: scan4all
1313
env:
14-
- CGO_ENABLED=1
14+
- CGO_ENABLED=0
1515
main: main.go
1616
goos:
1717
- darwin

.github/build/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ builds:
1313
- -s -w
1414
binary: scan4all
1515
env:
16-
- CGO_ENABLED=1
16+
- CGO_ENABLED=0
1717
- CC=x86_64-w64-mingw32-gcc
1818
- CXX=x86_64-w64-mingw32-g++
1919
main: main.go

doNaabu_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ func DoInitAll() {
1414

1515
func TestDoUncover(t *testing.T) {
1616
DoInitAll()
17-
a := strings.Split(`'ssl:"China Lodging Group"'
17+
a := strings.Split(`'gov.cn'
18+
'ssl:"gov.cn"'
19+
'ssl:"China Lodging Group"'
1820
'ssl:"huazhu"'
1921
'ssl:"huazhu.com"'
2022
'ssl:"alipay.com"'

gov.json

Lines changed: 38 additions & 0 deletions
Large diffs are not rendered by default.

gov1.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"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}
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://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}

pkg/naabu/v2/pkg/runner/runner.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ func writeCSVHeaders(data *Result, writer *csv.Writer) {
700700

701701
if err := writer.Write(headers); err != nil {
702702
errMsg := errors.Wrap(err, "Could not write headers")
703-
//gologger.Error().Msgf(errMsg.Error())
703+
gologger.Error().Msgf(errMsg.Error())
704704
}
705705
}
706706

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

0 commit comments

Comments
 (0)