13o-bbr-bbq / machine_learning_security

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

can only concatenate str (not "bytes") to str Failed: console.read type:<class 'TypeError'> #87

Open slade4T opened 3 months ago

slade4T commented 3 months ago

im trying to train the DeepExploit with the following command: python3 DeepExploit.py -t 192.168.220.144 -m train

Can somebody help me with this problem?.

...snip... [] Port scanning: 192.168.220.144 [Elapsed time: 85 s] [] Executing keep_alive.. [] Port scanning: 192.168.220.144 [Elapsed time: 90 s] [] Executing keep_alive.. [] End time : 2024/04/26 12:20:40 [+] Get port list from /root/machine_learning_security/DeepExploit/nmap_result_192.168.220.144.xml. [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [!] type:<class 'TypeError'> [!] args:('can only concatenate str (not "bytes") to str',) [!] can only concatenate str (not "bytes") to str [!] Failed: console.read [] Timeout: "cat /root/machine_learning_security/DeepExploit/nmap_result_192.168.220.144.xml " /root/machine_learning_security/DeepExploit/DeepExploit.py:916: XMLParsedAsHTMLWarning: It looks like you're parsing an XML document using an HTML parser. If this really is an HTML document (maybe it's XHTML?), you can ignore or filter this warning. If it's XML, you should know that using an XML parser will be more reliable. To parse this document as XML, make sure you have the lxml package installed, and pass the keyword argument features="xml" into the BeautifulSoup constructor. bs = BeautifulSoup(nmap_result, 'lxml') [!] No open port. [!] Shutdown Deep Exploit... [-] MsfRPC: Not Authenticated.