Logo by Xinh Studio @Noun Project
Bitsquatting refers to the registration of a domain names one bit different than a popular domain.
It is a form of Cybersquatting.
The overall process is as follows:
- Trim HTTPS/HTTP protocol and plit the URL into domain name and extension
- Transform both strings into their binary equivalents
- Generate all the 1-bit permutations of each bitstring
- Transform the bitstrings back to characters
- Filter out any non URL valid strings
- Compile:
make bitsquat
- Run:
./bitsquat --verbose https://foo.com Target Domain: https://foo.com Domain Name: foo Domain extension: com foo: 011001100110111101101111 com: 011000110110111101101101 doo.com goo.com fOo.com fgo.com fko.com fmo.com fno.com foO.com ...
$ ./bitsquat --help
Usage: bitsquat [OPTION...] [URL]
BitSquatter outputs all valid domains different by 1 bit from the input URL.
Example: bitsquat --verbose foobar.com
-e, --extension-too Generate URL permutations for the extension too
-v, --verbose Display domain name and extension bitstrings
-?, --help Give this help list
--usage Give a short usage message
-V, --version Print program version