Skip to content

int is not allowed for map key? #60

@renzokushineshinemisairu

Description

Hi.

Running in training mode, the following error occurs:
Can you think of any reasons?

==============================
Traceback (most recent call last):
File "DeepExploit.py", line 2340, in
com_exploit_list = env.get_exploit_list()
File "DeepExploit.py", line 1084, in get_exploit_list
module_info = self.client.get_module_info('exploit', exploit)
File "DeepExploit.py", line 240, in get_module_info
return self.call('module.info', [module_type, module_name])
File "DeepExploit.py", line 113, in call
return msgpack.unpackb(resp.read())
File "msgpack/_unpacker.pyx", line 195, in msgpack._cmsgpack.unpackb
ValueError: int is not allowed for map key

===============================

[condition]

I had some errors, so I modified the code:

  1. Followed this answer,「nmap result」read from xml.:
    No open port report in Deepexploit and scan show all ports open #42 (comment)

#nmap_result = '' #it's original: original row number = 888
#after modify.
nmap_result = open(nmap_result_file, 'rb').read()

  1. 「nmup_result」 is decoded after concat ret.get(b'data').

#nmap_result += ret.get(b'data').decode('utf-8') #it's original: original row number = 902
#after modify.
nmap_result += ret.get(b'data') #
nmap_result = nmap_result.decode('utf-8') #modify

Plese help...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions