mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 12:41:53 +08:00
refactor(core,grdp): 删除未使用的死代码
- 移除 BaseScanStrategy.LogPluginInfoWithPort 方法(无调用者) - 移除 mcs.go 中被注释的旧 connect 函数实现
This commit is contained in:
@@ -277,33 +277,6 @@ func (c *MCSClient) SetClientCoreData(width, height uint16) {
|
||||
c.clientCoreData.DesktopHeight = height
|
||||
}
|
||||
|
||||
//func (c *MCSClient) connect(selectedProtocol uint32) {
|
||||
// glog.Debug("mcs client on connect", selectedProtocol)
|
||||
// c.clientCoreData.ServerSelectedProtocol = selectedProtocol
|
||||
//
|
||||
// // sendConnectInitial
|
||||
// userDataBuff := bytes.Buffer{}
|
||||
// userDataBuff.Write(c.clientCoreData.Pack())
|
||||
// userDataBuff.Write(c.clientNetworkData.Pack())
|
||||
// userDataBuff.Write(c.clientSecurityData.Pack())
|
||||
//
|
||||
// ccReq := gcc.MakeConferenceCreateRequest(userDataBuff.Bytes())
|
||||
// connectInitial := NewConnectInitial(ccReq)
|
||||
// connectInitialBerEncoded := connectInitial.BER()
|
||||
//
|
||||
// dataBuff := &bytes.Buffer{}
|
||||
// ber.WriteApplicationTag(uint8(MCS_TYPE_CONNECT_INITIAL), len(connectInitialBerEncoded), dataBuff)
|
||||
// dataBuff.Write(connectInitialBerEncoded)
|
||||
//
|
||||
// _, err := c.transport.Write(dataBuff.Bytes())
|
||||
// if err != nil {
|
||||
// c.Emit("error", errors.New(fmt.Sprintf("mcs sendConnectInitial write error %v", err)))
|
||||
// return
|
||||
// }
|
||||
// glog.Debug("mcs wait for data event")
|
||||
// c.transport.Once("data", c.recvConnectResponse)
|
||||
//}
|
||||
|
||||
func (c *MCSClient) connect(selectedProtocol uint32) {
|
||||
glog.Debug("mcs client on connect", selectedProtocol)
|
||||
c.clientCoreData.ServerSelectedProtocol = selectedProtocol
|
||||
|
||||
Reference in New Issue
Block a user