Coder Social home page Coder Social logo

Comments (7)

fanntom avatar fanntom commented on July 20, 2024 1

try running using python3

from machine_learning_security.

fanntom avatar fanntom commented on July 20, 2024 1

Please refer to issue #5

from machine_learning_security.

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

Hi, @Tren
DeepExploit can not operate on the Python2.x.
Maybe, your python version is Python2.7.
Could you run DeepExploit on the Python3.6?

from machine_learning_security.

Tren avatar Tren commented on July 20, 2024

[+] Execute Nmap.
[] Executing...
[
] Start time: 2018-04-28 23:55:22
[] End time : 2018-04-28 23:55:49
[+] Get port list.
[+] Get exploit list.
[
] Loading exploit list from local file: /root/machine_learning_security/DeepExploit/data/exploit_list.csv
[+] Get payload list.
[] Loading payload list from local file: /root/machine_learning_security/DeepExploit/data/payload_list.csv
[+] Get exploit tree.
[
] Loading exploit tree from local file: /root/machine_learning_security/DeepExploit/data/exploit_tree.json.
Traceback (most recent call last):
File "DeepExploit.py", line 1541, in
exploit_tree = get_exploit_tree(env)
File "DeepExploit.py", line 1290, in get_exploit_tree
fin = codecs.open(local_file, 'r', 'utf-8')
File "/usr/lib/python3.6/codecs.py", line 897, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/root/machine_learning_security/DeepExploit/data/exploit_tree.json.'

from machine_learning_security.

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

Hi, @Tren
It is bug following code.
I fixed a bug, please try it.

  • line:1288
local_file = os.path.join(env.data_path, 'exploit_tree.json')

from machine_learning_security.

Tren avatar Tren commented on July 20, 2024

python3 DeepExploit.py -t 192.168.0.100 -m train
Using TensorFlow backend.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      ██████╗ ███████╗███████╗██████╗                      

      ██╔══██╗██╔════╝██╔════╝██╔══██╗
      ██║ ██║█████╗ █████╗ ██████╔╝
      ██║ ██║██╔══╝ ██╔══╝ ██╔═══╝
      ██████╔╝███████╗███████╗██║
      ╚═════╝ ╚══════╝╚══════╝╚═╝

 ███████╗██╗  ██╗██████╗ ██╗      ██████╗ ██╗████████╗
 ██╔════╝╚██╗██╔╝██╔══██╗██║     ██╔═══██╗██║╚══██╔══╝
 █████╗   ╚███╔╝ ██████╔╝██║     ██║   ██║██║   ██║   
 ██╔══╝   ██╔██╗ ██╔═══╝ ██║     ██║   ██║██║   ██║   
 ███████╗██╔╝ ██╗██║     ███████╗╚██████╔╝██║   ██║   
 ╚══════╝╚═╝  ╚═╝╚═╝     ╚══════╝ ╚═════╝ ╚═╝   ╚═╝    (beta)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Traceback (most recent call last):
File "DeepExploit.py", line 1532, in
env = Metasploit(rhost)
File "DeepExploit.py", line 266, in init
self.client.login(msgrpc_user, msgrpc_pass) # Log in to RPC Server.
File "DeepExploit.py", line 70, in login
ret = self.call('auth.login', [user, password])
File "DeepExploit.py", line 64, in call
self.client.request("POST", self.uri, params, self.headers)
File "/usr/lib/python3.6/http/client.py", line 1239, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1285, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1234, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.6/http/client.py", line 1026, in _send_output
self.send(msg)
File "/usr/lib/python3.6/http/client.py", line 964, in send
self.connect()
File "/usr/lib/python3.6/http/client.py", line 936, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.6/socket.py", line 724, in create_connection
raise err
File "/usr/lib/python3.6/socket.py", line 713, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

from machine_learning_security.

13o-bbr-bbq avatar 13o-bbr-bbq commented on July 20, 2024

Hi, @Tren
Could you check follwing.

  • RPC Server is starting.
  • Content of config.ini matches the your environment.

from machine_learning_security.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.