mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-22 03:10:42 +08:00
加入手工gc回收,尝试节省无用内存。
-url 支持逗号隔开。 修复一个poc模块bug。
This commit is contained in:
@@ -171,11 +171,6 @@ func exploit(address string, grooms int, payload []byte) error {
|
||||
|
||||
func makeKernelUserPayload(sc []byte) []byte {
|
||||
// test DoublePulsar
|
||||
// sc, err := ioutil.ReadFile("sc.bin")
|
||||
// if err != nil {
|
||||
// panic(err)
|
||||
// }
|
||||
// return sc
|
||||
buf := bytes.Buffer{}
|
||||
buf.Write(loader[:])
|
||||
// write sc size
|
||||
|
||||
+2
-8
@@ -72,16 +72,10 @@ func Scan(info common.HostInfo) {
|
||||
}
|
||||
}
|
||||
}
|
||||
if common.URL != "" {
|
||||
info.Url = common.URL
|
||||
for _, url := range common.Urls {
|
||||
info.Url = url
|
||||
AddScan("1000003", info, ch, &wg)
|
||||
}
|
||||
if len(common.Urls) > 0 {
|
||||
for _, url := range common.Urls {
|
||||
info.Url = url
|
||||
AddScan("1000003", info, ch, &wg)
|
||||
}
|
||||
}
|
||||
wg.Wait()
|
||||
common.LogWG.Wait()
|
||||
close(common.Results)
|
||||
|
||||
Reference in New Issue
Block a user