mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 20:51:52 +08:00
refactor(grdp): 精简RDP库,删除认证检测不需要的代码
- 删除 VNC 协议支持 (protocol/rfb, client/rfb.go) - 删除完整客户端框架 (client/) - 删除 RemoteApp 等插件 (plugin/) - 删除 RLE 图形解压 (core/rle.go) - 删除绘图指令处理 (pdu/orders.go, pdu/gdi.go) - 精简 screen.go,移除截图和完整会话功能 - 移除未使用的 RGB 转换函数 grdp 代码从 13,044 行精简至 7,581 行,削减 42%
This commit is contained in:
@@ -909,7 +909,8 @@ func readFastPathUpdatePDU(r io.Reader, code uint8) (*FastPathUpdatePDU, error)
|
||||
//glog.Debugf("FastPathPDU type %s(0x%x)", FastPathUpdateType(code), code)
|
||||
switch code {
|
||||
case FASTPATH_UPDATETYPE_ORDERS:
|
||||
d = &FastPathOrdersPDU{}
|
||||
// 绘图指令,认证检测不需要处理
|
||||
return nil, errors.New(fmt.Sprintf("Unsupport FastPathPDU type 0x%x", code))
|
||||
case FASTPATH_UPDATETYPE_BITMAP:
|
||||
d = &FastPathBitmapUpdateDataPDU{}
|
||||
case FASTPATH_UPDATETYPE_PALETTE:
|
||||
|
||||
Reference in New Issue
Block a user