13o-bbr-bbq / machine_learning_security

Source code about machine learning and security.
1.96k stars 645 forks source link

a problem about DeepExploit.py #41

Open MRdoulestar opened 5 years ago

MRdoulestar commented 5 years ago

Hello, i'm trying to run the DeepExploit but it always throw an error, just like:

[*] Port scanning: 192.168.37.120 [Elapsed time: 5 s]
[*] Executing keep_alive..
[!] type:<class 'AttributeError'>
[!] args:("'NoneType' object has no attribute 'decode'",)
[!] 'NoneType' object has no attribute 'decode'
[!] Failed: version

I debugged the code and found the 'console_id' in class Msgrpc is None, help please, thanks.

13o-bbr-bbq commented 5 years ago

Did you launch Metasploit and made a connection between DeepExploit and Metasploit? Please see the below. https://github.com/13o-bbr-bbq/machine_learning_security/wiki/Installation

devsan0046 commented 2 years ago

[] Getting 21/tcp info: Metasploit Rex httpd [+] Get exploit list. [] Loading exploit list from Metasploit. [!] type:<class 'AttributeError'> [!] args:("'str' object has no attribute 'decode'",) [!] 'str' object has no attribute 'decode' [!] Failed: Getting exploit module list.

How to fix this error

devsan0046 commented 2 years ago

@13o-bbr-bbq [] Getting 21/tcp info: Metasploit Rex httpd [+] Get exploit list. [] Loading exploit list from Metasploit. [!] type:<class 'AttributeError'> [!] args:("'str' object has no attribute 'decode'",) [!] 'str' object has no attribute 'decode' [!] Failed: Getting exploit module list.

How to fix this error

Marc-Emmanuel9 commented 1 year ago

up

areslui commented 1 year ago

the newer version of python no need to use decode, just delete ".decode('utf-8')" in Deepexploit.py

slade4T commented 3 months ago

any solutions?