Skip to content

Commit 861136d

Browse files
authored
Merge pull request #55 from hktalent/dev
Dev
2 parents 5da475c + 40c30e6 commit 861136d

File tree

4 files changed

+68
-5
lines changed

4 files changed

+68
-5
lines changed

.github/build/mac_arm64.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
env:
2+
- GO111MODULE=on
3+
before:
4+
hooks:
5+
- go mod tidy
6+
project_name: scan4all
7+
builds:
8+
- id: scan4all-darwin
9+
ldflags:
10+
- -s -w
11+
binary: scan4all
12+
env:
13+
- CGO_ENABLED=1
14+
main: main.go
15+
goos:
16+
- darwin
17+
goarch:
18+
- arm64
19+
20+
archives:
21+
- format: zip
22+
replacements:
23+
darwin: macOS
24+
25+
checksum:
26+
name_template: "{{ .ProjectName }}-mac-arm64-checksums.txt"

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ on:
66
workflow_dispatch:
77

88
jobs:
9+
build-mac-arm:
10+
runs-on: macos-latest
11+
steps:
12+
- name: Code checkout
13+
uses: actions/checkout@v2
14+
with:
15+
fetch-depth: 0
16+
- name: Set up Go
17+
uses: actions/setup-go@v2
18+
with:
19+
go-version: 1.18
20+
- name: Install Dependences
21+
run: brew install libpcap
22+
- name: Run GoReleaser
23+
uses: goreleaser/goreleaser-action@v2
24+
with:
25+
version: latest
26+
args: release -f .github/build/mac_arm64.yml --rm-dist
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
929
build-mac:
1030
runs-on: macos-latest
1131
steps:

projectdiscovery/nuclei_Yaml/nclruner/runner/runner.go

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,30 @@ func (r *Runner) Close() {
293293
if r.projectFile != nil {
294294
r.projectFile.Close()
295295
}
296-
r.hmapInputProvider.Close()
296+
if nil != r.hmapInputProvider {
297+
r.hmapInputProvider.Close()
298+
}
297299
protocolinit.Close()
298300
if r.pprofServer != nil {
299301
_ = r.pprofServer.Shutdown(context.Background())
300302
}
301-
if r.interactsh != nil {
302-
r.interactsh.Close()
303+
//if r.interactsh != nil {
304+
// r.interactsh.Close()
305+
//}
306+
if nil != r.issuesClient {
307+
r.issuesClient.Close()
308+
}
309+
if nil != r.progress {
310+
r.progress.Stop()
311+
}
312+
if nil != r.browser {
313+
r.browser.Close()
314+
r.browser = nil
315+
}
316+
if nil != r.pprofServer {
317+
r.pprofServer.Close()
303318
}
319+
304320
}
305321

306322
// RunEnumeration sets up the input layer for giving input nuclei.

vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/http/request.go

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)