j3ssie / osmedeus

A Workflow Engine for Offensive Security
https://osmedeus.org/
MIT License
5.18k stars 865 forks source link

Error when running the tool on Kali Linux 2019.01 #6

Closed sumgr0 closed 5 years ago

sumgr0 commented 5 years ago

./osmedeus.py -m subdomain -t 1 ↵

                   `@@`
                  @@@@@@
                .@@`  `@@.
                :@      @:
                :@  :@  @:                       
                :@  :@  @:                       
                :@      @:                             
                `@@.  .@@`
                  @@@@@@
                    @@
                 @  @@  @               
                +@@ @@ @@+                    
             @@:@#@,@@,@#@:@@           
            ;@+@@`#@@@@#`@@+@;
            @+ #@@@@@@@@@@# +@
           @@  @+`@@@@@@`+@  @@
           @.  @   ;@@;   @  .@
          #@  '@          @;  @#

         Osmedeus v1.0 by @j3ssiejjj

                ¯\_(ツ)_/¯

[*] Config file detected: core/config.conf --~~~=:>[ Staarting Flask API ]> [-] Something wrong to connect to {0} Traceback (most recent call last): File "/root/PenTest/OSINT/Osmedeus/core/config.py", line 136, in parsing_config ip = socket.gethostbyname(strip_target) socket.gaierror: [Errno -2] Name or service not known

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./osmedeus.py", line 151, in main() File "./osmedeus.py", line 147, in main parsing_argument(args) File "./osmedeus.py", line 50, in parsing_argument options = config.parsing_config(config_path, args) File "/root/PenTest/OSINT/Osmedeus/core/config.py", line 139, in parsing_config utils.print_bad("Something wrong to connect to {0}").format(target) AttributeError: 'NoneType' object has no attribute 'format'

j3ssie commented 5 years ago

My bad typo when connection error to the target. It's should be fixed now.

sumgr0 commented 5 years ago

Hi,

Still getting the error when attempting to use the tool.


[*] Config file detected: core/config.conf --~~~=:>[ Staarting Flask API ]>

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 354, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.7/http/client.py", line 1229, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output self.send(msg) File "/usr/lib/python3.7/http/client.py", line 956, in send self.connect() File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 196, in connect conn = self._new_conn() File "/usr/local/lib/python3.7/dist-packages/urllib3/connection.py", line 180, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f2d9ff10978>: Failed to establish a new connection: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 445, in send timeout=timeout File "/usr/local/lib/python3.7/dist-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python3.7/dist-packages/urllib3/util/retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2d9ff10978>: Failed to establish a new connection: [Errno 111] Connection refused'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "./osmedeus.py", line 151, in main() File "./osmedeus.py", line 147, in main parsing_argument(args) File "./osmedeus.py", line 54, in parsing_argument utils.set_config(options) File "/root/PenTest/OSINT/Osmedeus/core/utils.py", line 135, in set_config r = requests.post(url, headers=headers, json=data) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 112, in post return request('post', url, data=data, json=json, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/api.py", line 58, in request return session.request(method=method, url=url, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 512, in request resp = self.send(prep, send_kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/sessions.py", line 622, in send r = adapter.send(request, kwargs) File "/usr/local/lib/python3.7/dist-packages/requests/adapters.py", line 513, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='127.0.0.1', port=5000): Max retries exceeded with url: /config (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2d9ff10978>: Failed to establish a new connection: [Errno 111] Connection refused'))

j3ssie commented 5 years ago

Look like requests library is missing from your OS. So you may wanna check this out Install Guide

sumgr0 commented 5 years ago

I've verified both pip and python requests library is installed. Still reinstalled it, but still getting the same error.

This was working fine till sometime in Feb'19. Not sure of what had broken this... I've tried a fresh clone and install process, but in vain.

sumgr0 commented 5 years ago

Apparently, did a fresh VM and installed the tool. The tool worked without any issues...any suggestion on how to resolve this on the current setup shall be really great.

Thanks

j3ssie commented 5 years ago

yeah just DM @j3ssiejjj