Package: xn-twist
Find Unicode domain squatsInstallationStable releaseTo install XN Twist, run this command in your terminal:pip install xn-twistThis is the preferred method to install XN Twist, as it will always install the most recent stable release.If you don’t havepipinstalled, thisPython installation guidecan guide
you through the process.From sourcesThe sources for XN Twist can be downloaded from theGithub repo.You can either clone the public repository:$gitclonegit://github.com/xn-twist/xn-twistOr download thetarball:$curl-OLhttps://github.com/xn-twist/xn-twist/tarball/masterOnce you have a copy of the source, you can install it with:$pythonsetup.pyinstallUsageVia PythonYou can use XN-Twist in a script as follows:fromxn_twistimportXNTwistxn=XNTwist()twist_results=xn.twist('example.com')The following parameters can be passed into the initialization of theXNTwistobject:query_dns: Specify whether or not you would like to query dns values for the domains. Defaults toFalse.Be aware that setting this value to ``True`` will slow the twisting process down significantly.output: Specify an output file to which the json output of the algorithm will be written.When calling thetwist()function, there is an optionallimitvalue which limits the number of characters used as a spoofs. This cuts down on the processing load and makes the results manageable. An example usage is shown below.fromxn_twistimportXNTwistxn=XNTwist()twist_results=xn.twist('example.com',limit=2)When calling thetwist()function, there is an optionalsimplevalue which only returns possible domain squats with one character changed rather than all of the possible permutations (the default isFALSE). This cuts down on the processing load and makes the results manageable. An example usage is shown below.fromxn_twistimportXNTwistxn=XNTwist()twist_results=xn.twist('example.com',simple=True)The response will be json that looks something like:{"datetime":"2018-04-06 05:33:45.889048","possible_squats":[{"displayed":"\u0430.com","punycode":"xn--80a.com"},{"displayed":"\u0105.com","punycode":"xn--2da.com"},{"displayed":"\u03ac.com","punycode":"xn--hxa.com"},{"displayed":"\u00e1.com","punycode":"xn--1ca.com"},{"displayed":"\u01ce.com","punycode":"xn--tja.com"},{"displayed":"\u1f05.com","punycode":"xn--ing.com"},{"displayed":"\u01df.com","punycode":"xn--bka.com"},{"displayed":"\u1f00.com","punycode":"xn--dng.com"},{"displayed":"\u1f01.com","punycode":"xn--eng.com"},{"displayed":"\u00e4.com","punycode":"xn--4ca.com"}],"count":10,"xn_twist_version":"1.2.0"}Via Command LineYou can use XN-Twist from the command line as follows:xntwistexample.comThe usage for the command line form of XN-Twist is as follows:XN Twist.

Usage:
    xntwist <domain> [--limit=LIMIT] [--dns] [--output=OUTPUT]
    xntwist (-h | --help)
    xntwist --version

Options:
    -h --help     Show this screen.
    --version     Show version.
    -l=LIMIT --limit=LIMIT    Limit the number of characters used as spoofs [default: 5].
    -d --dns  Query DNS for each domain.
    -o=OUTPUT --output=OUTPUT  Specify an output file.Run TestsAfter cloning the repo, you can test it using the following commands from the base directory of this repository:maketestData, Data, Everywhere…This project relies on a dataset. More details on how to access the dataset and even how to help us build it coming soon!CreditsThis package was created withCookiecutterand thefhightower/python-project-templateproject template.