Skip to content

Scrap possible phones range from codificator.ru to json file and generate file for hashcat or similar brute force tool

Notifications You must be signed in to change notification settings

555Russich/phones_range

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository can help you scrap possible phone numbers, generate password dict based on scrapped phones ranges to crack with hashcat or similar tool.

Now supports only +7 code

Preamble

Crack all phone's range using GPU such as GTX 960 4gb taking about 3-4 hours... My thoughts to make it faster (ofc if we are lucky):

If you know region OR mobile operator OR code which that phone can use, you can generate possible phones based on this information.

Requirements

python3

packages: bs4, requests

Installation

git clone https://github.com/555Russich/phones_range
cd phones_range
pip3 install bs4 requests

Usage

  1. Scrap possible phone ranges in json from https://codificator.ru
python3 scrap_phone_codes.py
  1. Generate password dict based on json file. Filters can be passed as arguments
python3 gen_dict.py --help
usage: gen_dict.py [-h] [--list-codes] [--list-regions] [--list-operators] [-c CODE] [-r REGION] [-o OPERATOR]

options:
  -h, --help            show this help message and exit
  --list-codes
  --list-regions
  --list-operators
  -c CODE, --code CODE
  -r REGION, --region REGION
  -o OPERATOR, --operator OPERATOR

Examples:

Generate all possible phones:

python3 gen_dict.py

Region filter:

python3 gen_dict.py -r "Московская область и г. Москва"

Operator filter:

python3 gen_dict.py -o МТС

All regions to stdout:

python3 gen_dict.py --list-regions

All operators to stdout:

python3 gen_dict.py --list-operators

It's possible to combine filters and pass few values for one filter

Generated dict will look like that:

9160000000
9160000001
9160000002
9160000003
9160000004
9160000005
9160000006
9160000007
9160000008
9160000009
...

After that you can run hashcat and use phones.rule file:

hashcat <some_more_parameters> -r phones.rule <your_hash_file> phones_filtered.dict