Skip to content

Commit 678981d

Browse files
committed
Merge remote-tracking branch 'upstream/master' into master-Impacket
2 parents 6afc269 + bffca7e commit 678981d

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

tests/SMB_RPC/test_rpcrt.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class dummyCall(NDRCALL):
121121
self.stringBinding = epm.hept_map(self.machine, samr.MSRPC_UUID_SAMR, protocol = 'ncacn_ip_tcp')
122122
print(self.stringBinding)
123123
dce = self.connectDCE(self.username, '', self.domain, self.lmhash, self.nthash, dceFragment=0,
124-
auth_level=RPC_C_AUTHN_LEVEL_PKT_INTEGRITY, auth_type=RPC_C_AUTHN_GSS_NEGOTIATE,
124+
auth_level=RPC_C_AUTHN_LEVEL_PKT_PRIVACY, auth_type=RPC_C_AUTHN_GSS_NEGOTIATE,
125125
dceAuth=True,
126126
doKerberos=True, bind=samr.MSRPC_UUID_SAMR)
127127
self.stringBinding = oldBinding

tests/dcerpc/test_even.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@
2929

3030
from impacket.dcerpc.v5 import even
3131
from impacket.dcerpc.v5.dtypes import NULL
32-
from impacket.dcerpc.v5.rpcrt import DCERPCException
32+
from impacket.dcerpc.v5.rpcrt import DCERPCException, RPC_C_AUTHN_LEVEL_PKT_PRIVACY
3333

3434

3535
class RRPTests(DCERPCTests):
3636

3737
iface_uuid = even.MSRPC_UUID_EVEN
3838
string_binding = r"ncacn_np:{0.machine}[\PIPE\eventlog]"
3939
authn = True
40+
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY
4041

4142
def test_ElfrOpenBELW(self):
4243
dce, rpctransport = self.connect()

tests/dcerpc/test_par.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424

2525
from impacket.dcerpc.v5 import par
2626
from impacket.dcerpc.v5.dtypes import NULL
27-
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
27+
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_LEVEL_PKT_PRIVACY
2828

2929

3030
class PARTests(DCERPCTests):
3131
iface_uuid = par.MSRPC_UUID_PAR
3232
string_binding_formatting = DCERPCTests.STRING_BINDING_MAPPER
3333
authn = True
34-
authn_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
34+
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY
3535

3636
def test_RpcAsyncEnumPrinters(self):
3737
dce, rpc_transport = self.connect()

tests/dcerpc/test_tsch.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
from impacket.dcerpc.v5 import tsch, atsvc, sasec
4949
from impacket.dcerpc.v5.atsvc import AT_INFO
5050
from impacket.dcerpc.v5.dtypes import NULL
51-
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
51+
from impacket.dcerpc.v5.rpcrt import RPC_C_AUTHN_LEVEL_PKT_PRIVACY
5252
from impacket.system_errors import ERROR_NOT_SUPPORTED
5353

5454

5555
class ATSVCTests(DCERPCTests):
5656
iface_uuid = atsvc.MSRPC_UUID_ATSVC
5757
string_binding = r"ncacn_np:{0.machine}[\PIPE\atsvc]"
5858
authn = True
59-
authn_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
59+
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY
6060

6161
def test_NetrJobEnum(self):
6262
dce, rpc_transport = self.connect()
@@ -208,7 +208,7 @@ class SASECTests(DCERPCTests):
208208
iface_uuid = sasec.MSRPC_UUID_SASEC
209209
string_binding = r"ncacn_np:{0.machine}[\PIPE\atsvc]"
210210
authn = True
211-
authn_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
211+
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY
212212

213213
def test_SASetAccountInformation(self):
214214
dce, rpc_transport = self.connect()
@@ -292,7 +292,7 @@ class TSCHTests(DCERPCTests):
292292
iface_uuid = tsch.MSRPC_UUID_TSCHS
293293
string_binding = r"ncacn_np:{0.machine}[\PIPE\atsvc]"
294294
authn = True
295-
authn_level = RPC_C_AUTHN_LEVEL_PKT_INTEGRITY
295+
authn_level = RPC_C_AUTHN_LEVEL_PKT_PRIVACY
296296

297297
def test_SchRpcHighestVersion(self):
298298
dce, rpc_transport = self.connect()

0 commit comments

Comments
 (0)