├── README.md └── phone.py /README.md: -------------------------------------------------------------------------------- 1 | Mokuton 2 | ---- 3 | Mokuton is a tool used to extract information from mobile numbers 4 | 5 | Results 6 | ---- 7 | - Basic info 8 | - International format 9 | - National format 10 | - The number is valid 11 | - Can be contacted internationally 12 | - Location 13 | - Location area code 14 | - Number type 15 | - Certain operators 16 | - ISP 17 | - Time zone 18 | - Geographic number 19 | 20 | Tested on 21 | ---- 22 | Termux 23 | 24 | Requirements 25 | ---- 26 | * Python 27 | 28 | `pip install phonenumbers` 29 | 30 | Commands 31 | ---- 32 | `apt install git` 33 | 34 | `git clone https://github.com/t0mxplo1t/Mokuton.git` 35 | 36 | `cd Mokuton` 37 | 38 | `python phone.py` 39 | -------------------------------------------------------------------------------- /phone.py: -------------------------------------------------------------------------------- 1 | import phonenumbers as pnumb 2 | 3 | from phonenumbers import parse 4 | from phonenumbers import geocoder 5 | from phonenumbers import carrier 6 | from phonenumbers import timezone 7 | 8 | def banner(): 9 | print(""" 10 | \033[95m_ _ ____ _ _ _ _ ___ ____ _ _\033[0m 11 | \033[95m|\/| | | |_/ | | | | | |\ | \033[93mv1.4\033[0m 12 | \033[95m| | |__| | \_ |__| | |__| | \|\033[0m 13 | +--------------------------------+ 14 | | \033[104m#https://github.com/t0mxpl01t\033[0m | 15 | +--------------------------------+""") 16 | banner() 17 | 18 | number = input("\n\033[92mEnter a number \033[0m[\033[101m+62\033[0m] \033[0m: ") 19 | parsing = parse(number) 20 | loc = geocoder.description_for_number(parsing,"id") 21 | isp = carrier.name_for_number(parsing,"id") 22 | tz = timezone.time_zones_for_number(parsing) 23 | 24 | print("\033[92mInfo \033[0m:",parsing) 25 | print("\033[92mFormat internasional \033[0m:",pnumb.normalize_digits_only(parsing)) 26 | print("\033[92mFormat nasional \033[0m:",pnumb.national_significant_number(parsing)) 27 | print("\033[92mNomornya valid \033[0m:",pnumb.is_valid_number(parsing)) 28 | print("\033[92mDapat dihubungi secara internasional \033[0m:",pnumb.can_be_internationally_dialled(parsing)) 29 | print("\033[92mLokasi \033[0m:",loc) 30 | print("\033[92mKode wilayah nomor \033[0m:",pnumb.region_code_for_number(parsing)) 31 | print("\033[92mJenis nomor \033[0m:",pnumb.number_type(parsing)) 32 | print("\033[92mApakah operator tertentu \033[0m:",pnumb.is_carrier_specific(parsing)) 33 | print("\033[92mISP \033[0m:",isp) 34 | print("\033[92mZona waktu \033[0m:",tz) 35 | print("\033[92mTermasuk nomor geografis \033[0m:",pnumb.is_number_geographical(parsing)) 36 | --------------------------------------------------------------------------------