Coder Social home page Coder Social logo

pyfunceble / domain2idna Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 1.0 173 KB

The tool to convert domains the famous IDNA format.

Home Page: https://domain2idna.readthedocs.io/en/latest/

License: MIT License

Python 100.00%
converter domain domain-adaptation domain-name domains idna python python3

domain2idna's People

Contributors

funilrys avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

arpitjain799

domain2idna's Issues

domains used for homologous attacks

What does this tool do, when it finds a source blacklisted domain (not invalid list), used for homologous (punycode) attacks (containing non-Latin characters)? (Discards it, converts it, leaves it the same ...)

UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)

Hey @funilrys got this error in a PyFunceble job

File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/query/http_status_code.py", line 337, in get_status_code
    req = PyFunceble.factory.Requester.get(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/query/requests/requester.py", line 213, in wrapper
    req = getattr(self.session, verb.lower())(*args, **kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 723, in send
    history = [resp for resp in gen]
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 723, in <listcomp>
    history = [resp for resp in gen]
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 266, in resolve_redirects
    resp = self.send(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/PyFunceble/query/requests/adapter/http.py", line 129, in send
    response = super().send(request, **kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/urllib3/connectionpool.py", line 398, in _make_request
    conn.request(method, url, **httplib_request_kw)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/urllib3/connection.py", line 239, in request
    super(HTTPConnection, self).request(method, url, body=body, headers=headers)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/http/client.py", line 1282, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/http/client.py", line 1328, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/http/client.py", line 1277, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/http/client.py", line 1037, in _send_output
    self.send(msg)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/http/client.py", line 975, in send
    self.connect()
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect
    conn = self._new_conn()
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/urllib3/contrib/socks.py", line 96, in _new_conn
    conn = socks.create_connection(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 199, in create_connection
    sock.connect((remote_host, remote_port))
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 47, in wrapper
    return function(*args, **kwargs)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 809, in connect
    negotiate(self, dest_addr, dest_port)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 443, in _negotiate_SOCKS5
    self.proxy_peername, self.proxy_sockname = self._SOCKS5_request(
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 520, in _SOCKS5_request
    resolved = self._write_SOCKS5_address(dst, writer)
  File "$HOME/Downloads/git_projects/clefspeare13/pornhosts/miniconda/envs/pyfunceble/lib/python3.10/site-packages/socks.py", line 569, in _write_SOCKS5_address
    host_bytes = host.encode("idna")
`UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)`

But as I remember it as the idna module comes from here, I posted the error log here

recommended

excellent project Its use has been recommended within our latest tlds project

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.