diff --git a/testbd.sh b/testbd.sh index a76f29fd6..1218a3b35 100644 --- a/testbd.sh +++ b/testbd.sh @@ -3,3 +3,5 @@ rm -rf vendor/github.com/projectdiscovery/nuclei/v2/pkg/protocols/common/interac 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 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 go build + +find . -name ".DS_Store" -delete diff --git a/upNuclei.sh b/upNuclei.sh index 64d7c48cb..afd280384 100755 --- a/upNuclei.sh +++ b/upNuclei.sh @@ -5,3 +5,6 @@ ls ../nuclei-templates|xargs -I % cp -rf ../nuclei-templates/% config/nuclei-tem git add config/nuclei-templates pocs_yml/ymlFiles vendor git checkout vendor/github.com/projectdiscovery/nuclei/v2 git status +find . -name ".DS_Store" -delete +rm -rf logs/* +rm -rf .DbCache diff --git a/webScan/Functions/Loadlog.go b/webScan/Functions/Loadlog.go index 0a451753f..d8563d86f 100644 --- a/webScan/Functions/Loadlog.go +++ b/webScan/Functions/Loadlog.go @@ -13,8 +13,8 @@ import ( func init() { util.RegInitFunc(func() { fileValue := util.GetAsAny("Exploit") - Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Logs")) - Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".Path")) + Configs.ConfigJsonMap.Exploit.Logs = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".logs")) + Configs.ConfigJsonMap.Exploit.Path = fmt.Sprintf("%v", util.GetJson4Query(fileValue, ".path")) FileLog, err := os.OpenFile(Configs.ConfigJsonMap.Exploit.Logs, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666) if err != nil {