Skip to content

[Bug] panic: runtime error: invalid memory address or nil pointer dereference #603

Description

@qianbenhyu

问题模块

端口扫描 (Port Scan)

严重程度

崩溃/Panic (Crash)

问题描述

Image panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0xc1d5f2]

goroutine 1046 [running]:
github.com/shadow1ng/fscan/libs/grdp/protocol/tpkt.(*TPKT).recvFastPath(0xc008fbcee0, {0xc00ae52d20, 0x52, 0x52}, {0x0, 0x0?})
github.com/shadow1ng/fscan/libs/grdp/protocol/tpkt/tpkt.go:480 +0x72
github.com/shadow1ng/fscan/libs/grdp/core.StartReadBytes.func1()
github.com/shadow1ng/fscan/libs/grdp/core/io.go:17 +0x65
created by github.com/shadow1ng/fscan/libs/grdp/core.StartReadBytes in goroutine 1040
github.com/shadow1ng/fscan/libs/grdp/core/io.go:14 +0x105

复现步骤

fscan -hf 1.txt -np -p 1-65535 -gt 3600 -nopoc

错误输出

fscan 版本

2.2.0

操作系统

CentOS 7/8/Stream

系统架构

amd64 (x86_64)

补充信息

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions