fscan icon indicating copy to clipboard operation
fscan copied to clipboard

扫描多网段和port为1-65535时候程序会崩溃

Open SkyBlueEternal opened this issue 3 years ago • 0 comments
trafficstars

[*] Icmp alive hosts len is: 16384
runtime: VirtualAlloc of 25769410560 bytes failed with errno=1455
fatal error: out of memory

runtime stack:
runtime.throw({0xad0738, 0xc205de6000})
        runtime/panic.go:1198 +0x76
runtime.sysUsed(0xc001770000, 0x5fffa0000)
        runtime/mem_windows.go:83 +0x1c9
runtime.(*mheap).allocSpan(0x180fd60, 0x2fffd0, 0x0, 0x0)
        runtime/mheap.go:1268 +0x3a5
runtime.(*mheap).alloc.func1()
        runtime/mheap.go:913 +0x69
runtime.systemstack()
        runtime/asm_amd64.s:383 +0x4e

goroutine 1 [running]:
runtime.systemstack_switch()
        runtime/asm_amd64.s:350 fp=0xc0000a7968 sp=0xc0000a7960 pc=0x2d2080
runtime.(*mheap).alloc(0x5fffa0000, 0x2fffd0, 0x0, 0x1)
        runtime/mheap.go:907 +0x73 fp=0xc0000a79b8 sp=0xc0000a7968 pc=0x2963b3
runtime.(*mcache).allocLarge(0x127f3fabb00, 0x5fffa0000, 0x60, 0x0)
        runtime/mcache.go:227 +0x89 fp=0xc0000a7a18 sp=0xc0000a79b8 pc=0x286c29
runtime.mallocgc(0x5fffa0000, 0xa17f60, 0x1)
        runtime/malloc.go:1082 +0x5c5 fp=0xc0000a7a98 sp=0xc0000a7a18 pc=0x27d045
runtime.makechan(0x0, 0x3fffc000)
        runtime/chan.go:106 +0xe5 fp=0xc0000a7ad8 sp=0xc0000a7a98 pc=0x275345
github.com/shadow1ng/fscan/Plugins.PortScan({0xc00082e000, 0x4000, 0xc0000a7e28}, {0xc0000320f8, 0x7}, 0x3)
        github.com/shadow1ng/fscan/Plugins/portscan.go:39 +0x2f4 fp=0xc0000a7cc8 sp=0xc0000a7ad8 pc=0x9407d4
github.com/shadow1ng/fscan/Plugins.Scan({{0x0, 0x0}, {0xc0000320f8, 0x7}, {0x0, 0x0}, {0x0, 0x0, 0x0}})
        github.com/shadow1ng/fscan/Plugins/scanner.go:37 +0x310 fp=0xc0000a7ef8 sp=0xc0000a7cc8 pc=0x946a30
main.main()
        github.com/shadow1ng/fscan/main.go:14 +0x85 fp=0xc0000a7f80 sp=0xc0000a7ef8 pc=0x94cf65
runtime.main()
        runtime/proc.go:255 +0x217 fp=0xc0000a7fe0 sp=0xc0000a7f80 pc=0x2a8f97
runtime.goexit()
        runtime/asm_amd64.s:1581 +0x1 fp=0xc0000a7fe8 sp=0xc0000a7fe0 pc=0x2d4401

goroutine 6 [sleep]:
time.Sleep(0x2540be400)
        runtime/time.go:193 +0x133
github.com/shadow1ng/fscan/common.init.0.func1()
        github.com/shadow1ng/fscan/common/flag.go:15 +0x2e
created by github.com/shadow1ng/fscan/common.init.0
        github.com/shadow1ng/fscan/common/flag.go:11 +0x25

goroutine 7 [chan receive]:
github.com/shadow1ng/fscan/common.SaveLog()
        github.com/shadow1ng/fscan/common/log.go:32 +0x54
created by github.com/shadow1ng/fscan/common.init.1
        github.com/shadow1ng/fscan/common/log.go:22 +0x25

SkyBlueEternal avatar Jul 22 '22 07:07 SkyBlueEternal