Open geniusKoder opened 5 years ago
Ok I somehow managed to get it working, exploits are successful but no report is generated at the end of it
From what I see, it seems to be prematurely shutting down. Would love to work on a fix with admin. Thank you!
[*] Start time: 2019/05/05 07:07:48
[*] Port scanning: 192.168.234.2 [Elapsed time: 0 s]
[*] Executing keep_alive..
[*] End time : 2019/05/05 07:07:55
[+] Get port list from nmap_result_192.168.234.2.xml.
[!] No open port.
[!] Shutdown Deep Exploit...
Hi,
I have the same problem. The result from Metasploit is generated correctly, i can see that the nmapresult
So my code is a workaround. Not going to do a pull request. Here is how i got it to work.
in def get_port_list
i added
def get_port_list(self, nmap_result_file, rhost):
cool = open(nmap_result_file).read()
....
then changed the bs
variable to:
bs = BeautifulSoup(cool, 'lxml')
So my code is a workaround. Not going to do a pull request. Here is how i got it to work. in
def get_port_list
i addeddef get_port_list(self, nmap_result_file, rhost): cool = open(nmap_result_file).read() ....
then changed the
bs
variable to:bs = BeautifulSoup(cool, 'lxml')
and i got this error
Traceback (most recent call last):
File "DeepExploit.py", line 2230, in
thank you
Hello I have the same issue and I add change in the code like @seanrclayton said but I get the same error! @seanrclayton can you please share your code from that function how it's look like, I really appreciate thank you!
@Pluto0310
I may found out the reason. Looking care of the nmap output xml file, we will see that none all of the <port ...></port>
field include <service>
.
Let's see DeepExploit.py #L922, if some port exclude <service>
, the info_list would not append an element. So we would get the tip of "IndexError: list index out of range"
the solve way is add three lines before here as follow:
else:
info_list.append('unknown')
after modify it, it likes:
for obj_child in port.contents:
if obj_child.name == 'service':
temp_info = ''
if 'product' in obj_child.attrs:
temp_info += obj_child.attrs['product'] + ' '
if 'version' in obj_child.attrs:
temp_info += obj_child.attrs['version'] + ' '
if 'extrainfo' in obj_child.attrs:
temp_info += obj_child.attrs['extrainfo']
if temp_info != '':
info_list.append(temp_info)
else:
info_list.append('unknown')
break
else:
info_list.append('unknown')
# Display getting port information.
self.util.print_message(const.OK, 'Getting {}/{} info: {}'.format(str(port.attrs['portid']),
port.attrs['protocol'],
info_list[idx]))
After modified:
@TARI0510 that works for me, thanks!
@TARI0510 that works for me, thanks!
It's great to help you~
how to solve this problem
Everything runs smoothly but I hit this error at almost the end. Any idea if this is a bug?