def parseRequest(self): request = MSRPCRequestHeader(self.data) shell_message(nshell = 14) logging.debug("RPC Message Request Bytes: \n%s\n" % justify(binascii.b2a_hex(self.data))) logging.debug("RPC Message Request: \n%s\n" % justify(request.dump(print_to_stdout = False))) return request
def parseRequest(self): request = MSRPCRequestHeader(self.data) logging.debug("RPC Message Request Bytes: %s" % binascii.b2a_hex(self.data)) logging.debug("RPC Message Request: %s" % request.dump()) return request
def parseRequest(self): request = MSRPCRequestHeader(self.data) if self.config['debug']: print "RPC Message Request Bytes:", binascii.b2a_hex(self.data) print "RPC Message Request:", request.dump() return request
def parseRequest(self): request = MSRPCRequestHeader(self.data) if self.config['debug']: print("RPC Message Request Bytes:", binascii.b2a_hex(self.data)) print("RPC Message Request:", request.dump()) return request
def generateRequest(self): request = MSRPCRequestHeader() request['ver_major'] = 5 request['ver_minor'] = 0 request['type'] = self.packetType['request'] request['flags'] = self.packetFlags['firstFrag'] | self.packetFlags['lastFrag'] request['representation'] = 0x10 request['call_id'] = self.config['call_id'] request['alloc_hint'] = len(self.data) request['pduData'] = str(self.data) if self.config['debug']: print "RPC Message Request:", request.dump() print "RPC Message Request Bytes:", binascii.b2a_hex(str(request)) return request
def generateRequest(self): request = MSRPCRequestHeader() request['ver_major'] = 5 request['ver_minor'] = 0 request['type'] = self.packetType['request'] request['flags'] = self.packetFlags['firstFrag'] | self.packetFlags['lastFrag'] request['representation'] = 0x10 request['call_id'] = self.config['call_id'] request['alloc_hint'] = len(self.data) request['pduData'] = str(self.data) shell_message(nshell = 11) logging.debug("RPC Message Request: \n%s\n" % justify(request.dump(print_to_stdout = False))) logging.debug("RPC Message Request Bytes: \n%s\n" % justify(binascii.b2a_hex(str(request)))) return request
def generateRequest(self): request = MSRPCRequestHeader() request['ver_major'] = 5 request['ver_minor'] = 0 request['type'] = self.packetType['request'] request['flags'] = self.packetFlags['firstFrag'] | self.packetFlags['lastFrag'] request['representation'] = request['representation'] request['call_id'] = self.config['call_id'] request['alloc_hint'] = len(self.data) request['pduData'] = self.data if self.config['debug']: print "RPC Message Request:", request.dump() print "RPC Message Request Bytes:", binascii.b2a_hex(str(request)) return request