加入手工gc回收,尝试节省无用内存。

-url 支持逗号隔开。
修复一个poc模块bug。
This commit is contained in:
影舞者
2022-07-06 21:42:00 +08:00
parent 6e5642c508
commit 30df6b651f
7 changed files with 26 additions and 16 deletions
+12
View File
@@ -66,6 +66,18 @@ func ParsePass(Info *HostInfo) {
Passwords = PwdList
}
}
if URL != "" {
urls := strings.Split(URL, ",")
TmpUrls := make(map[string]struct{})
for _, url := range urls {
if _, ok := TmpUrls[url]; !ok {
TmpUrls[url] = struct{}{}
if url != "" {
Urls = append(Urls, url)
}
}
}
}
if UrlFile != "" {
urls, err := Readfile(UrlFile)
if err == nil {
+1 -1
View File
@@ -1,6 +1,6 @@
package common
var version = "1.8.0"
var version = "1.8.1"
var Userdict = map[string][]string{
"ftp": {"ftp", "admin", "www", "web", "root", "db", "wwwroot", "data"},
"mysql": {"root", "mysql"},
+10
View File
@@ -4,6 +4,16 @@ import (
"flag"
)
func init() {
go func() {
for {
runtime.GC()
debug.FreeOSMemory()
time.Sleep(10 * time.Second)
}
}()
}
func Banner() {
banner := `
___ _