-
Notifications
You must be signed in to change notification settings - Fork 648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Errors in DeepExploit.py #5
Comments
Hi, @fanntom Then, DeepExploit creates these files according to the your Metasploit's environment. |
Thank you @13o-bbr-bbq for the reply. |
Alright here's a followup about the result. |
And when i run it in the test mode, I get this error: root@kali:~/machine_learning_security/DeepExploit# python3 DeepExploit.py -t 192.168.74.135 -m test
██╔══██╗██╔════╝██╔════╝██╔══██╗
Traceback (most recent call last): |
In the msfconsole window i get this: |
ah nevermind the AttributeError. |
Hi Fanntom, how exactly did you fix the msfrpc errors? I'm getting MFGRCP Not Authenticated though the msfrpc is started with the same values as in config.ini |
@pieterhouwen in which phase does that error popup? |
In the training phase when it's saving to the database (at the end) |
@pieterhouwen hmmm i get that error as well. I'll look into the issue myself. @13o-bbr-bbq can you check if the MsfRCP error occurs in your environment as well please? |
@fanntom @pieterhouwen It is a bug that "MSFRPC Not Authenticated" is output, so I will fix it. |
Yup, it saved the data alright, but now I'm getting other errors: [*] Restore learned data. Are these exploit-specific errors? |
Hi, @pieterhouwen Then, DeepExploit creates these files according to the your Metasploit's environment. |
That fixed it, but when using the test option I get the following output on the msfconsole side: (I trained and tested twice): Traceback (most recent call last): |
Hi, @pieterhouwen
|
btw should I create a requirements.txt for the python3 libraries? |
Hi, @fanntom |
I've created the |
Hi I was trying out the DeepExploit.py and I ran into some errors that I was able to solve and some errors I couldn't.
Regarding the issue before this, I found out that you should use 'python3-pip' and use 'pip3 install libraryname' in order to run DeepExploit.py properly. And you need to type python3 DeepExploit.py in order to run the python file with python3(Kali most up to date version).
Also I found a typo in DeepExploit.py which causes a value error.
In line 1282 or 1288, there is a period(.) after exploit_tree.json (so it would be 'exploit_tree.json.' instead of 'exploit_tree.json' which causes a value error when running in the training mode.
Now the errors that I couldn't fix:
during the training session, there is a KeyError in 'windows/scada/advantech_webaccess_webvrpcs_bof', 'linux/telnet/netgear_telnetenable', 'multi/mysql/mysql_udf_payload' which occured 2 times, and while the finish train and save learned data sequence, there is a KeyError in 'multi/mysql/mysql_udf_payload'.
[+]Executing start: local_thread1
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner
self.run()
File "/usr/lib/python3.6/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
File "DeepExploit.py", line 1613, in
job = lambda: worker.run(exploit_tree, target_tree)
File "DeepExploit.py", line 1176, in run
self.environment.run(exploit_tree, target_tree)
File "DeepExploit.py", line 1042, in run
target_list = exploit_tree[exploit[8:]]['target_list']
KeyError: 'linux/telnet/netgear_telnetenable'
this error occurs.
The text was updated successfully, but these errors were encountered: