mirror of
https://github.com/shadow1ng/fscan.git
synced 2025-07-13 21:02:44 +08:00
在扫描的结果文件名中加上时间,保证每次扫描结果都输出到新的文件
This commit is contained in:
parent
eb5558e6d9
commit
060463aaa0
@ -30,12 +30,14 @@ func LogSuccess(result string) {
|
||||
}
|
||||
|
||||
func SaveLog() {
|
||||
Outputfilen := fmt.Sprintf("%d%d%d%d%d%d%s%s",time.Now().Year(),time.Now().Month(),time.Now().Day(),time.Now().Hour(),time.Now().Minute(),time.Now().Second(),"-",Outputfile)
|
||||
for result := range Results {
|
||||
if Silent == false || strings.Contains(*result, "[+]") || strings.Contains(*result, "[*]") {
|
||||
fmt.Println(*result)
|
||||
}
|
||||
if IsSave {
|
||||
WriteFile(*result, Outputfile)
|
||||
WriteFile(*result, Outputfilen)
|
||||
//WriteFile(*result, Outputfile)
|
||||
}
|
||||
LogWG.Done()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user