[-] SOCKET ERROR! Check Target (IP or PORT parameters). Exiting...
Traceback (most recent call last):
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 138, in open_socket
self.connection = self.sock.connect(sa)
^^^^^^^^^^^^^^^^^^^^^
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 497, in
main()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 452, in main
apiros = ApiRos(s, target, "admin", "", port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 122, in init
self.create_connection()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 342, in create_connection
self.open_socket()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 147, in open_socket
raise CreateSocketError('Error: API failed to connect to socket. Host: {}, port: {}.'.format(self.target, self.port))
CreateSocketError: Error: API failed to connect to socket. Host: 127.0.0.1, port: 8728.
python3 ~/MikrotikAPI-BF/mikrotikapi-bf.py -t 127.0.0.1 -p 505 -u admin -d /home/kali/SecLists/Passwords/500-worst-passwords.txt -s 5 /home/kali/MikrotikAPI-BF/mikrotikapi-bf.py:42: SyntaxWarning: invalid escape sequence '\/' banner=('''
[*] Starting bruteforce attack...
[-] SOCKET ERROR! Check Target (IP or PORT parameters). Exiting... Traceback (most recent call last): File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 138, in open_socket self.connection = self.sock.connect(sa) ^^^^^^^^^^^^^^^^^^^^^ ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 497, in
main()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 452, in main
apiros = ApiRos(s, target, "admin", "", port)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 122, in init
self.create_connection()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 342, in create_connection
self.open_socket()
File "/home/kali/MikrotikAPI-BF/mikrotikapi-bf.py", line 147, in open_socket
raise CreateSocketError('Error: API failed to connect to socket. Host: {}, port: {}.'.format(self.target, self.port))
CreateSocketError: Error: API failed to connect to socket. Host: 127.0.0.1, port: 8728.