Skip to content
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

Error message -> seems to be related to change IP functionality #4

Open
TH3xACE opened this issue Jan 31, 2022 · 2 comments
Open

Error message -> seems to be related to change IP functionality #4

TH3xACE opened this issue Jan 31, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@TH3xACE
Copy link

TH3xACE commented Jan 31, 2022

Expected vs Actual Behavior

No error :)

Specifications

  • Operative system:

  • Debian -> Kali Linux

  • Version (e.g. Python version):
    $ python3 -V
    Python 3.9.8

## Steps to Reproduce the Problem
python3 adfsbrute.py -t domain.com -U users.txt -p Password123 -tp Pass123 -n 5

[+] Changing IP address
Traceback (most recent call last):
File "/opt/tools/misc/adfsbrute/adfsbrute.py", line 253, in
main()
File "/opt/tools/misc/adfsbrute/adfsbrute.py", line 204, in main
new_ip = change_tor_ip(controller, debug)
UnboundLocalError: local variable 'controller' referenced before assignment

@TH3xACE TH3xACE added the bug Something isn't working label Jan 31, 2022
@ricardojoserf
Copy link
Owner

Hi @TH3xACE ! The variable "controller" does not exist because there was a problem with the try-catch statement in lines 196-202 of the code. Could you tell me if tor was running in port 9050 when you tried this? Also, in the file /etc/tor/torrc, do you have the line "ControlPort 9051"? If you add this line, please restart tor with "sudo /etc/init.d/tor restart"

Regards,

Ricardo

@TH3xACE
Copy link
Author

TH3xACE commented Feb 1, 2022

Thanks for your reply.... The issue was to do with conflicting port... I set it in the config file and everything working fine except the below error lol :)

+] Changing IP address
[+] New IP address: Error_Getting_Ip
[+] Organization uses a customized sign-in page
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/dist-packages/urllib3/contrib/pyopenssl.py", line 309, in recv_into
raise SocketError(str(e))
OSError: (104, 'ECONNRESET')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 640, in urlopen
retries = retries.increment(method, url, error=e, _pool=self,
File "/usr/local/lib/python3.9/dist-packages/urllib3/util/retry.py", line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/usr/local/lib/python3.9/dist-packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
httplib_response = self._make_request(conn, method, url,
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/usr/local/lib/python3.9/dist-packages/urllib3/connectionpool.py", line 383, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.9/http/client.py", line 1377, in getresponse
response.begin()
File "/usr/lib/python3.9/http/client.py", line 320, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.9/http/client.py", line 281, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/dist-packages/urllib3/contrib/pyopenssl.py", line 309, in recv_into
raise SocketError(str(e))
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError("(104, 'ECONNRESET')"))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/RedTeam/tools/misc/adfsbrute/./adfsbrute.py", line 253, in
main()
File "/opt/RedTeam/tools/misc/adfsbrute/./adfsbrute.py", line 207, in main
dafs_url = calculate_values(args.target)
File "/opt/RedTeam/tools/misc/adfsbrute/./adfsbrute.py", line 121, in calculate_values
dafs_url = s.get(json_data['AuthURL']).url #json_data['AuthURL']
File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/requests/adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', OSError("(104, 'ECONNRESET')"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants