mirror of
https://github.com/SleepingBag945/dddd.git
synced 2025-12-17 15:20:39 +00:00
修复读空指针
This commit is contained in:
parent
93fa4e85ac
commit
c95164a81d
@ -56,7 +56,7 @@ Release中下载config.zip与您操作系统对应的二进制文件。将config
|
|||||||
|
|
||||||
默认漏洞输出结果文件名为 `当前时间戳.html`
|
默认漏洞输出结果文件名为 `当前时间戳.html`
|
||||||
|
|
||||||
日志保存在 `log.txt`
|
日志保存在 `audit.log`
|
||||||
|
|
||||||
**-a** 参数开启审计日志功能,记录详细扫描行为。
|
**-a** 参数开启审计日志功能,记录详细扫描行为。
|
||||||
|
|
||||||
|
|||||||
10
Update.md
10
Update.md
@ -1,6 +1,14 @@
|
|||||||
# 更新日志
|
# 更新日志
|
||||||
|
|
||||||
## 2024.1.2
|
## 2023.1.3
|
||||||
|
|
||||||
|
紧急修复一个因为resp为空导致读空指针的问题
|
||||||
|
|
||||||
|
嘎掉log.txt的记录,有审计日志就没必要存在了。
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## 2023.1.2
|
||||||
|
|
||||||
更新到1.6版本
|
更新到1.6版本
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ func GC() {
|
|||||||
debug.FreeOSMemory()
|
debug.FreeOSMemory()
|
||||||
}
|
}
|
||||||
|
|
||||||
var version = "1.6"
|
var version = "1.6.1"
|
||||||
|
|
||||||
func showBanner() {
|
func showBanner() {
|
||||||
banner := fmt.Sprintf(`
|
banner := fmt.Sprintf(`
|
||||||
|
|||||||
@ -252,6 +252,8 @@ Usage of dddd:
|
|||||||
|
|
||||||
# 指纹/Poc拓展
|
# 指纹/Poc拓展
|
||||||
|
|
||||||
|
若您想让dddd作为您的指纹/漏洞库,或者作为漏洞知识沉淀的工具,请务必详细观看此节。
|
||||||
|
|
||||||
### 指纹
|
### 指纹
|
||||||
|
|
||||||
指纹数据库存于 ./config/finger.yaml
|
指纹数据库存于 ./config/finger.yaml
|
||||||
|
|||||||
@ -95,9 +95,9 @@ func (l *Logger) Log(event *Event) {
|
|||||||
}
|
}
|
||||||
l.writer.Write(data, event.level)
|
l.writer.Write(data, event.level)
|
||||||
|
|
||||||
if event.level == levels.LevelSilent {
|
//if event.level == levels.LevelSilent {
|
||||||
WriteFile(string(data), "log.txt")
|
// WriteFile(string(data), "log.txt")
|
||||||
}
|
//}
|
||||||
loc, _ := time.LoadLocation("Asia/Shanghai")
|
loc, _ := time.LoadLocation("Asia/Shanghai")
|
||||||
currentTime := time.Now().In(loc).String()
|
currentTime := time.Now().In(loc).String()
|
||||||
WriteFile("[ "+currentTime+" ] "+string(data), AuditLogFileName)
|
WriteFile("[ "+currentTime+" ] "+string(data), AuditLogFileName)
|
||||||
|
|||||||
@ -1252,7 +1252,11 @@ retry:
|
|||||||
|
|
||||||
// 审计日志
|
// 审计日志
|
||||||
gologger.AuditTimeLogger("Dumped HTTP request for %s\n\n%s", fullURL, string(requestDump))
|
gologger.AuditTimeLogger("Dumped HTTP request for %s\n\n%s", fullURL, string(requestDump))
|
||||||
gologger.AuditTimeLogger("Dumped HTTP response for %s\n\n%s", fullURL, string(resp.Raw))
|
respRaw := ""
|
||||||
|
if resp != nil {
|
||||||
|
respRaw = resp.Raw
|
||||||
|
}
|
||||||
|
gologger.AuditTimeLogger("Dumped HTTP response for %s\n\n%s", fullURL, respRaw)
|
||||||
|
|
||||||
//if r.options.Debug || r.options.DebugRequests {
|
//if r.options.Debug || r.options.DebugRequests {
|
||||||
// gologger.Info().Msgf("Dumped HTTP request for %s\n\n", fullURL)
|
// gologger.Info().Msgf("Dumped HTTP request for %s\n\n", fullURL)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user