Skip to content

Commit b3452bc

Browse files
committed
fixed bug:Configs.ConfigJsonMap.Exploit.Logs is "<nil>" #111 By @hktalent 2022-09-17
1 parent 569b0b9 commit b3452bc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

testbd.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ rm -rf vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interac
33
wget -c -O vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/http/request.go https://github.com/hktalent/scan4all/raw/main/vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/http/request.go
44
wget -c -O vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh/interactsh.go https://github.com/hktalent/scan4all/raw/main/vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interactsh/interactsh.go
55
go build
6+
7+
find . -name ".DS_Store" -delete

upNuclei.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@ ls ../nuclei-templates|xargs -I % cp -rf ../nuclei-templates/% config/nuclei-tem
55
git add config/nuclei-templates pocs_yml/ymlFiles vendor
66
git checkout vendor/github.com/projectdiscovery/nuclei/v2
77
git status
8+
find . -name ".DS_Store" -delete
9+
rm -rf logs/*
10+
rm -rf .DbCache

webScan/Functions/Loadlog.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
func init() {
1414
util.RegInitFunc(func() {
1515
fileValue := util.GetAsAny("Exploit")
16-
Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Logs"))
17-
Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Path"))
16+
Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".logs"))
17+
Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".path"))
1818

1919
FileLog, err := os.OpenFile(Configs.ConfigJsonMap.Exploit.Logs, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
2020
if err != nil {

0 commit comments

Comments
 (0)