Projects STRLCPY scan4all Commits 7330b216
🤬
  • fixed bug:Configs.ConfigJsonMap.Exploit.Logs is "<nil>" #111 By @hktalent 2022-09-17

  • Loading...
  • hktalent committed 2 years ago
    7330b216
    1 parent 34392cdf
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    testbd.sh
    skipped 3 lines
    4 4  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
    5 5  go build
    6 6   
     7 +find . -name ".DS_Store" -delete
     8 + 
  • ■ ■ ■ ■ ■ ■
    upNuclei.sh
    skipped 4 lines
    5 5  git add config/nuclei-templates pocs_yml/ymlFiles vendor
    6 6  git checkout vendor/github.com/projectdiscovery/nuclei/v2
    7 7  git status
     8 +find . -name ".DS_Store" -delete
     9 +rm -rf logs/*
     10 +rm -rf .DbCache
    8 11   
  • ■ ■ ■ ■ ■ ■
    webScan/Functions/Loadlog.go
    skipped 12 lines
    13 13  func init() {
    14 14   util.RegInitFunc(func() {
    15 15   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"))
    18 18   
    19 19   FileLog, err := os.OpenFile(Configs.ConfigJsonMap.Exploit.Logs, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)
    20 20   if err != nil {
    skipped 21 lines
Please wait...
Page is in error, reload to recover