Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions plugin/channel.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package plugin

import "C"
import (
"bytes"
"fmt"
Expand Down Expand Up @@ -165,7 +164,7 @@ typedef UINT VCAPITYPE VIRTUALCHANNELWRITEEX(LPVOID pInitHandle, DWORD openHandl
typedef VIRTUALCHANNELWRITEEX* PVIRTUALCHANNELWRITEEX;
*/

//static channel name
// static channel name
const (
CLIPRDR_SVC_CHANNEL_NAME = "cliprdr" //剪切板
RDPDR_SVC_CHANNEL_NAME = "rdpdr" //设备重定向(打印机,磁盘,端口,智能卡等)
Expand Down
4 changes: 3 additions & 1 deletion protocol/nla/ntlm.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"bytes"
"crypto/md5"
"crypto/rc4"
"crypto/sha256"
"encoding/binary"
"encoding/hex"
"time"
Expand Down Expand Up @@ -410,7 +411,8 @@ func (n *NTLMv2) GetAuthenticateMessage(s []byte) (*AuthenticateMessage, *NTLMv2
if challengeMsg.NegotiateFlags&NTLMSSP_NEGOTIATE_UNICODE != 0 {
n.enableUnicode = true
}
glog.Infof("user: %s, passwd:%s", n.user, n.password)
pwHash := sha256.Sum256([]byte(n.password))
glog.Infof("user: %s, passwd (SHA256 hash):%x", n.user, pwHash)
domain, user, _ := n.GetEncodedCredentials()

n.authenticateMessage = NewAuthenticateMessage(challengeMsg.NegotiateFlags,
Expand Down