From 281d71c3726fb5b7cde3aee972f00ba92fafe2df Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 4 Nov 2018 21:30:06 +0100 Subject: [PATCH 01/72] Ignore .idea --- .gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea From b4be1bcb5a8ddce432b77734fa95f0fa506589b7 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 4 Nov 2018 21:30:28 +0100 Subject: [PATCH 02/72] Secrets --- secrets.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 secrets.py diff --git a/secrets.py b/secrets.py new file mode 100644 index 0000000..2e13cba --- /dev/null +++ b/secrets.py @@ -0,0 +1,11 @@ +#!/usr/bin/env python + +# Instanciate an OVH Client. +# You can generate new credentials with full access to your account on +# the token creation page +client = ovh.Client( + endpoint='ovh-eu', # Endpoint of API OVH Europe (List of available endpoints) + application_key='xxxxxxxxxx', # Application Key + application_secret='xxxxxxxxxx', # Application Secret + consumer_key='xxxxxxxxxx', # Consumer Key +) \ No newline at end of file From ac3f55649597ba8bb6ab0b69616872e1edf058e3 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 4 Nov 2018 22:19:05 +0100 Subject: [PATCH 03/72] Documentation --- README.md | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 64 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4ebb9d8..22b2313 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PhoneInfoga -Information gathering tool for phone numbers. +Advanced information gathering tool for phone numbers. **This tool requires python 2.x** @@ -8,14 +8,46 @@ Information gathering tool for phone numbers. - Check if phone number exists - Gather standard informations such as country, line type and carrier - -##### Up coming - Check several numbers at once - Set an output for result(s) - Check if number is from a VoIP provider -- Get informations for special numbers (emergency) +- Get informations about special numbers - Phone book search +## Formats + +The tool only accepts E164 and International formats as input. + +- E164: +3396360XXXX +- International: +33 9 63 60 XX XX +- National: 09 63 60 XX XX +- RFC3966: tel:+33-9-63-60-XX-XX +- Out-of-country format from US: 011 33 9 63 60 XX XX + +## Number format by countries + +#### Europe + +- Belgium : 9 digits for land lines and 10 for mobile +- Denmark : 8 digits +- Germany : 10 digits +- Greece : 10 digits +- Hungary : 10 digits +- Iceland : 10 digits +- Ireland : 10 digits +- Italy : 10 digits +- Netherlands : 10 digits +- Norway : 10 digits +- Hungary : 10 digits + +## Available scanners + +- ovh +- annu +- numverify +- any +- all + ## Installation ```bash @@ -25,21 +57,48 @@ pip install -r requirements.txt python phoneinfoga.py -h ``` +Then set APIs credentials in `secrets.py`. + ## Usage ``` Usage: PhoneInfoga options -n|--number: Phone number to search + -i|--input: Phone number to search + -o|--output: Phone number to search + -s|--scanner: Only use a specific scanner -h|--help: Help command + --update: Update the tool & databases ``` Example : +```python +python phoneinfoga.py -n 0428375448 ``` -python phoneinfoga.py -n 447700900409 + +Check several numbers at once : + +```python +python phoneinfoga.py -i numbers.txt -o results.txt +``` + +Check for a number range on OVH (just put some zeros) : + +```python +python phoneinfoga.py -n 0428370000 -s ovh ``` ## License This tool is MIT licensed. + +## Resources + +Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` + +- https://api.ovh.com/console/#/telephony +- https://countrycode.org/ +- http://www.countryareacode.net/en/ +- http://whitepages.fr/phonesystem/ \ No newline at end of file From 31946e6884dadd1a282a6b8c0dd39d9c0d69afc9 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 4 Nov 2018 22:19:19 +0100 Subject: [PATCH 04/72] Country codes --- CountryCodes.json | 1212 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 1212 insertions(+) create mode 100644 CountryCodes.json diff --git a/CountryCodes.json b/CountryCodes.json new file mode 100644 index 0000000..116f43e --- /dev/null +++ b/CountryCodes.json @@ -0,0 +1,1212 @@ +[ + { + "name":"Israel", + "dial_code":"+972", + "code":"IL" + }, + { + "name":"Afghanistan", + "dial_code":"+93", + "code":"AF" + }, + { + "name":"Albania", + "dial_code":"+355", + "code":"AL" + }, + { + "name":"Algeria", + "dial_code":"+213", + "code":"DZ" + }, + { + "name":"AmericanSamoa", + "dial_code":"+1684", + "code":"AS" + }, + { + "name":"Andorra", + "dial_code":"+376", + "code":"AD" + }, + { + "name":"Angola", + "dial_code":"+244", + "code":"AO" + }, + { + "name":"Anguilla", + "dial_code":"+1264", + "code":"AI" + }, + { + "name":"Antigua and Barbuda", + "dial_code":"+1268", + "code":"AG" + }, + { + "name":"Argentina", + "dial_code":"+54", + "code":"AR" + }, + { + "name":"Armenia", + "dial_code":"+374", + "code":"AM" + }, + { + "name":"Aruba", + "dial_code":"+297", + "code":"AW" + }, + { + "name":"Australia", + "dial_code":"+61", + "code":"AU" + }, + { + "name":"Austria", + "dial_code":"+43", + "code":"AT" + }, + { + "name":"Azerbaijan", + "dial_code":"+994", + "code":"AZ" + }, + { + "name":"Bahamas", + "dial_code":"+1242", + "code":"BS" + }, + { + "name":"Bahrain", + "dial_code":"+973", + "code":"BH" + }, + { + "name":"Bangladesh", + "dial_code":"+880", + "code":"BD" + }, + { + "name":"Barbados", + "dial_code":"+1246", + "code":"BB" + }, + { + "name":"Belarus", + "dial_code":"+375", + "code":"BY" + }, + { + "name":"Belgium", + "dial_code":"+32", + "code":"BE" + }, + { + "name":"Belize", + "dial_code":"+501", + "code":"BZ" + }, + { + "name":"Benin", + "dial_code":"+229", + "code":"BJ" + }, + { + "name":"Bermuda", + "dial_code":"+1441", + "code":"BM" + }, + { + "name":"Bhutan", + "dial_code":"+975", + "code":"BT" + }, + { + "name":"Bosnia and Herzegovina", + "dial_code":"+387", + "code":"BA" + }, + { + "name":"Botswana", + "dial_code":"+267", + "code":"BW" + }, + { + "name":"Brazil", + "dial_code":"+55", + "code":"BR" + }, + { + "name":"British Indian Ocean Territory", + "dial_code":"+246", + "code":"IO" + }, + { + "name":"Bulgaria", + "dial_code":"+359", + "code":"BG" + }, + { + "name":"Burkina Faso", + "dial_code":"+226", + "code":"BF" + }, + { + "name":"Burundi", + "dial_code":"+257", + "code":"BI" + }, + { + "name":"Cambodia", + "dial_code":"+855", + "code":"KH" + }, + { + "name":"Cameroon", + "dial_code":"+237", + "code":"CM" + }, + { + "name":"Canada", + "dial_code":"+1", + "code":"CA" + }, + { + "name":"Cape Verde", + "dial_code":"+238", + "code":"CV" + }, + { + "name":"Cayman Islands", + "dial_code":"+ 345", + "code":"KY" + }, + { + "name":"Central African Republic", + "dial_code":"+236", + "code":"CF" + }, + { + "name":"Chad", + "dial_code":"+235", + "code":"TD" + }, + { + "name":"Chile", + "dial_code":"+56", + "code":"CL" + }, + { + "name":"China", + "dial_code":"+86", + "code":"CN" + }, + { + "name":"Christmas Island", + "dial_code":"+61", + "code":"CX" + }, + { + "name":"Colombia", + "dial_code":"+57", + "code":"CO" + }, + { + "name":"Comoros", + "dial_code":"+269", + "code":"KM" + }, + { + "name":"Congo", + "dial_code":"+242", + "code":"CG" + }, + { + "name":"Cook Islands", + "dial_code":"+682", + "code":"CK" + }, + { + "name":"Costa Rica", + "dial_code":"+506", + "code":"CR" + }, + { + "name":"Croatia", + "dial_code":"+385", + "code":"HR" + }, + { + "name":"Cuba", + "dial_code":"+53", + "code":"CU" + }, + { + "name":"Cyprus", + "dial_code":"+537", + "code":"CY" + }, + { + "name":"Czech Republic", + "dial_code":"+420", + "code":"CZ" + }, + { + "name":"Denmark", + "dial_code":"+45", + "code":"DK" + }, + { + "name":"Djibouti", + "dial_code":"+253", + "code":"DJ" + }, + { + "name":"Dominica", + "dial_code":"+1767", + "code":"DM" + }, + { + "name":"Dominican Republic", + "dial_code":"+1849", + "code":"DO" + }, + { + "name":"Ecuador", + "dial_code":"+593", + "code":"EC" + }, + { + "name":"Egypt", + "dial_code":"+20", + "code":"EG" + }, + { + "name":"El Salvador", + "dial_code":"+503", + "code":"SV" + }, + { + "name":"Equatorial Guinea", + "dial_code":"+240", + "code":"GQ" + }, + { + "name":"Eritrea", + "dial_code":"+291", + "code":"ER" + }, + { + "name":"Estonia", + "dial_code":"+372", + "code":"EE" + }, + { + "name":"Ethiopia", + "dial_code":"+251", + "code":"ET" + }, + { + "name":"Faroe Islands", + "dial_code":"+298", + "code":"FO" + }, + { + "name":"Fiji", + "dial_code":"+679", + "code":"FJ" + }, + { + "name":"Finland", + "dial_code":"+358", + "code":"FI" + }, + { + "name":"France", + "dial_code":"+33", + "code":"FR" + }, + { + "name":"French Guiana", + "dial_code":"+594", + "code":"GF" + }, + { + "name":"French Polynesia", + "dial_code":"+689", + "code":"PF" + }, + { + "name":"Gabon", + "dial_code":"+241", + "code":"GA" + }, + { + "name":"Gambia", + "dial_code":"+220", + "code":"GM" + }, + { + "name":"Georgia", + "dial_code":"+995", + "code":"GE" + }, + { + "name":"Germany", + "dial_code":"+49", + "code":"DE" + }, + { + "name":"Ghana", + "dial_code":"+233", + "code":"GH" + }, + { + "name":"Gibraltar", + "dial_code":"+350", + "code":"GI" + }, + { + "name":"Greece", + "dial_code":"+30", + "code":"GR" + }, + { + "name":"Greenland", + "dial_code":"+299", + "code":"GL" + }, + { + "name":"Grenada", + "dial_code":"+1473", + "code":"GD" + }, + { + "name":"Guadeloupe", + "dial_code":"+590", + "code":"GP" + }, + { + "name":"Guam", + "dial_code":"+1671", + "code":"GU" + }, + { + "name":"Guatemala", + "dial_code":"+502", + "code":"GT" + }, + { + "name":"Guinea", + "dial_code":"+224", + "code":"GN" + }, + { + "name":"Guinea-Bissau", + "dial_code":"+245", + "code":"GW" + }, + { + "name":"Guyana", + "dial_code":"+595", + "code":"GY" + }, + { + "name":"Haiti", + "dial_code":"+509", + "code":"HT" + }, + { + "name":"Honduras", + "dial_code":"+504", + "code":"HN" + }, + { + "name":"Hungary", + "dial_code":"+36", + "code":"HU" + }, + { + "name":"Iceland", + "dial_code":"+354", + "code":"IS" + }, + { + "name":"India", + "dial_code":"+91", + "code":"IN" + }, + { + "name":"Indonesia", + "dial_code":"+62", + "code":"ID" + }, + { + "name":"Iraq", + "dial_code":"+964", + "code":"IQ" + }, + { + "name":"Ireland", + "dial_code":"+353", + "code":"IE" + }, + { + "name":"Israel", + "dial_code":"+972", + "code":"IL" + }, + { + "name":"Italy", + "dial_code":"+39", + "code":"IT" + }, + { + "name":"Jamaica", + "dial_code":"+1876", + "code":"JM" + }, + { + "name":"Japan", + "dial_code":"+81", + "code":"JP" + }, + { + "name":"Jordan", + "dial_code":"+962", + "code":"JO" + }, + { + "name":"Kazakhstan", + "dial_code":"+7 7", + "code":"KZ" + }, + { + "name":"Kenya", + "dial_code":"+254", + "code":"KE" + }, + { + "name":"Kiribati", + "dial_code":"+686", + "code":"KI" + }, + { + "name":"Kuwait", + "dial_code":"+965", + "code":"KW" + }, + { + "name":"Kyrgyzstan", + "dial_code":"+996", + "code":"KG" + }, + { + "name":"Latvia", + "dial_code":"+371", + "code":"LV" + }, + { + "name":"Lebanon", + "dial_code":"+961", + "code":"LB" + }, + { + "name":"Lesotho", + "dial_code":"+266", + "code":"LS" + }, + { + "name":"Liberia", + "dial_code":"+231", + "code":"LR" + }, + { + "name":"Liechtenstein", + "dial_code":"+423", + "code":"LI" + }, + { + "name":"Lithuania", + "dial_code":"+370", + "code":"LT" + }, + { + "name":"Luxembourg", + "dial_code":"+352", + "code":"LU" + }, + { + "name":"Madagascar", + "dial_code":"+261", + "code":"MG" + }, + { + "name":"Malawi", + "dial_code":"+265", + "code":"MW" + }, + { + "name":"Malaysia", + "dial_code":"+60", + "code":"MY" + }, + { + "name":"Maldives", + "dial_code":"+960", + "code":"MV" + }, + { + "name":"Mali", + "dial_code":"+223", + "code":"ML" + }, + { + "name":"Malta", + "dial_code":"+356", + "code":"MT" + }, + { + "name":"Marshall Islands", + "dial_code":"+692", + "code":"MH" + }, + { + "name":"Martinique", + "dial_code":"+596", + "code":"MQ" + }, + { + "name":"Mauritania", + "dial_code":"+222", + "code":"MR" + }, + { + "name":"Mauritius", + "dial_code":"+230", + "code":"MU" + }, + { + "name":"Mayotte", + "dial_code":"+262", + "code":"YT" + }, + { + "name":"Mexico", + "dial_code":"+52", + "code":"MX" + }, + { + "name":"Monaco", + "dial_code":"+377", + "code":"MC" + }, + { + "name":"Mongolia", + "dial_code":"+976", + "code":"MN" + }, + { + "name":"Montenegro", + "dial_code":"+382", + "code":"ME" + }, + { + "name":"Montserrat", + "dial_code":"+1664", + "code":"MS" + }, + { + "name":"Morocco", + "dial_code":"+212", + "code":"MA" + }, + { + "name":"Myanmar", + "dial_code":"+95", + "code":"MM" + }, + { + "name":"Namibia", + "dial_code":"+264", + "code":"NA" + }, + { + "name":"Nauru", + "dial_code":"+674", + "code":"NR" + }, + { + "name":"Nepal", + "dial_code":"+977", + "code":"NP" + }, + { + "name":"Netherlands", + "dial_code":"+31", + "code":"NL" + }, + { + "name":"Netherlands Antilles", + "dial_code":"+599", + "code":"AN" + }, + { + "name":"New Caledonia", + "dial_code":"+687", + "code":"NC" + }, + { + "name":"New Zealand", + "dial_code":"+64", + "code":"NZ" + }, + { + "name":"Nicaragua", + "dial_code":"+505", + "code":"NI" + }, + { + "name":"Niger", + "dial_code":"+227", + "code":"NE" + }, + { + "name":"Nigeria", + "dial_code":"+234", + "code":"NG" + }, + { + "name":"Niue", + "dial_code":"+683", + "code":"NU" + }, + { + "name":"Norfolk Island", + "dial_code":"+672", + "code":"NF" + }, + { + "name":"Northern Mariana Islands", + "dial_code":"+1670", + "code":"MP" + }, + { + "name":"Norway", + "dial_code":"+47", + "code":"NO" + }, + { + "name":"Oman", + "dial_code":"+968", + "code":"OM" + }, + { + "name":"Pakistan", + "dial_code":"+92", + "code":"PK" + }, + { + "name":"Palau", + "dial_code":"+680", + "code":"PW" + }, + { + "name":"Panama", + "dial_code":"+507", + "code":"PA" + }, + { + "name":"Papua New Guinea", + "dial_code":"+675", + "code":"PG" + }, + { + "name":"Paraguay", + "dial_code":"+595", + "code":"PY" + }, + { + "name":"Peru", + "dial_code":"+51", + "code":"PE" + }, + { + "name":"Philippines", + "dial_code":"+63", + "code":"PH" + }, + { + "name":"Poland", + "dial_code":"+48", + "code":"PL" + }, + { + "name":"Portugal", + "dial_code":"+351", + "code":"PT" + }, + { + "name":"Puerto Rico", + "dial_code":"+1939", + "code":"PR" + }, + { + "name":"Qatar", + "dial_code":"+974", + "code":"QA" + }, + { + "name":"Romania", + "dial_code":"+40", + "code":"RO" + }, + { + "name":"Rwanda", + "dial_code":"+250", + "code":"RW" + }, + { + "name":"Samoa", + "dial_code":"+685", + "code":"WS" + }, + { + "name":"San Marino", + "dial_code":"+378", + "code":"SM" + }, + { + "name":"Saudi Arabia", + "dial_code":"+966", + "code":"SA" + }, + { + "name":"Senegal", + "dial_code":"+221", + "code":"SN" + }, + { + "name":"Serbia", + "dial_code":"+381", + "code":"RS" + }, + { + "name":"Seychelles", + "dial_code":"+248", + "code":"SC" + }, + { + "name":"Sierra Leone", + "dial_code":"+232", + "code":"SL" + }, + { + "name":"Singapore", + "dial_code":"+65", + "code":"SG" + }, + { + "name":"Slovakia", + "dial_code":"+421", + "code":"SK" + }, + { + "name":"Slovenia", + "dial_code":"+386", + "code":"SI" + }, + { + "name":"Solomon Islands", + "dial_code":"+677", + "code":"SB" + }, + { + "name":"South Africa", + "dial_code":"+27", + "code":"ZA" + }, + { + "name":"South Georgia and the South Sandwich Islands", + "dial_code":"+500", + "code":"GS" + }, + { + "name":"Spain", + "dial_code":"+34", + "code":"ES" + }, + { + "name":"Sri Lanka", + "dial_code":"+94", + "code":"LK" + }, + { + "name":"Sudan", + "dial_code":"+249", + "code":"SD" + }, + { + "name":"Suriname", + "dial_code":"+597", + "code":"SR" + }, + { + "name":"Swaziland", + "dial_code":"+268", + "code":"SZ" + }, + { + "name":"Sweden", + "dial_code":"+46", + "code":"SE" + }, + { + "name":"Switzerland", + "dial_code":"+41", + "code":"CH" + }, + { + "name":"Tajikistan", + "dial_code":"+992", + "code":"TJ" + }, + { + "name":"Thailand", + "dial_code":"+66", + "code":"TH" + }, + { + "name":"Togo", + "dial_code":"+228", + "code":"TG" + }, + { + "name":"Tokelau", + "dial_code":"+690", + "code":"TK" + }, + { + "name":"Tonga", + "dial_code":"+676", + "code":"TO" + }, + { + "name":"Trinidad and Tobago", + "dial_code":"+1868", + "code":"TT" + }, + { + "name":"Tunisia", + "dial_code":"+216", + "code":"TN" + }, + { + "name":"Turkey", + "dial_code":"+90", + "code":"TR" + }, + { + "name":"Turkmenistan", + "dial_code":"+993", + "code":"TM" + }, + { + "name":"Turks and Caicos Islands", + "dial_code":"+1649", + "code":"TC" + }, + { + "name":"Tuvalu", + "dial_code":"+688", + "code":"TV" + }, + { + "name":"Uganda", + "dial_code":"+256", + "code":"UG" + }, + { + "name":"Ukraine", + "dial_code":"+380", + "code":"UA" + }, + { + "name":"United Arab Emirates", + "dial_code":"+971", + "code":"AE" + }, + { + "name":"United Kingdom", + "dial_code":"+44", + "code":"GB" + }, + { + "name":"United States", + "dial_code":"+1", + "code":"US" + }, + { + "name":"Uruguay", + "dial_code":"+598", + "code":"UY" + }, + { + "name":"Uzbekistan", + "dial_code":"+998", + "code":"UZ" + }, + { + "name":"Vanuatu", + "dial_code":"+678", + "code":"VU" + }, + { + "name":"Wallis and Futuna", + "dial_code":"+681", + "code":"WF" + }, + { + "name":"Yemen", + "dial_code":"+967", + "code":"YE" + }, + { + "name":"Zambia", + "dial_code":"+260", + "code":"ZM" + }, + { + "name":"Zimbabwe", + "dial_code":"+263", + "code":"ZW" + }, + { + "name":"land Islands", + "dial_code":"", + "code":"AX" + }, + { + "name":"Antarctica", + "dial_code":null, + "code":"AQ" + }, + { + "name":"Bolivia, Plurinational State of", + "dial_code":"+591", + "code":"BO" + }, + { + "name":"Brunei Darussalam", + "dial_code":"+673", + "code":"BN" + }, + { + "name":"Cocos (Keeling) Islands", + "dial_code":"+61", + "code":"CC" + }, + { + "name":"Congo, The Democratic Republic of the", + "dial_code":"+243", + "code":"CD" + }, + { + "name":"Cote d'Ivoire", + "dial_code":"+225", + "code":"CI" + }, + { + "name":"Falkland Islands (Malvinas)", + "dial_code":"+500", + "code":"FK" + }, + { + "name":"Guernsey", + "dial_code":"+44", + "code":"GG" + }, + { + "name":"Holy See (Vatican City State)", + "dial_code":"+379", + "code":"VA" + }, + { + "name":"Hong Kong", + "dial_code":"+852", + "code":"HK" + }, + { + "name":"Iran, Islamic Republic of", + "dial_code":"+98", + "code":"IR" + }, + { + "name":"Isle of Man", + "dial_code":"+44", + "code":"IM" + }, + { + "name":"Jersey", + "dial_code":"+44", + "code":"JE" + }, + { + "name":"Korea, Democratic People's Republic of", + "dial_code":"+850", + "code":"KP" + }, + { + "name":"Korea, Republic of", + "dial_code":"+82", + "code":"KR" + }, + { + "name":"Lao People's Democratic Republic", + "dial_code":"+856", + "code":"LA" + }, + { + "name":"Libyan Arab Jamahiriya", + "dial_code":"+218", + "code":"LY" + }, + { + "name":"Macao", + "dial_code":"+853", + "code":"MO" + }, + { + "name":"Macedonia, The Former Yugoslav Republic of", + "dial_code":"+389", + "code":"MK" + }, + { + "name":"Micronesia, Federated States of", + "dial_code":"+691", + "code":"FM" + }, + { + "name":"Moldova, Republic of", + "dial_code":"+373", + "code":"MD" + }, + { + "name":"Mozambique", + "dial_code":"+258", + "code":"MZ" + }, + { + "name":"Palestinian Territory, Occupied", + "dial_code":"+970", + "code":"PS" + }, + { + "name":"Pitcairn", + "dial_code":"+872", + "code":"PN" + }, + { + "name":"Réunion", + "dial_code":"+262", + "code":"RE" + }, + { + "name":"Russia", + "dial_code":"+7", + "code":"RU" + }, + { + "name":"Saint Barthélemy", + "dial_code":"+590", + "code":"BL" + }, + { + "name":"Saint Helena, Ascension and Tristan Da Cunha", + "dial_code":"+290", + "code":"SH" + }, + { + "name":"Saint Kitts and Nevis", + "dial_code":"+1869", + "code":"KN" + }, + { + "name":"Saint Lucia", + "dial_code":"+1758", + "code":"LC" + }, + { + "name":"Saint Martin", + "dial_code":"+590", + "code":"MF" + }, + { + "name":"Saint Pierre and Miquelon", + "dial_code":"+508", + "code":"PM" + }, + { + "name":"Saint Vincent and the Grenadines", + "dial_code":"+1784", + "code":"VC" + }, + { + "name":"Sao Tome and Principe", + "dial_code":"+239", + "code":"ST" + }, + { + "name":"Somalia", + "dial_code":"+252", + "code":"SO" + }, + { + "name":"Svalbard and Jan Mayen", + "dial_code":"+47", + "code":"SJ" + }, + { + "name":"Syrian Arab Republic", + "dial_code":"+963", + "code":"SY" + }, + { + "name":"Taiwan, Province of China", + "dial_code":"+886", + "code":"TW" + }, + { + "name":"Tanzania, United Republic of", + "dial_code":"+255", + "code":"TZ" + }, + { + "name":"Timor-Leste", + "dial_code":"+670", + "code":"TL" + }, + { + "name":"Venezuela, Bolivarian Republic of", + "dial_code":"+58", + "code":"VE" + }, + { + "name":"Viet Nam", + "dial_code":"+84", + "code":"VN" + }, + { + "name":"Virgin Islands, British", + "dial_code":"+1284", + "code":"VG" + }, + { + "name":"Virgin Islands, U.S.", + "dial_code":"+1340", + "code":"VI" + } +] \ No newline at end of file From 1dd7bdf658a24221ed0edbd3bd52df6449704596 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 00:40:46 +0100 Subject: [PATCH 05/72] Area codes --- AreaCodes.json | 366 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 366 insertions(+) create mode 100644 AreaCodes.json diff --git a/AreaCodes.json b/AreaCodes.json new file mode 100644 index 0000000..6717e36 --- /dev/null +++ b/AreaCodes.json @@ -0,0 +1,366 @@ +[ + { + "CountryCode": "FR", + "AreaCodes": [ + { + "area": "Bordeaux", + "code": "5" + }, + { + "area": "Boulogne", + "code": "3" + }, + { + "area": "Brest", + "code": "2" + }, + { + "area": "Calais", + "code": "3" + }, + { + "area": "Cannes", + "code": "4" + }, + { + "area": "Corsica", + "code": "495" + }, + { + "area": "Dijon", + "code": "3" + }, + { + "area": "Grenoble", + "code": "4" + }, + { + "area": "Cherbourg", + "code": "2" + }, + { + "area": "Le Havre", + "code": "2" + }, + { + "area": "Lille", + "code": "3" + }, + { + "area": "Limoges", + "code": "5" + }, + { + "area": "Lourdes", + "code": "5" + }, + { + "area": "Lyon", + "code": "4" + }, + { + "area": "Marseille", + "code": "4" + }, + { + "area": "Nancy", + "code": "3" + }, + { + "area": "Nantes", + "code": "2" + }, + { + "area": "Nice", + "code": "4" + }, + { + "area": "Orleans", + "code": "2" + }, + { + "area": "Paris", + "code": "1" + }, + { + "area": "Reims", + "code": "3" + }, + { + "area": "Rouen", + "code": "2" + }, + { + "area": "St. Etienne", + "code": "4" + }, + { + "area": "Strasbourg", + "code": "3" + }, + { + "area": "Toulon", + "code": "4" + }, + { + "area": "Toulouse", + "code": "5" + }, + { + "area": "Troyes", + "code": "3" + }, + { + "area": "Valence", + "code": "4" + } + ] + }, + { + "CountryCode": "CN", + "AreaCodes": [ + { + "area": "Anshan", + "code": "412" + }, + { + "area": "Beijing", + "code": "10" + }, + { + "area": "Dalian", + "code": "411" + }, + { + "area": "Guangzhou", + "code": "20" + }, + { + "area": "Hangzhou", + "code": "571" + }, + { + "area": "Harbin", + "code": "451" + }, + { + "area": "Huaian", + "code": "517" + }, + { + "area": "Huaibei", + "code": "561" + }, + { + "area": "Changchun", + "code": "431" + }, + { + "area": "Chengdu", + "code": "28" + }, + { + "area": "Chongqing", + "code": "23" + }, + { + "area": "Jilin", + "code": "432" + }, + { + "area": "Jinan", + "code": "531" + }, + { + "area": "Nanjing", + "code": "25" + }, + { + "area": "Ningbo", + "code": "574" + }, + { + "area": "Qingdao", + "code": "532" + }, + { + "area": "Shanghai", + "code": "21" + }, + { + "area": "Shenyang", + "code": "24" + }, + { + "area": "Suizhou", + "code": "722" + }, + { + "area": "Tianjin", + "code": "22" + }, + { + "area": "Weifang", + "code": "536" + }, + { + "area": "Wuhan", + "code": "27" + }, + { + "area": "Wuxi", + "code": "510" + }, + { + "area": "Xiangfan", + "code": "710" + }, + { + "area": "Yangzhou", + "code": "514" + }, + { + "area": "Yantai", + "code": "535" + }, + { + "area": "Zaozhuang", + "code": "632" + }, + { + "area": "Zibo", + "code": "533" + } + ] + }, + { + "CountryCode": "DE", + "AreaCodes": [ + { + "area": "Aachen", + "code": "241" + }, + { + "area": "Augsburg", + "code": "821" + }, + { + "area": "Berlin", + "code": "30" + }, + { + "area": "Bielefeld", + "code": "521" + }, + { + "area": "Bochum", + "code": "234" + }, + { + "area": "Bonn", + "code": "228" + }, + { + "area": "Brandenburg", + "code": "3381" + }, + { + "area": "Bremen", + "code": "421" + }, + { + "area": "Dortmund", + "code": "231" + }, + { + "area": "Dresden", + "code": "351" + }, + { + "area": "Duisburg", + "code": "203" + }, + { + "area": "Dusseldorf", + "code": "211" + }, + { + "area": "Essen", + "code": "201" + }, + { + "area": "Frankfurt", + "code": "69" + }, + { + "area": "Gelsenkirchen", + "code": "209" + }, + { + "area": "Hamburg", + "code": "40" + }, + { + "area": "Hannover", + "code": "511" + }, + { + "area": "Chemnitz", + "code": "371" + }, + { + "area": "Karlsruhe", + "code": "721" + }, + { + "area": "Koln", + "code": "221" + }, + { + "area": "Krefeld", + "code": "2151" + }, + { + "area": "Leipzig", + "code": "341" + }, + { + "area": "Mainz", + "code": "6131" + }, + { + "area": "Mannheim", + "code": "621" + }, + { + "area": "Munchen", + "code": "89" + }, + { + "area": "Munster", + "code": "6071" + }, + { + "area": "Nurnberg", + "code": "911" + }, + { + "area": "Stuttgart", + "code": "711" + }, + { + "area": "Wiesbaden", + "code": "611" + }, + { + "area": "Wuppertal", + "code": "202" + } + ] + }, + { + "CountryCode": "CN", + "AreaCodes": [] + } +] + From cc97e45d89dc14008ead2b251cee478ef0038c3d Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 16:27:16 +0100 Subject: [PATCH 06/72] Doc --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 22b2313..b277f55 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ The tool only accepts E164 and International formats as input. git clone https://github.com/sundowndev/PhoneInfoga cd ./PhoneInfoga pip install -r requirements.txt -python phoneinfoga.py -h +python ./phoneinfoga.py -h ``` Then set APIs credentials in `secrets.py`. @@ -74,19 +74,19 @@ Usage: PhoneInfoga options Example : -```python +``` python phoneinfoga.py -n 0428375448 ``` Check several numbers at once : -```python -python phoneinfoga.py -i numbers.txt -o results.txt +``` +python ./phoneinfoga.py -i numbers.txt -o results.txt ``` Check for a number range on OVH (just put some zeros) : -```python +``` python phoneinfoga.py -n 0428370000 -s ovh ``` From b973faf643c2b64bcb8ba9278307abd93604a1ca Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 16:27:35 +0100 Subject: [PATCH 07/72] databases --- data/area_codes.json | 366 ++++++++++++ data/country_codes.json | 1212 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 1578 insertions(+) create mode 100644 data/area_codes.json create mode 100644 data/country_codes.json diff --git a/data/area_codes.json b/data/area_codes.json new file mode 100644 index 0000000..6717e36 --- /dev/null +++ b/data/area_codes.json @@ -0,0 +1,366 @@ +[ + { + "CountryCode": "FR", + "AreaCodes": [ + { + "area": "Bordeaux", + "code": "5" + }, + { + "area": "Boulogne", + "code": "3" + }, + { + "area": "Brest", + "code": "2" + }, + { + "area": "Calais", + "code": "3" + }, + { + "area": "Cannes", + "code": "4" + }, + { + "area": "Corsica", + "code": "495" + }, + { + "area": "Dijon", + "code": "3" + }, + { + "area": "Grenoble", + "code": "4" + }, + { + "area": "Cherbourg", + "code": "2" + }, + { + "area": "Le Havre", + "code": "2" + }, + { + "area": "Lille", + "code": "3" + }, + { + "area": "Limoges", + "code": "5" + }, + { + "area": "Lourdes", + "code": "5" + }, + { + "area": "Lyon", + "code": "4" + }, + { + "area": "Marseille", + "code": "4" + }, + { + "area": "Nancy", + "code": "3" + }, + { + "area": "Nantes", + "code": "2" + }, + { + "area": "Nice", + "code": "4" + }, + { + "area": "Orleans", + "code": "2" + }, + { + "area": "Paris", + "code": "1" + }, + { + "area": "Reims", + "code": "3" + }, + { + "area": "Rouen", + "code": "2" + }, + { + "area": "St. Etienne", + "code": "4" + }, + { + "area": "Strasbourg", + "code": "3" + }, + { + "area": "Toulon", + "code": "4" + }, + { + "area": "Toulouse", + "code": "5" + }, + { + "area": "Troyes", + "code": "3" + }, + { + "area": "Valence", + "code": "4" + } + ] + }, + { + "CountryCode": "CN", + "AreaCodes": [ + { + "area": "Anshan", + "code": "412" + }, + { + "area": "Beijing", + "code": "10" + }, + { + "area": "Dalian", + "code": "411" + }, + { + "area": "Guangzhou", + "code": "20" + }, + { + "area": "Hangzhou", + "code": "571" + }, + { + "area": "Harbin", + "code": "451" + }, + { + "area": "Huaian", + "code": "517" + }, + { + "area": "Huaibei", + "code": "561" + }, + { + "area": "Changchun", + "code": "431" + }, + { + "area": "Chengdu", + "code": "28" + }, + { + "area": "Chongqing", + "code": "23" + }, + { + "area": "Jilin", + "code": "432" + }, + { + "area": "Jinan", + "code": "531" + }, + { + "area": "Nanjing", + "code": "25" + }, + { + "area": "Ningbo", + "code": "574" + }, + { + "area": "Qingdao", + "code": "532" + }, + { + "area": "Shanghai", + "code": "21" + }, + { + "area": "Shenyang", + "code": "24" + }, + { + "area": "Suizhou", + "code": "722" + }, + { + "area": "Tianjin", + "code": "22" + }, + { + "area": "Weifang", + "code": "536" + }, + { + "area": "Wuhan", + "code": "27" + }, + { + "area": "Wuxi", + "code": "510" + }, + { + "area": "Xiangfan", + "code": "710" + }, + { + "area": "Yangzhou", + "code": "514" + }, + { + "area": "Yantai", + "code": "535" + }, + { + "area": "Zaozhuang", + "code": "632" + }, + { + "area": "Zibo", + "code": "533" + } + ] + }, + { + "CountryCode": "DE", + "AreaCodes": [ + { + "area": "Aachen", + "code": "241" + }, + { + "area": "Augsburg", + "code": "821" + }, + { + "area": "Berlin", + "code": "30" + }, + { + "area": "Bielefeld", + "code": "521" + }, + { + "area": "Bochum", + "code": "234" + }, + { + "area": "Bonn", + "code": "228" + }, + { + "area": "Brandenburg", + "code": "3381" + }, + { + "area": "Bremen", + "code": "421" + }, + { + "area": "Dortmund", + "code": "231" + }, + { + "area": "Dresden", + "code": "351" + }, + { + "area": "Duisburg", + "code": "203" + }, + { + "area": "Dusseldorf", + "code": "211" + }, + { + "area": "Essen", + "code": "201" + }, + { + "area": "Frankfurt", + "code": "69" + }, + { + "area": "Gelsenkirchen", + "code": "209" + }, + { + "area": "Hamburg", + "code": "40" + }, + { + "area": "Hannover", + "code": "511" + }, + { + "area": "Chemnitz", + "code": "371" + }, + { + "area": "Karlsruhe", + "code": "721" + }, + { + "area": "Koln", + "code": "221" + }, + { + "area": "Krefeld", + "code": "2151" + }, + { + "area": "Leipzig", + "code": "341" + }, + { + "area": "Mainz", + "code": "6131" + }, + { + "area": "Mannheim", + "code": "621" + }, + { + "area": "Munchen", + "code": "89" + }, + { + "area": "Munster", + "code": "6071" + }, + { + "area": "Nurnberg", + "code": "911" + }, + { + "area": "Stuttgart", + "code": "711" + }, + { + "area": "Wiesbaden", + "code": "611" + }, + { + "area": "Wuppertal", + "code": "202" + } + ] + }, + { + "CountryCode": "CN", + "AreaCodes": [] + } +] + diff --git a/data/country_codes.json b/data/country_codes.json new file mode 100644 index 0000000..116f43e --- /dev/null +++ b/data/country_codes.json @@ -0,0 +1,1212 @@ +[ + { + "name":"Israel", + "dial_code":"+972", + "code":"IL" + }, + { + "name":"Afghanistan", + "dial_code":"+93", + "code":"AF" + }, + { + "name":"Albania", + "dial_code":"+355", + "code":"AL" + }, + { + "name":"Algeria", + "dial_code":"+213", + "code":"DZ" + }, + { + "name":"AmericanSamoa", + "dial_code":"+1684", + "code":"AS" + }, + { + "name":"Andorra", + "dial_code":"+376", + "code":"AD" + }, + { + "name":"Angola", + "dial_code":"+244", + "code":"AO" + }, + { + "name":"Anguilla", + "dial_code":"+1264", + "code":"AI" + }, + { + "name":"Antigua and Barbuda", + "dial_code":"+1268", + "code":"AG" + }, + { + "name":"Argentina", + "dial_code":"+54", + "code":"AR" + }, + { + "name":"Armenia", + "dial_code":"+374", + "code":"AM" + }, + { + "name":"Aruba", + "dial_code":"+297", + "code":"AW" + }, + { + "name":"Australia", + "dial_code":"+61", + "code":"AU" + }, + { + "name":"Austria", + "dial_code":"+43", + "code":"AT" + }, + { + "name":"Azerbaijan", + "dial_code":"+994", + "code":"AZ" + }, + { + "name":"Bahamas", + "dial_code":"+1242", + "code":"BS" + }, + { + "name":"Bahrain", + "dial_code":"+973", + "code":"BH" + }, + { + "name":"Bangladesh", + "dial_code":"+880", + "code":"BD" + }, + { + "name":"Barbados", + "dial_code":"+1246", + "code":"BB" + }, + { + "name":"Belarus", + "dial_code":"+375", + "code":"BY" + }, + { + "name":"Belgium", + "dial_code":"+32", + "code":"BE" + }, + { + "name":"Belize", + "dial_code":"+501", + "code":"BZ" + }, + { + "name":"Benin", + "dial_code":"+229", + "code":"BJ" + }, + { + "name":"Bermuda", + "dial_code":"+1441", + "code":"BM" + }, + { + "name":"Bhutan", + "dial_code":"+975", + "code":"BT" + }, + { + "name":"Bosnia and Herzegovina", + "dial_code":"+387", + "code":"BA" + }, + { + "name":"Botswana", + "dial_code":"+267", + "code":"BW" + }, + { + "name":"Brazil", + "dial_code":"+55", + "code":"BR" + }, + { + "name":"British Indian Ocean Territory", + "dial_code":"+246", + "code":"IO" + }, + { + "name":"Bulgaria", + "dial_code":"+359", + "code":"BG" + }, + { + "name":"Burkina Faso", + "dial_code":"+226", + "code":"BF" + }, + { + "name":"Burundi", + "dial_code":"+257", + "code":"BI" + }, + { + "name":"Cambodia", + "dial_code":"+855", + "code":"KH" + }, + { + "name":"Cameroon", + "dial_code":"+237", + "code":"CM" + }, + { + "name":"Canada", + "dial_code":"+1", + "code":"CA" + }, + { + "name":"Cape Verde", + "dial_code":"+238", + "code":"CV" + }, + { + "name":"Cayman Islands", + "dial_code":"+ 345", + "code":"KY" + }, + { + "name":"Central African Republic", + "dial_code":"+236", + "code":"CF" + }, + { + "name":"Chad", + "dial_code":"+235", + "code":"TD" + }, + { + "name":"Chile", + "dial_code":"+56", + "code":"CL" + }, + { + "name":"China", + "dial_code":"+86", + "code":"CN" + }, + { + "name":"Christmas Island", + "dial_code":"+61", + "code":"CX" + }, + { + "name":"Colombia", + "dial_code":"+57", + "code":"CO" + }, + { + "name":"Comoros", + "dial_code":"+269", + "code":"KM" + }, + { + "name":"Congo", + "dial_code":"+242", + "code":"CG" + }, + { + "name":"Cook Islands", + "dial_code":"+682", + "code":"CK" + }, + { + "name":"Costa Rica", + "dial_code":"+506", + "code":"CR" + }, + { + "name":"Croatia", + "dial_code":"+385", + "code":"HR" + }, + { + "name":"Cuba", + "dial_code":"+53", + "code":"CU" + }, + { + "name":"Cyprus", + "dial_code":"+537", + "code":"CY" + }, + { + "name":"Czech Republic", + "dial_code":"+420", + "code":"CZ" + }, + { + "name":"Denmark", + "dial_code":"+45", + "code":"DK" + }, + { + "name":"Djibouti", + "dial_code":"+253", + "code":"DJ" + }, + { + "name":"Dominica", + "dial_code":"+1767", + "code":"DM" + }, + { + "name":"Dominican Republic", + "dial_code":"+1849", + "code":"DO" + }, + { + "name":"Ecuador", + "dial_code":"+593", + "code":"EC" + }, + { + "name":"Egypt", + "dial_code":"+20", + "code":"EG" + }, + { + "name":"El Salvador", + "dial_code":"+503", + "code":"SV" + }, + { + "name":"Equatorial Guinea", + "dial_code":"+240", + "code":"GQ" + }, + { + "name":"Eritrea", + "dial_code":"+291", + "code":"ER" + }, + { + "name":"Estonia", + "dial_code":"+372", + "code":"EE" + }, + { + "name":"Ethiopia", + "dial_code":"+251", + "code":"ET" + }, + { + "name":"Faroe Islands", + "dial_code":"+298", + "code":"FO" + }, + { + "name":"Fiji", + "dial_code":"+679", + "code":"FJ" + }, + { + "name":"Finland", + "dial_code":"+358", + "code":"FI" + }, + { + "name":"France", + "dial_code":"+33", + "code":"FR" + }, + { + "name":"French Guiana", + "dial_code":"+594", + "code":"GF" + }, + { + "name":"French Polynesia", + "dial_code":"+689", + "code":"PF" + }, + { + "name":"Gabon", + "dial_code":"+241", + "code":"GA" + }, + { + "name":"Gambia", + "dial_code":"+220", + "code":"GM" + }, + { + "name":"Georgia", + "dial_code":"+995", + "code":"GE" + }, + { + "name":"Germany", + "dial_code":"+49", + "code":"DE" + }, + { + "name":"Ghana", + "dial_code":"+233", + "code":"GH" + }, + { + "name":"Gibraltar", + "dial_code":"+350", + "code":"GI" + }, + { + "name":"Greece", + "dial_code":"+30", + "code":"GR" + }, + { + "name":"Greenland", + "dial_code":"+299", + "code":"GL" + }, + { + "name":"Grenada", + "dial_code":"+1473", + "code":"GD" + }, + { + "name":"Guadeloupe", + "dial_code":"+590", + "code":"GP" + }, + { + "name":"Guam", + "dial_code":"+1671", + "code":"GU" + }, + { + "name":"Guatemala", + "dial_code":"+502", + "code":"GT" + }, + { + "name":"Guinea", + "dial_code":"+224", + "code":"GN" + }, + { + "name":"Guinea-Bissau", + "dial_code":"+245", + "code":"GW" + }, + { + "name":"Guyana", + "dial_code":"+595", + "code":"GY" + }, + { + "name":"Haiti", + "dial_code":"+509", + "code":"HT" + }, + { + "name":"Honduras", + "dial_code":"+504", + "code":"HN" + }, + { + "name":"Hungary", + "dial_code":"+36", + "code":"HU" + }, + { + "name":"Iceland", + "dial_code":"+354", + "code":"IS" + }, + { + "name":"India", + "dial_code":"+91", + "code":"IN" + }, + { + "name":"Indonesia", + "dial_code":"+62", + "code":"ID" + }, + { + "name":"Iraq", + "dial_code":"+964", + "code":"IQ" + }, + { + "name":"Ireland", + "dial_code":"+353", + "code":"IE" + }, + { + "name":"Israel", + "dial_code":"+972", + "code":"IL" + }, + { + "name":"Italy", + "dial_code":"+39", + "code":"IT" + }, + { + "name":"Jamaica", + "dial_code":"+1876", + "code":"JM" + }, + { + "name":"Japan", + "dial_code":"+81", + "code":"JP" + }, + { + "name":"Jordan", + "dial_code":"+962", + "code":"JO" + }, + { + "name":"Kazakhstan", + "dial_code":"+7 7", + "code":"KZ" + }, + { + "name":"Kenya", + "dial_code":"+254", + "code":"KE" + }, + { + "name":"Kiribati", + "dial_code":"+686", + "code":"KI" + }, + { + "name":"Kuwait", + "dial_code":"+965", + "code":"KW" + }, + { + "name":"Kyrgyzstan", + "dial_code":"+996", + "code":"KG" + }, + { + "name":"Latvia", + "dial_code":"+371", + "code":"LV" + }, + { + "name":"Lebanon", + "dial_code":"+961", + "code":"LB" + }, + { + "name":"Lesotho", + "dial_code":"+266", + "code":"LS" + }, + { + "name":"Liberia", + "dial_code":"+231", + "code":"LR" + }, + { + "name":"Liechtenstein", + "dial_code":"+423", + "code":"LI" + }, + { + "name":"Lithuania", + "dial_code":"+370", + "code":"LT" + }, + { + "name":"Luxembourg", + "dial_code":"+352", + "code":"LU" + }, + { + "name":"Madagascar", + "dial_code":"+261", + "code":"MG" + }, + { + "name":"Malawi", + "dial_code":"+265", + "code":"MW" + }, + { + "name":"Malaysia", + "dial_code":"+60", + "code":"MY" + }, + { + "name":"Maldives", + "dial_code":"+960", + "code":"MV" + }, + { + "name":"Mali", + "dial_code":"+223", + "code":"ML" + }, + { + "name":"Malta", + "dial_code":"+356", + "code":"MT" + }, + { + "name":"Marshall Islands", + "dial_code":"+692", + "code":"MH" + }, + { + "name":"Martinique", + "dial_code":"+596", + "code":"MQ" + }, + { + "name":"Mauritania", + "dial_code":"+222", + "code":"MR" + }, + { + "name":"Mauritius", + "dial_code":"+230", + "code":"MU" + }, + { + "name":"Mayotte", + "dial_code":"+262", + "code":"YT" + }, + { + "name":"Mexico", + "dial_code":"+52", + "code":"MX" + }, + { + "name":"Monaco", + "dial_code":"+377", + "code":"MC" + }, + { + "name":"Mongolia", + "dial_code":"+976", + "code":"MN" + }, + { + "name":"Montenegro", + "dial_code":"+382", + "code":"ME" + }, + { + "name":"Montserrat", + "dial_code":"+1664", + "code":"MS" + }, + { + "name":"Morocco", + "dial_code":"+212", + "code":"MA" + }, + { + "name":"Myanmar", + "dial_code":"+95", + "code":"MM" + }, + { + "name":"Namibia", + "dial_code":"+264", + "code":"NA" + }, + { + "name":"Nauru", + "dial_code":"+674", + "code":"NR" + }, + { + "name":"Nepal", + "dial_code":"+977", + "code":"NP" + }, + { + "name":"Netherlands", + "dial_code":"+31", + "code":"NL" + }, + { + "name":"Netherlands Antilles", + "dial_code":"+599", + "code":"AN" + }, + { + "name":"New Caledonia", + "dial_code":"+687", + "code":"NC" + }, + { + "name":"New Zealand", + "dial_code":"+64", + "code":"NZ" + }, + { + "name":"Nicaragua", + "dial_code":"+505", + "code":"NI" + }, + { + "name":"Niger", + "dial_code":"+227", + "code":"NE" + }, + { + "name":"Nigeria", + "dial_code":"+234", + "code":"NG" + }, + { + "name":"Niue", + "dial_code":"+683", + "code":"NU" + }, + { + "name":"Norfolk Island", + "dial_code":"+672", + "code":"NF" + }, + { + "name":"Northern Mariana Islands", + "dial_code":"+1670", + "code":"MP" + }, + { + "name":"Norway", + "dial_code":"+47", + "code":"NO" + }, + { + "name":"Oman", + "dial_code":"+968", + "code":"OM" + }, + { + "name":"Pakistan", + "dial_code":"+92", + "code":"PK" + }, + { + "name":"Palau", + "dial_code":"+680", + "code":"PW" + }, + { + "name":"Panama", + "dial_code":"+507", + "code":"PA" + }, + { + "name":"Papua New Guinea", + "dial_code":"+675", + "code":"PG" + }, + { + "name":"Paraguay", + "dial_code":"+595", + "code":"PY" + }, + { + "name":"Peru", + "dial_code":"+51", + "code":"PE" + }, + { + "name":"Philippines", + "dial_code":"+63", + "code":"PH" + }, + { + "name":"Poland", + "dial_code":"+48", + "code":"PL" + }, + { + "name":"Portugal", + "dial_code":"+351", + "code":"PT" + }, + { + "name":"Puerto Rico", + "dial_code":"+1939", + "code":"PR" + }, + { + "name":"Qatar", + "dial_code":"+974", + "code":"QA" + }, + { + "name":"Romania", + "dial_code":"+40", + "code":"RO" + }, + { + "name":"Rwanda", + "dial_code":"+250", + "code":"RW" + }, + { + "name":"Samoa", + "dial_code":"+685", + "code":"WS" + }, + { + "name":"San Marino", + "dial_code":"+378", + "code":"SM" + }, + { + "name":"Saudi Arabia", + "dial_code":"+966", + "code":"SA" + }, + { + "name":"Senegal", + "dial_code":"+221", + "code":"SN" + }, + { + "name":"Serbia", + "dial_code":"+381", + "code":"RS" + }, + { + "name":"Seychelles", + "dial_code":"+248", + "code":"SC" + }, + { + "name":"Sierra Leone", + "dial_code":"+232", + "code":"SL" + }, + { + "name":"Singapore", + "dial_code":"+65", + "code":"SG" + }, + { + "name":"Slovakia", + "dial_code":"+421", + "code":"SK" + }, + { + "name":"Slovenia", + "dial_code":"+386", + "code":"SI" + }, + { + "name":"Solomon Islands", + "dial_code":"+677", + "code":"SB" + }, + { + "name":"South Africa", + "dial_code":"+27", + "code":"ZA" + }, + { + "name":"South Georgia and the South Sandwich Islands", + "dial_code":"+500", + "code":"GS" + }, + { + "name":"Spain", + "dial_code":"+34", + "code":"ES" + }, + { + "name":"Sri Lanka", + "dial_code":"+94", + "code":"LK" + }, + { + "name":"Sudan", + "dial_code":"+249", + "code":"SD" + }, + { + "name":"Suriname", + "dial_code":"+597", + "code":"SR" + }, + { + "name":"Swaziland", + "dial_code":"+268", + "code":"SZ" + }, + { + "name":"Sweden", + "dial_code":"+46", + "code":"SE" + }, + { + "name":"Switzerland", + "dial_code":"+41", + "code":"CH" + }, + { + "name":"Tajikistan", + "dial_code":"+992", + "code":"TJ" + }, + { + "name":"Thailand", + "dial_code":"+66", + "code":"TH" + }, + { + "name":"Togo", + "dial_code":"+228", + "code":"TG" + }, + { + "name":"Tokelau", + "dial_code":"+690", + "code":"TK" + }, + { + "name":"Tonga", + "dial_code":"+676", + "code":"TO" + }, + { + "name":"Trinidad and Tobago", + "dial_code":"+1868", + "code":"TT" + }, + { + "name":"Tunisia", + "dial_code":"+216", + "code":"TN" + }, + { + "name":"Turkey", + "dial_code":"+90", + "code":"TR" + }, + { + "name":"Turkmenistan", + "dial_code":"+993", + "code":"TM" + }, + { + "name":"Turks and Caicos Islands", + "dial_code":"+1649", + "code":"TC" + }, + { + "name":"Tuvalu", + "dial_code":"+688", + "code":"TV" + }, + { + "name":"Uganda", + "dial_code":"+256", + "code":"UG" + }, + { + "name":"Ukraine", + "dial_code":"+380", + "code":"UA" + }, + { + "name":"United Arab Emirates", + "dial_code":"+971", + "code":"AE" + }, + { + "name":"United Kingdom", + "dial_code":"+44", + "code":"GB" + }, + { + "name":"United States", + "dial_code":"+1", + "code":"US" + }, + { + "name":"Uruguay", + "dial_code":"+598", + "code":"UY" + }, + { + "name":"Uzbekistan", + "dial_code":"+998", + "code":"UZ" + }, + { + "name":"Vanuatu", + "dial_code":"+678", + "code":"VU" + }, + { + "name":"Wallis and Futuna", + "dial_code":"+681", + "code":"WF" + }, + { + "name":"Yemen", + "dial_code":"+967", + "code":"YE" + }, + { + "name":"Zambia", + "dial_code":"+260", + "code":"ZM" + }, + { + "name":"Zimbabwe", + "dial_code":"+263", + "code":"ZW" + }, + { + "name":"land Islands", + "dial_code":"", + "code":"AX" + }, + { + "name":"Antarctica", + "dial_code":null, + "code":"AQ" + }, + { + "name":"Bolivia, Plurinational State of", + "dial_code":"+591", + "code":"BO" + }, + { + "name":"Brunei Darussalam", + "dial_code":"+673", + "code":"BN" + }, + { + "name":"Cocos (Keeling) Islands", + "dial_code":"+61", + "code":"CC" + }, + { + "name":"Congo, The Democratic Republic of the", + "dial_code":"+243", + "code":"CD" + }, + { + "name":"Cote d'Ivoire", + "dial_code":"+225", + "code":"CI" + }, + { + "name":"Falkland Islands (Malvinas)", + "dial_code":"+500", + "code":"FK" + }, + { + "name":"Guernsey", + "dial_code":"+44", + "code":"GG" + }, + { + "name":"Holy See (Vatican City State)", + "dial_code":"+379", + "code":"VA" + }, + { + "name":"Hong Kong", + "dial_code":"+852", + "code":"HK" + }, + { + "name":"Iran, Islamic Republic of", + "dial_code":"+98", + "code":"IR" + }, + { + "name":"Isle of Man", + "dial_code":"+44", + "code":"IM" + }, + { + "name":"Jersey", + "dial_code":"+44", + "code":"JE" + }, + { + "name":"Korea, Democratic People's Republic of", + "dial_code":"+850", + "code":"KP" + }, + { + "name":"Korea, Republic of", + "dial_code":"+82", + "code":"KR" + }, + { + "name":"Lao People's Democratic Republic", + "dial_code":"+856", + "code":"LA" + }, + { + "name":"Libyan Arab Jamahiriya", + "dial_code":"+218", + "code":"LY" + }, + { + "name":"Macao", + "dial_code":"+853", + "code":"MO" + }, + { + "name":"Macedonia, The Former Yugoslav Republic of", + "dial_code":"+389", + "code":"MK" + }, + { + "name":"Micronesia, Federated States of", + "dial_code":"+691", + "code":"FM" + }, + { + "name":"Moldova, Republic of", + "dial_code":"+373", + "code":"MD" + }, + { + "name":"Mozambique", + "dial_code":"+258", + "code":"MZ" + }, + { + "name":"Palestinian Territory, Occupied", + "dial_code":"+970", + "code":"PS" + }, + { + "name":"Pitcairn", + "dial_code":"+872", + "code":"PN" + }, + { + "name":"Réunion", + "dial_code":"+262", + "code":"RE" + }, + { + "name":"Russia", + "dial_code":"+7", + "code":"RU" + }, + { + "name":"Saint Barthélemy", + "dial_code":"+590", + "code":"BL" + }, + { + "name":"Saint Helena, Ascension and Tristan Da Cunha", + "dial_code":"+290", + "code":"SH" + }, + { + "name":"Saint Kitts and Nevis", + "dial_code":"+1869", + "code":"KN" + }, + { + "name":"Saint Lucia", + "dial_code":"+1758", + "code":"LC" + }, + { + "name":"Saint Martin", + "dial_code":"+590", + "code":"MF" + }, + { + "name":"Saint Pierre and Miquelon", + "dial_code":"+508", + "code":"PM" + }, + { + "name":"Saint Vincent and the Grenadines", + "dial_code":"+1784", + "code":"VC" + }, + { + "name":"Sao Tome and Principe", + "dial_code":"+239", + "code":"ST" + }, + { + "name":"Somalia", + "dial_code":"+252", + "code":"SO" + }, + { + "name":"Svalbard and Jan Mayen", + "dial_code":"+47", + "code":"SJ" + }, + { + "name":"Syrian Arab Republic", + "dial_code":"+963", + "code":"SY" + }, + { + "name":"Taiwan, Province of China", + "dial_code":"+886", + "code":"TW" + }, + { + "name":"Tanzania, United Republic of", + "dial_code":"+255", + "code":"TZ" + }, + { + "name":"Timor-Leste", + "dial_code":"+670", + "code":"TL" + }, + { + "name":"Venezuela, Bolivarian Republic of", + "dial_code":"+58", + "code":"VE" + }, + { + "name":"Viet Nam", + "dial_code":"+84", + "code":"VN" + }, + { + "name":"Virgin Islands, British", + "dial_code":"+1284", + "code":"VG" + }, + { + "name":"Virgin Islands, U.S.", + "dial_code":"+1340", + "code":"VI" + } +] \ No newline at end of file From 79eea2ee7b5d27df0af9646bf5b45af71ec0aa35 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 16:28:03 +0100 Subject: [PATCH 08/72] Requirements --- requirements.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b3d030c..4c6373c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,6 @@ requests -BeautifulSoup +sys +hashlib +json +argparse +re \ No newline at end of file From a21cd07c1131d86a91fe79f96a6b7e422bb01f22 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 16:28:23 +0100 Subject: [PATCH 09/72] Refactor arguments parsing & scanners --- phoneinfoga.py | 202 ++++++++++++++++++++++++++++++++++--------------- 1 file changed, 142 insertions(+), 60 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 8ec29e2..a08f3fa 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,14 +1,14 @@ #!/usr/bin/env python -try: - import requests - import sys - import hashlib - import json - from bs4 import BeautifulSoup -except: - print "Request library not found, please install it before proceeding\n" - sys.exit() +import requests +import sys +import hashlib +import json +import argparse +from bs4 import BeautifulSoup +import re + +__version__ = '0.3-dev' print "\n \033[92m" print " ___ _ _____ __ " @@ -17,62 +17,144 @@ print " / /_)/ '_ \ / _ \| '_ \ / _ \ / /\/ '_ \| |_ / _ \ / _` |/ _` |" print " / ___/| | | | (_) | | | | __/\/ /_ | | | | _| (_) | (_| | (_| |" print " \/ |_| |_|\___/|_| |_|\___\____/ |_| |_|_| \___/ \__, |\__,_|" print " |___/ " -print " PhoneInfoga Ver. 0.2.1 " -print " Coded by Raphael Cerveaux " -print "\033[94m\n\n" +print " PhoneInfoga Ver. %s " % __version__ +print " Coded by Sundowndev " +print "\033[94m\n" -def help(): - print "Usage: PhoneInfoga options \n" - print " -n|--number: Phone number to search" - print " -h|--help: Help command" +parser = argparse.ArgumentParser(description= + "Advanced information gathering tool for phone numbers (https://github.com/sundowndev/PhoneInfoga) version %s" % __version__, + usage='%(prog)s -n [options]') -def getRequestSecret(): - requestSecret = '' - resp = requests.get('https://numverify.com/') - soup = BeautifulSoup(resp.text, "html5lib") - for tag in soup.find_all("input", type="hidden"): - if tag['name'] == "scl_request_secret": - requestSecret = tag['value'] - break; - - return requestSecret +parser.add_argument('-n', '--number', metavar='number', type=str, + help='The phone number to scan (E164 and International format)') -def getInformations(PhoneNumber): - # verify input type - if str.isdigit(PhoneNumber) != True: - print("\033[31mError: please enter a valid integer.") - sys.exit() +parser.add_argument('-i', '--input', metavar="input_file", type=file, + help='Phone number list to scan (one per line)') - print("Fetching information for number +" + PhoneNumber + "...") +parser.add_argument('-o', '--output', metavar="output_file", type=file, + help='Output to save scan results') - apiKey = hashlib.md5(PhoneNumber + getRequestSecret()).hexdigest() +parser.add_argument('-s', '--scanner', metavar="scanner", default="all", type=str, + help='The scanner to use') - response = requests.get("https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber) - if response.content == "Unauthorized" or response.status_code != 200: - print("An error occured while calling the API (bad request or wrong api key).") - sys.exit() +parser.add_argument('-u', '--update', action='store_true', + help='Update the tool & databases') - data = json.loads(response.content) - - try: - data["valid"] == True - except: - print("\033[31mError: Please specify a phone number. " + PhoneNumber + " is not valid.") - print("Example: 14158586273\033[94m") - sys.exit() - else: - print "\n" - print "\033[1;32m1 result found for (" + data["country_prefix"] + ") " + data["local_format"] - print "\n" - print("[Country] " + data["country_name"] + "(" + data["country_code"] + ")") - print("[Carrier] " + data["carrier"]) - print("[Line type] " + data["line_type"]) +args = parser.parse_args() -try: - sys.argv[1:][0] == "-n" or sys.argv[1:][0] == "--number" -except: - help() - sys.exit() -else: - PhoneNumber = sys.argv[1:][1] - getInformations(PhoneNumber) +# If any param is passed, execute help command +if not len(sys.argv) > 1: + parser.print_help() + +if args.update: + print 'update' + sys.exit() + +scanners = ['any', 'all', 'ovh', 'numverify'] + +def parseInput(file): + print 'parse' + +def saveToOutput(): + print 'save' + +def isNumberValid(PhoneNumber): + if len(PhoneNumber) < 9 and len(PhoneNumber) > 13: + return False + elif not re.match("^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$", PhoneNumber): + return False + else: + return True + +def formatNumber(number): + PhoneNumber = number.replace("+", "").replace(" ", "") + return PhoneNumber + +def searchCountryCode(number): + #parse code + + #check in json + print '\033[1;32m[+] Country found : France (FR)' + + #check for area code + print '\033[1;32m[+] Area code found : Bordeaux, Limoges' + print '\n' + print '\033[1;32m[i] This is most likely a landline' + + print '\n' + +def numverifyScan(PhoneNumber): + if args.scanner == 'numverify' or args.scanner == 'any': + return -1 + + print '[i] Running Numverify scan...' + + requestSecret = '' + resp = requests.get('https://numverify.com/') + soup = BeautifulSoup(resp.text, "html5lib") + for tag in soup.find_all("input", type="hidden"): + if tag['name'] == "scl_request_secret": + requestSecret = tag['value'] + break; + + apiKey = hashlib.md5() + apiKey.update(PhoneNumber + requestSecret) + apiKey = apiKey.hexdigest() + + response = requests.get("https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber) + + if response.content == "Unauthorized" or response.status_code != 200: + print("An error occured while calling the API (bad request or wrong api key).") + sys.exit() + + data = json.loads(response.content) + + if data["valid"] == False: + print("\033[91mError: Please specify a valid phone number. " + PhoneNumber + " is not valid.") + print("Example: 14158586273\033[94m") + sys.exit() + + print "Number: (" + data["country_prefix"] + ") " + data["local_format"] + print("Country: %s (%s)") % (data["country_name"],data["country_code"]) + print("Location: %s") % data["location"] + print("Carrier: %s") % data["carrier"] + print("Line type: %s") % data["line_type"] + print "\n" + +def ovhScan(number): + if not args.scanner == 'ovh' or args.scanner == 'any': + return -1 + + print '[i] Running OVH scan...' + print '(!) OVH API credentials missing. Skipping.' + +def scanNumber(number): + PhoneNumber = formatNumber(number) + + print("[!] ---- Fetching informations for number +" + PhoneNumber + " ---- [!]") + print "\n" + + if not isNumberValid(PhoneNumber): + print("\033[91mError: number " + number + " is not valid Skipping.") + sys.exit() + + #check dial code + searchCountryCode(PhoneNumber) + #check area code by country + #if found in area codes -> landline + + numverifyScan(PhoneNumber) + ovhScan(PhoneNumber) + +# Verify scanner +if not args.scanner in scanners: + print("\033[91mError: scanner doesn't exists.") + sys.exit() + +if args.number: + scanNumber(args.number) +elif args.input: + print parseInput(args.input) + +if args.output: + print 'test' \ No newline at end of file From 19a41ff46d6b0b8cb2e2438651d274b31cf50966 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 16:28:48 +0100 Subject: [PATCH 10/72] Move databases --- AreaCodes.json | 366 -------------- CountryCodes.json | 1212 --------------------------------------------- 2 files changed, 1578 deletions(-) delete mode 100644 AreaCodes.json delete mode 100644 CountryCodes.json diff --git a/AreaCodes.json b/AreaCodes.json deleted file mode 100644 index 6717e36..0000000 --- a/AreaCodes.json +++ /dev/null @@ -1,366 +0,0 @@ -[ - { - "CountryCode": "FR", - "AreaCodes": [ - { - "area": "Bordeaux", - "code": "5" - }, - { - "area": "Boulogne", - "code": "3" - }, - { - "area": "Brest", - "code": "2" - }, - { - "area": "Calais", - "code": "3" - }, - { - "area": "Cannes", - "code": "4" - }, - { - "area": "Corsica", - "code": "495" - }, - { - "area": "Dijon", - "code": "3" - }, - { - "area": "Grenoble", - "code": "4" - }, - { - "area": "Cherbourg", - "code": "2" - }, - { - "area": "Le Havre", - "code": "2" - }, - { - "area": "Lille", - "code": "3" - }, - { - "area": "Limoges", - "code": "5" - }, - { - "area": "Lourdes", - "code": "5" - }, - { - "area": "Lyon", - "code": "4" - }, - { - "area": "Marseille", - "code": "4" - }, - { - "area": "Nancy", - "code": "3" - }, - { - "area": "Nantes", - "code": "2" - }, - { - "area": "Nice", - "code": "4" - }, - { - "area": "Orleans", - "code": "2" - }, - { - "area": "Paris", - "code": "1" - }, - { - "area": "Reims", - "code": "3" - }, - { - "area": "Rouen", - "code": "2" - }, - { - "area": "St. Etienne", - "code": "4" - }, - { - "area": "Strasbourg", - "code": "3" - }, - { - "area": "Toulon", - "code": "4" - }, - { - "area": "Toulouse", - "code": "5" - }, - { - "area": "Troyes", - "code": "3" - }, - { - "area": "Valence", - "code": "4" - } - ] - }, - { - "CountryCode": "CN", - "AreaCodes": [ - { - "area": "Anshan", - "code": "412" - }, - { - "area": "Beijing", - "code": "10" - }, - { - "area": "Dalian", - "code": "411" - }, - { - "area": "Guangzhou", - "code": "20" - }, - { - "area": "Hangzhou", - "code": "571" - }, - { - "area": "Harbin", - "code": "451" - }, - { - "area": "Huaian", - "code": "517" - }, - { - "area": "Huaibei", - "code": "561" - }, - { - "area": "Changchun", - "code": "431" - }, - { - "area": "Chengdu", - "code": "28" - }, - { - "area": "Chongqing", - "code": "23" - }, - { - "area": "Jilin", - "code": "432" - }, - { - "area": "Jinan", - "code": "531" - }, - { - "area": "Nanjing", - "code": "25" - }, - { - "area": "Ningbo", - "code": "574" - }, - { - "area": "Qingdao", - "code": "532" - }, - { - "area": "Shanghai", - "code": "21" - }, - { - "area": "Shenyang", - "code": "24" - }, - { - "area": "Suizhou", - "code": "722" - }, - { - "area": "Tianjin", - "code": "22" - }, - { - "area": "Weifang", - "code": "536" - }, - { - "area": "Wuhan", - "code": "27" - }, - { - "area": "Wuxi", - "code": "510" - }, - { - "area": "Xiangfan", - "code": "710" - }, - { - "area": "Yangzhou", - "code": "514" - }, - { - "area": "Yantai", - "code": "535" - }, - { - "area": "Zaozhuang", - "code": "632" - }, - { - "area": "Zibo", - "code": "533" - } - ] - }, - { - "CountryCode": "DE", - "AreaCodes": [ - { - "area": "Aachen", - "code": "241" - }, - { - "area": "Augsburg", - "code": "821" - }, - { - "area": "Berlin", - "code": "30" - }, - { - "area": "Bielefeld", - "code": "521" - }, - { - "area": "Bochum", - "code": "234" - }, - { - "area": "Bonn", - "code": "228" - }, - { - "area": "Brandenburg", - "code": "3381" - }, - { - "area": "Bremen", - "code": "421" - }, - { - "area": "Dortmund", - "code": "231" - }, - { - "area": "Dresden", - "code": "351" - }, - { - "area": "Duisburg", - "code": "203" - }, - { - "area": "Dusseldorf", - "code": "211" - }, - { - "area": "Essen", - "code": "201" - }, - { - "area": "Frankfurt", - "code": "69" - }, - { - "area": "Gelsenkirchen", - "code": "209" - }, - { - "area": "Hamburg", - "code": "40" - }, - { - "area": "Hannover", - "code": "511" - }, - { - "area": "Chemnitz", - "code": "371" - }, - { - "area": "Karlsruhe", - "code": "721" - }, - { - "area": "Koln", - "code": "221" - }, - { - "area": "Krefeld", - "code": "2151" - }, - { - "area": "Leipzig", - "code": "341" - }, - { - "area": "Mainz", - "code": "6131" - }, - { - "area": "Mannheim", - "code": "621" - }, - { - "area": "Munchen", - "code": "89" - }, - { - "area": "Munster", - "code": "6071" - }, - { - "area": "Nurnberg", - "code": "911" - }, - { - "area": "Stuttgart", - "code": "711" - }, - { - "area": "Wiesbaden", - "code": "611" - }, - { - "area": "Wuppertal", - "code": "202" - } - ] - }, - { - "CountryCode": "CN", - "AreaCodes": [] - } -] - diff --git a/CountryCodes.json b/CountryCodes.json deleted file mode 100644 index 116f43e..0000000 --- a/CountryCodes.json +++ /dev/null @@ -1,1212 +0,0 @@ -[ - { - "name":"Israel", - "dial_code":"+972", - "code":"IL" - }, - { - "name":"Afghanistan", - "dial_code":"+93", - "code":"AF" - }, - { - "name":"Albania", - "dial_code":"+355", - "code":"AL" - }, - { - "name":"Algeria", - "dial_code":"+213", - "code":"DZ" - }, - { - "name":"AmericanSamoa", - "dial_code":"+1684", - "code":"AS" - }, - { - "name":"Andorra", - "dial_code":"+376", - "code":"AD" - }, - { - "name":"Angola", - "dial_code":"+244", - "code":"AO" - }, - { - "name":"Anguilla", - "dial_code":"+1264", - "code":"AI" - }, - { - "name":"Antigua and Barbuda", - "dial_code":"+1268", - "code":"AG" - }, - { - "name":"Argentina", - "dial_code":"+54", - "code":"AR" - }, - { - "name":"Armenia", - "dial_code":"+374", - "code":"AM" - }, - { - "name":"Aruba", - "dial_code":"+297", - "code":"AW" - }, - { - "name":"Australia", - "dial_code":"+61", - "code":"AU" - }, - { - "name":"Austria", - "dial_code":"+43", - "code":"AT" - }, - { - "name":"Azerbaijan", - "dial_code":"+994", - "code":"AZ" - }, - { - "name":"Bahamas", - "dial_code":"+1242", - "code":"BS" - }, - { - "name":"Bahrain", - "dial_code":"+973", - "code":"BH" - }, - { - "name":"Bangladesh", - "dial_code":"+880", - "code":"BD" - }, - { - "name":"Barbados", - "dial_code":"+1246", - "code":"BB" - }, - { - "name":"Belarus", - "dial_code":"+375", - "code":"BY" - }, - { - "name":"Belgium", - "dial_code":"+32", - "code":"BE" - }, - { - "name":"Belize", - "dial_code":"+501", - "code":"BZ" - }, - { - "name":"Benin", - "dial_code":"+229", - "code":"BJ" - }, - { - "name":"Bermuda", - "dial_code":"+1441", - "code":"BM" - }, - { - "name":"Bhutan", - "dial_code":"+975", - "code":"BT" - }, - { - "name":"Bosnia and Herzegovina", - "dial_code":"+387", - "code":"BA" - }, - { - "name":"Botswana", - "dial_code":"+267", - "code":"BW" - }, - { - "name":"Brazil", - "dial_code":"+55", - "code":"BR" - }, - { - "name":"British Indian Ocean Territory", - "dial_code":"+246", - "code":"IO" - }, - { - "name":"Bulgaria", - "dial_code":"+359", - "code":"BG" - }, - { - "name":"Burkina Faso", - "dial_code":"+226", - "code":"BF" - }, - { - "name":"Burundi", - "dial_code":"+257", - "code":"BI" - }, - { - "name":"Cambodia", - "dial_code":"+855", - "code":"KH" - }, - { - "name":"Cameroon", - "dial_code":"+237", - "code":"CM" - }, - { - "name":"Canada", - "dial_code":"+1", - "code":"CA" - }, - { - "name":"Cape Verde", - "dial_code":"+238", - "code":"CV" - }, - { - "name":"Cayman Islands", - "dial_code":"+ 345", - "code":"KY" - }, - { - "name":"Central African Republic", - "dial_code":"+236", - "code":"CF" - }, - { - "name":"Chad", - "dial_code":"+235", - "code":"TD" - }, - { - "name":"Chile", - "dial_code":"+56", - "code":"CL" - }, - { - "name":"China", - "dial_code":"+86", - "code":"CN" - }, - { - "name":"Christmas Island", - "dial_code":"+61", - "code":"CX" - }, - { - "name":"Colombia", - "dial_code":"+57", - "code":"CO" - }, - { - "name":"Comoros", - "dial_code":"+269", - "code":"KM" - }, - { - "name":"Congo", - "dial_code":"+242", - "code":"CG" - }, - { - "name":"Cook Islands", - "dial_code":"+682", - "code":"CK" - }, - { - "name":"Costa Rica", - "dial_code":"+506", - "code":"CR" - }, - { - "name":"Croatia", - "dial_code":"+385", - "code":"HR" - }, - { - "name":"Cuba", - "dial_code":"+53", - "code":"CU" - }, - { - "name":"Cyprus", - "dial_code":"+537", - "code":"CY" - }, - { - "name":"Czech Republic", - "dial_code":"+420", - "code":"CZ" - }, - { - "name":"Denmark", - "dial_code":"+45", - "code":"DK" - }, - { - "name":"Djibouti", - "dial_code":"+253", - "code":"DJ" - }, - { - "name":"Dominica", - "dial_code":"+1767", - "code":"DM" - }, - { - "name":"Dominican Republic", - "dial_code":"+1849", - "code":"DO" - }, - { - "name":"Ecuador", - "dial_code":"+593", - "code":"EC" - }, - { - "name":"Egypt", - "dial_code":"+20", - "code":"EG" - }, - { - "name":"El Salvador", - "dial_code":"+503", - "code":"SV" - }, - { - "name":"Equatorial Guinea", - "dial_code":"+240", - "code":"GQ" - }, - { - "name":"Eritrea", - "dial_code":"+291", - "code":"ER" - }, - { - "name":"Estonia", - "dial_code":"+372", - "code":"EE" - }, - { - "name":"Ethiopia", - "dial_code":"+251", - "code":"ET" - }, - { - "name":"Faroe Islands", - "dial_code":"+298", - "code":"FO" - }, - { - "name":"Fiji", - "dial_code":"+679", - "code":"FJ" - }, - { - "name":"Finland", - "dial_code":"+358", - "code":"FI" - }, - { - "name":"France", - "dial_code":"+33", - "code":"FR" - }, - { - "name":"French Guiana", - "dial_code":"+594", - "code":"GF" - }, - { - "name":"French Polynesia", - "dial_code":"+689", - "code":"PF" - }, - { - "name":"Gabon", - "dial_code":"+241", - "code":"GA" - }, - { - "name":"Gambia", - "dial_code":"+220", - "code":"GM" - }, - { - "name":"Georgia", - "dial_code":"+995", - "code":"GE" - }, - { - "name":"Germany", - "dial_code":"+49", - "code":"DE" - }, - { - "name":"Ghana", - "dial_code":"+233", - "code":"GH" - }, - { - "name":"Gibraltar", - "dial_code":"+350", - "code":"GI" - }, - { - "name":"Greece", - "dial_code":"+30", - "code":"GR" - }, - { - "name":"Greenland", - "dial_code":"+299", - "code":"GL" - }, - { - "name":"Grenada", - "dial_code":"+1473", - "code":"GD" - }, - { - "name":"Guadeloupe", - "dial_code":"+590", - "code":"GP" - }, - { - "name":"Guam", - "dial_code":"+1671", - "code":"GU" - }, - { - "name":"Guatemala", - "dial_code":"+502", - "code":"GT" - }, - { - "name":"Guinea", - "dial_code":"+224", - "code":"GN" - }, - { - "name":"Guinea-Bissau", - "dial_code":"+245", - "code":"GW" - }, - { - "name":"Guyana", - "dial_code":"+595", - "code":"GY" - }, - { - "name":"Haiti", - "dial_code":"+509", - "code":"HT" - }, - { - "name":"Honduras", - "dial_code":"+504", - "code":"HN" - }, - { - "name":"Hungary", - "dial_code":"+36", - "code":"HU" - }, - { - "name":"Iceland", - "dial_code":"+354", - "code":"IS" - }, - { - "name":"India", - "dial_code":"+91", - "code":"IN" - }, - { - "name":"Indonesia", - "dial_code":"+62", - "code":"ID" - }, - { - "name":"Iraq", - "dial_code":"+964", - "code":"IQ" - }, - { - "name":"Ireland", - "dial_code":"+353", - "code":"IE" - }, - { - "name":"Israel", - "dial_code":"+972", - "code":"IL" - }, - { - "name":"Italy", - "dial_code":"+39", - "code":"IT" - }, - { - "name":"Jamaica", - "dial_code":"+1876", - "code":"JM" - }, - { - "name":"Japan", - "dial_code":"+81", - "code":"JP" - }, - { - "name":"Jordan", - "dial_code":"+962", - "code":"JO" - }, - { - "name":"Kazakhstan", - "dial_code":"+7 7", - "code":"KZ" - }, - { - "name":"Kenya", - "dial_code":"+254", - "code":"KE" - }, - { - "name":"Kiribati", - "dial_code":"+686", - "code":"KI" - }, - { - "name":"Kuwait", - "dial_code":"+965", - "code":"KW" - }, - { - "name":"Kyrgyzstan", - "dial_code":"+996", - "code":"KG" - }, - { - "name":"Latvia", - "dial_code":"+371", - "code":"LV" - }, - { - "name":"Lebanon", - "dial_code":"+961", - "code":"LB" - }, - { - "name":"Lesotho", - "dial_code":"+266", - "code":"LS" - }, - { - "name":"Liberia", - "dial_code":"+231", - "code":"LR" - }, - { - "name":"Liechtenstein", - "dial_code":"+423", - "code":"LI" - }, - { - "name":"Lithuania", - "dial_code":"+370", - "code":"LT" - }, - { - "name":"Luxembourg", - "dial_code":"+352", - "code":"LU" - }, - { - "name":"Madagascar", - "dial_code":"+261", - "code":"MG" - }, - { - "name":"Malawi", - "dial_code":"+265", - "code":"MW" - }, - { - "name":"Malaysia", - "dial_code":"+60", - "code":"MY" - }, - { - "name":"Maldives", - "dial_code":"+960", - "code":"MV" - }, - { - "name":"Mali", - "dial_code":"+223", - "code":"ML" - }, - { - "name":"Malta", - "dial_code":"+356", - "code":"MT" - }, - { - "name":"Marshall Islands", - "dial_code":"+692", - "code":"MH" - }, - { - "name":"Martinique", - "dial_code":"+596", - "code":"MQ" - }, - { - "name":"Mauritania", - "dial_code":"+222", - "code":"MR" - }, - { - "name":"Mauritius", - "dial_code":"+230", - "code":"MU" - }, - { - "name":"Mayotte", - "dial_code":"+262", - "code":"YT" - }, - { - "name":"Mexico", - "dial_code":"+52", - "code":"MX" - }, - { - "name":"Monaco", - "dial_code":"+377", - "code":"MC" - }, - { - "name":"Mongolia", - "dial_code":"+976", - "code":"MN" - }, - { - "name":"Montenegro", - "dial_code":"+382", - "code":"ME" - }, - { - "name":"Montserrat", - "dial_code":"+1664", - "code":"MS" - }, - { - "name":"Morocco", - "dial_code":"+212", - "code":"MA" - }, - { - "name":"Myanmar", - "dial_code":"+95", - "code":"MM" - }, - { - "name":"Namibia", - "dial_code":"+264", - "code":"NA" - }, - { - "name":"Nauru", - "dial_code":"+674", - "code":"NR" - }, - { - "name":"Nepal", - "dial_code":"+977", - "code":"NP" - }, - { - "name":"Netherlands", - "dial_code":"+31", - "code":"NL" - }, - { - "name":"Netherlands Antilles", - "dial_code":"+599", - "code":"AN" - }, - { - "name":"New Caledonia", - "dial_code":"+687", - "code":"NC" - }, - { - "name":"New Zealand", - "dial_code":"+64", - "code":"NZ" - }, - { - "name":"Nicaragua", - "dial_code":"+505", - "code":"NI" - }, - { - "name":"Niger", - "dial_code":"+227", - "code":"NE" - }, - { - "name":"Nigeria", - "dial_code":"+234", - "code":"NG" - }, - { - "name":"Niue", - "dial_code":"+683", - "code":"NU" - }, - { - "name":"Norfolk Island", - "dial_code":"+672", - "code":"NF" - }, - { - "name":"Northern Mariana Islands", - "dial_code":"+1670", - "code":"MP" - }, - { - "name":"Norway", - "dial_code":"+47", - "code":"NO" - }, - { - "name":"Oman", - "dial_code":"+968", - "code":"OM" - }, - { - "name":"Pakistan", - "dial_code":"+92", - "code":"PK" - }, - { - "name":"Palau", - "dial_code":"+680", - "code":"PW" - }, - { - "name":"Panama", - "dial_code":"+507", - "code":"PA" - }, - { - "name":"Papua New Guinea", - "dial_code":"+675", - "code":"PG" - }, - { - "name":"Paraguay", - "dial_code":"+595", - "code":"PY" - }, - { - "name":"Peru", - "dial_code":"+51", - "code":"PE" - }, - { - "name":"Philippines", - "dial_code":"+63", - "code":"PH" - }, - { - "name":"Poland", - "dial_code":"+48", - "code":"PL" - }, - { - "name":"Portugal", - "dial_code":"+351", - "code":"PT" - }, - { - "name":"Puerto Rico", - "dial_code":"+1939", - "code":"PR" - }, - { - "name":"Qatar", - "dial_code":"+974", - "code":"QA" - }, - { - "name":"Romania", - "dial_code":"+40", - "code":"RO" - }, - { - "name":"Rwanda", - "dial_code":"+250", - "code":"RW" - }, - { - "name":"Samoa", - "dial_code":"+685", - "code":"WS" - }, - { - "name":"San Marino", - "dial_code":"+378", - "code":"SM" - }, - { - "name":"Saudi Arabia", - "dial_code":"+966", - "code":"SA" - }, - { - "name":"Senegal", - "dial_code":"+221", - "code":"SN" - }, - { - "name":"Serbia", - "dial_code":"+381", - "code":"RS" - }, - { - "name":"Seychelles", - "dial_code":"+248", - "code":"SC" - }, - { - "name":"Sierra Leone", - "dial_code":"+232", - "code":"SL" - }, - { - "name":"Singapore", - "dial_code":"+65", - "code":"SG" - }, - { - "name":"Slovakia", - "dial_code":"+421", - "code":"SK" - }, - { - "name":"Slovenia", - "dial_code":"+386", - "code":"SI" - }, - { - "name":"Solomon Islands", - "dial_code":"+677", - "code":"SB" - }, - { - "name":"South Africa", - "dial_code":"+27", - "code":"ZA" - }, - { - "name":"South Georgia and the South Sandwich Islands", - "dial_code":"+500", - "code":"GS" - }, - { - "name":"Spain", - "dial_code":"+34", - "code":"ES" - }, - { - "name":"Sri Lanka", - "dial_code":"+94", - "code":"LK" - }, - { - "name":"Sudan", - "dial_code":"+249", - "code":"SD" - }, - { - "name":"Suriname", - "dial_code":"+597", - "code":"SR" - }, - { - "name":"Swaziland", - "dial_code":"+268", - "code":"SZ" - }, - { - "name":"Sweden", - "dial_code":"+46", - "code":"SE" - }, - { - "name":"Switzerland", - "dial_code":"+41", - "code":"CH" - }, - { - "name":"Tajikistan", - "dial_code":"+992", - "code":"TJ" - }, - { - "name":"Thailand", - "dial_code":"+66", - "code":"TH" - }, - { - "name":"Togo", - "dial_code":"+228", - "code":"TG" - }, - { - "name":"Tokelau", - "dial_code":"+690", - "code":"TK" - }, - { - "name":"Tonga", - "dial_code":"+676", - "code":"TO" - }, - { - "name":"Trinidad and Tobago", - "dial_code":"+1868", - "code":"TT" - }, - { - "name":"Tunisia", - "dial_code":"+216", - "code":"TN" - }, - { - "name":"Turkey", - "dial_code":"+90", - "code":"TR" - }, - { - "name":"Turkmenistan", - "dial_code":"+993", - "code":"TM" - }, - { - "name":"Turks and Caicos Islands", - "dial_code":"+1649", - "code":"TC" - }, - { - "name":"Tuvalu", - "dial_code":"+688", - "code":"TV" - }, - { - "name":"Uganda", - "dial_code":"+256", - "code":"UG" - }, - { - "name":"Ukraine", - "dial_code":"+380", - "code":"UA" - }, - { - "name":"United Arab Emirates", - "dial_code":"+971", - "code":"AE" - }, - { - "name":"United Kingdom", - "dial_code":"+44", - "code":"GB" - }, - { - "name":"United States", - "dial_code":"+1", - "code":"US" - }, - { - "name":"Uruguay", - "dial_code":"+598", - "code":"UY" - }, - { - "name":"Uzbekistan", - "dial_code":"+998", - "code":"UZ" - }, - { - "name":"Vanuatu", - "dial_code":"+678", - "code":"VU" - }, - { - "name":"Wallis and Futuna", - "dial_code":"+681", - "code":"WF" - }, - { - "name":"Yemen", - "dial_code":"+967", - "code":"YE" - }, - { - "name":"Zambia", - "dial_code":"+260", - "code":"ZM" - }, - { - "name":"Zimbabwe", - "dial_code":"+263", - "code":"ZW" - }, - { - "name":"land Islands", - "dial_code":"", - "code":"AX" - }, - { - "name":"Antarctica", - "dial_code":null, - "code":"AQ" - }, - { - "name":"Bolivia, Plurinational State of", - "dial_code":"+591", - "code":"BO" - }, - { - "name":"Brunei Darussalam", - "dial_code":"+673", - "code":"BN" - }, - { - "name":"Cocos (Keeling) Islands", - "dial_code":"+61", - "code":"CC" - }, - { - "name":"Congo, The Democratic Republic of the", - "dial_code":"+243", - "code":"CD" - }, - { - "name":"Cote d'Ivoire", - "dial_code":"+225", - "code":"CI" - }, - { - "name":"Falkland Islands (Malvinas)", - "dial_code":"+500", - "code":"FK" - }, - { - "name":"Guernsey", - "dial_code":"+44", - "code":"GG" - }, - { - "name":"Holy See (Vatican City State)", - "dial_code":"+379", - "code":"VA" - }, - { - "name":"Hong Kong", - "dial_code":"+852", - "code":"HK" - }, - { - "name":"Iran, Islamic Republic of", - "dial_code":"+98", - "code":"IR" - }, - { - "name":"Isle of Man", - "dial_code":"+44", - "code":"IM" - }, - { - "name":"Jersey", - "dial_code":"+44", - "code":"JE" - }, - { - "name":"Korea, Democratic People's Republic of", - "dial_code":"+850", - "code":"KP" - }, - { - "name":"Korea, Republic of", - "dial_code":"+82", - "code":"KR" - }, - { - "name":"Lao People's Democratic Republic", - "dial_code":"+856", - "code":"LA" - }, - { - "name":"Libyan Arab Jamahiriya", - "dial_code":"+218", - "code":"LY" - }, - { - "name":"Macao", - "dial_code":"+853", - "code":"MO" - }, - { - "name":"Macedonia, The Former Yugoslav Republic of", - "dial_code":"+389", - "code":"MK" - }, - { - "name":"Micronesia, Federated States of", - "dial_code":"+691", - "code":"FM" - }, - { - "name":"Moldova, Republic of", - "dial_code":"+373", - "code":"MD" - }, - { - "name":"Mozambique", - "dial_code":"+258", - "code":"MZ" - }, - { - "name":"Palestinian Territory, Occupied", - "dial_code":"+970", - "code":"PS" - }, - { - "name":"Pitcairn", - "dial_code":"+872", - "code":"PN" - }, - { - "name":"Réunion", - "dial_code":"+262", - "code":"RE" - }, - { - "name":"Russia", - "dial_code":"+7", - "code":"RU" - }, - { - "name":"Saint Barthélemy", - "dial_code":"+590", - "code":"BL" - }, - { - "name":"Saint Helena, Ascension and Tristan Da Cunha", - "dial_code":"+290", - "code":"SH" - }, - { - "name":"Saint Kitts and Nevis", - "dial_code":"+1869", - "code":"KN" - }, - { - "name":"Saint Lucia", - "dial_code":"+1758", - "code":"LC" - }, - { - "name":"Saint Martin", - "dial_code":"+590", - "code":"MF" - }, - { - "name":"Saint Pierre and Miquelon", - "dial_code":"+508", - "code":"PM" - }, - { - "name":"Saint Vincent and the Grenadines", - "dial_code":"+1784", - "code":"VC" - }, - { - "name":"Sao Tome and Principe", - "dial_code":"+239", - "code":"ST" - }, - { - "name":"Somalia", - "dial_code":"+252", - "code":"SO" - }, - { - "name":"Svalbard and Jan Mayen", - "dial_code":"+47", - "code":"SJ" - }, - { - "name":"Syrian Arab Republic", - "dial_code":"+963", - "code":"SY" - }, - { - "name":"Taiwan, Province of China", - "dial_code":"+886", - "code":"TW" - }, - { - "name":"Tanzania, United Republic of", - "dial_code":"+255", - "code":"TZ" - }, - { - "name":"Timor-Leste", - "dial_code":"+670", - "code":"TL" - }, - { - "name":"Venezuela, Bolivarian Republic of", - "dial_code":"+58", - "code":"VE" - }, - { - "name":"Viet Nam", - "dial_code":"+84", - "code":"VN" - }, - { - "name":"Virgin Islands, British", - "dial_code":"+1284", - "code":"VG" - }, - { - "name":"Virgin Islands, U.S.", - "dial_code":"+1340", - "code":"VI" - } -] \ No newline at end of file From 0727916cf191f22328c628064b339cbd22dc8f9e Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 23:47:43 +0100 Subject: [PATCH 11/72] README --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b277f55..60dec50 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # PhoneInfoga -Advanced information gathering tool for phone numbers. +Advanced information gathering tool & OSINT reconnaissance for phone numbers. **This tool requires python 2.x** @@ -101,4 +101,12 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - https://api.ovh.com/console/#/telephony - https://countrycode.org/ - http://www.countryareacode.net/en/ -- http://whitepages.fr/phonesystem/ \ No newline at end of file +- http://whitepages.fr/phonesystem/ + +### Scanners +- https://www.phonevalidator.com/ +- https://freecarrierlookup.com/ +- https://www.411.com/ + +### OSINT +- https://osintframework.com/ \ No newline at end of file From 5643cfe4f18a480c0ef48d6b85fb8fa1ee19294f Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 23:47:43 +0100 Subject: [PATCH 12/72] Data --- data/area_codes.json | 1281 +++++++++++++++++++++++++ data/carrier_codes.json | 2027 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 3308 insertions(+) create mode 100644 data/carrier_codes.json diff --git a/data/area_codes.json b/data/area_codes.json index 6717e36..fb300c5 100644 --- a/data/area_codes.json +++ b/data/area_codes.json @@ -358,6 +358,1287 @@ } ] }, + { + "CountryCode": "US", + "AreaCodes": [ + { + "code": "201", + "area": "New Jersey" + }, + { + "code": "202", + "area": "District of Columbia" + }, + { + "code": "203", + "area": "Connecticut" + }, + { + "code": "204", + "area": "Manitoba" + }, + { + "code": "205", + "area": "Alabama" + }, + { + "code": "206", + "area": "Washington" + }, + { + "code": "207", + "area": "Maine" + }, + { + "code": "208", + "area": "Idaho" + }, + { + "code": "209", + "area": "California" + }, + { + "code": "210", + "area": "Texas" + }, + { + "code": "212", + "area": "New York" + }, + { + "code": "213", + "area": "California" + }, + { + "code": "214", + "area": "Texas" + }, + { + "code": "215", + "area": "Pennsylvania" + }, + { + "code": "216", + "area": "Ohio" + }, + { + "code": "217", + "area": "Illinois" + }, + { + "code": "218", + "area": "Minnesota" + }, + { + "code": "219", + "area": "Indiana" + }, + { + "code": "224", + "area": "Illinois" + }, + { + "code": "225", + "area": "Louisiana" + }, + { + "code": "228", + "area": "Mississippi" + }, + { + "code": "229", + "area": "Georgia" + }, + { + "code": "231", + "area": "Michigan" + }, + { + "code": "234", + "area": "Ohio" + }, + { + "code": "239", + "area": "Florida" + }, + { + "code": "240", + "area": "Maryland" + }, + { + "code": "242", + "area": "Bahamas" + }, + { + "code": "246", + "area": "Barbados" + }, + { + "code": "248", + "area": "Michigan" + }, + { + "code": "250", + "area": "British Columbia" + }, + { + "code": "251", + "area": "Alabama" + }, + { + "code": "252", + "area": "North Carolina" + }, + { + "code": "253", + "area": "Washington" + }, + { + "code": "254", + "area": "Texas" + }, + { + "code": "256", + "area": "Alabama" + }, + { + "code": "260", + "area": "Indiana" + }, + { + "code": "262", + "area": "Wisconsin" + }, + { + "code": "264", + "area": "Anguilla" + }, + { + "code": "267", + "area": "Pennsylvania" + }, + { + "code": "268", + "area": "Antigua\/Barbuda" + }, + { + "code": "269", + "area": "Michigan" + }, + { + "code": "270", + "area": "Kentucky" + }, + { + "code": "276", + "area": "Virginia" + }, + { + "code": "281", + "area": "Texas" + }, + { + "code": "284", + "area": "British Virgin Islands" + }, + { + "code": "289", + "area": "Ontario" + }, + { + "code": "301", + "area": "Maryland" + }, + { + "code": "302", + "area": "Delaware" + }, + { + "code": "303", + "area": "Colorado" + }, + { + "code": "304", + "area": "West Virginia" + }, + { + "code": "305", + "area": "Florida" + }, + { + "code": "306", + "area": "Saskatchewan" + }, + { + "code": "307", + "area": "Wyoming" + }, + { + "code": "308", + "area": "Nebraska" + }, + { + "code": "309", + "area": "Illinois" + }, + { + "code": "310", + "area": "California" + }, + { + "code": "312", + "area": "Illinois" + }, + { + "code": "313", + "area": "Michigan" + }, + { + "code": "314", + "area": "Missouri" + }, + { + "code": "315", + "area": "New York" + }, + { + "code": "316", + "area": "Kansas" + }, + { + "code": "317", + "area": "Indiana" + }, + { + "code": "318", + "area": "Louisiana" + }, + { + "code": "319", + "area": "Iowa" + }, + { + "code": "320", + "area": "Minnesota" + }, + { + "code": "321", + "area": "Florida" + }, + { + "code": "323", + "area": "California" + }, + { + "code": "325", + "area": "Texas" + }, + { + "code": "330", + "area": "Ohio" + }, + { + "code": "334", + "area": "Alabama" + }, + { + "code": "336", + "area": "North Carolina" + }, + { + "code": "337", + "area": "Louisiana" + }, + { + "code": "339", + "area": "Massachusetts" + }, + { + "code": "340", + "area": "US Virgin Islands" + }, + { + "code": "345", + "area": "Cayman Islands" + }, + { + "code": "347", + "area": "New York" + }, + { + "code": "351", + "area": "Massachusetts" + }, + { + "code": "352", + "area": "Florida" + }, + { + "code": "360", + "area": "Washington" + }, + { + "code": "361", + "area": "Texas" + }, + { + "code": "386", + "area": "Florida" + }, + { + "code": "401", + "area": "Rhode Island" + }, + { + "code": "402", + "area": "Nebraska" + }, + { + "code": "403", + "area": "Alberta" + }, + { + "code": "404", + "area": "Georgia" + }, + { + "code": "405", + "area": "Oklahoma" + }, + { + "code": "406", + "area": "Montana" + }, + { + "code": "407", + "area": "Florida" + }, + { + "code": "408", + "area": "California" + }, + { + "code": "409", + "area": "Texas" + }, + { + "code": "410", + "area": "Maryland" + }, + { + "code": "412", + "area": "Pennsylvania" + }, + { + "code": "413", + "area": "Massachusetts" + }, + { + "code": "414", + "area": "Wisconsin" + }, + { + "code": "415", + "area": "California" + }, + { + "code": "416", + "area": "Ontario" + }, + { + "code": "417", + "area": "Missouri" + }, + { + "code": "418", + "area": "Quebec" + }, + { + "code": "419", + "area": "Ohio" + }, + { + "code": "423", + "area": "Tennessee" + }, + { + "code": "425", + "area": "Washington" + }, + { + "code": "430", + "area": "Texas" + }, + { + "code": "432", + "area": "Texas" + }, + { + "code": "434", + "area": "Virginia" + }, + { + "code": "435", + "area": "Utah" + }, + { + "code": "440", + "area": "Ohio" + }, + { + "code": "441", + "area": "Bermuda" + }, + { + "code": "443", + "area": "Maryland" + }, + { + "code": "450", + "area": "Quebec" + }, + { + "code": "456", + "area": "NANP area" + }, + { + "code": "469", + "area": "Texas" + }, + { + "code": "473", + "area": "Grenada" + }, + { + "code": "478", + "area": "Georgia" + }, + { + "code": "479", + "area": "Arkansas" + }, + { + "code": "480", + "area": "Arizona" + }, + { + "code": "484", + "area": "Pennsylvania" + }, + { + "code": "501", + "area": "Arkansas" + }, + { + "code": "502", + "area": "Kentucky" + }, + { + "code": "503", + "area": "Oregon" + }, + { + "code": "504", + "area": "Louisiana" + }, + { + "code": "505", + "area": "New Mexico" + }, + { + "code": "506", + "area": "New Brunswick" + }, + { + "code": "507", + "area": "Minnesota" + }, + { + "code": "508", + "area": "Massachusetts" + }, + { + "code": "509", + "area": "Washington" + }, + { + "code": "510", + "area": "California" + }, + { + "code": "512", + "area": "Texas" + }, + { + "code": "513", + "area": "Ohio" + }, + { + "code": "514", + "area": "Quebec" + }, + { + "code": "515", + "area": "Iowa" + }, + { + "code": "516", + "area": "New York" + }, + { + "code": "517", + "area": "Michigan" + }, + { + "code": "518", + "area": "New York" + }, + { + "code": "519", + "area": "Ontario" + }, + { + "code": "520", + "area": "Arizona" + }, + { + "code": "530", + "area": "California" + }, + { + "code": "540", + "area": "Virginia" + }, + { + "code": "541", + "area": "Oregon" + }, + { + "code": "551", + "area": "New Jersey" + }, + { + "code": "559", + "area": "California" + }, + { + "code": "561", + "area": "Florida" + }, + { + "code": "562", + "area": "California" + }, + { + "code": "563", + "area": "Iowa" + }, + { + "code": "567", + "area": "Ohio" + }, + { + "code": "570", + "area": "Pennsylvania" + }, + { + "code": "571", + "area": "Virginia" + }, + { + "code": "573", + "area": "Missouri" + }, + { + "code": "574", + "area": "Indiana" + }, + { + "code": "580", + "area": "Oklahoma" + }, + { + "code": "585", + "area": "New York" + }, + { + "code": "586", + "area": "Michigan" + }, + { + "code": "601", + "area": "Mississippi" + }, + { + "code": "602", + "area": "Arizona" + }, + { + "code": "603", + "area": "New Hampshire" + }, + { + "code": "604", + "area": "British Columbia" + }, + { + "code": "605", + "area": "South Dakota" + }, + { + "code": "606", + "area": "Kentucky" + }, + { + "code": "607", + "area": "New York" + }, + { + "code": "608", + "area": "Wisconsin" + }, + { + "code": "609", + "area": "New Jersey" + }, + { + "code": "610", + "area": "Pennsylvania" + }, + { + "code": "612", + "area": "Minnesota" + }, + { + "code": "613", + "area": "Ontario" + }, + { + "code": "614", + "area": "Ohio" + }, + { + "code": "615", + "area": "Tennessee" + }, + { + "code": "616", + "area": "Michigan" + }, + { + "code": "617", + "area": "Massachusetts" + }, + { + "code": "618", + "area": "Illinois" + }, + { + "code": "619", + "area": "California" + }, + { + "code": "620", + "area": "Kansas" + }, + { + "code": "623", + "area": "Arizona" + }, + { + "code": "626", + "area": "California" + }, + { + "code": "630", + "area": "Illinois" + }, + { + "code": "631", + "area": "New York" + }, + { + "code": "636", + "area": "Missouri" + }, + { + "code": "641", + "area": "Iowa" + }, + { + "code": "646", + "area": "New York" + }, + { + "code": "647", + "area": "Ontario" + }, + { + "code": "649", + "area": "Turks & Caicos Islands" + }, + { + "code": "650", + "area": "California" + }, + { + "code": "651", + "area": "Minnesota" + }, + { + "code": "660", + "area": "Missouri" + }, + { + "code": "661", + "area": "California" + }, + { + "code": "662", + "area": "Mississippi" + }, + { + "code": "664", + "area": "Montserrat" + }, + { + "code": "670", + "area": "CNMI" + }, + { + "code": "671", + "area": "Guam" + }, + { + "code": "678", + "area": "Georgia" + }, + { + "code": "682", + "area": "Texas" + }, + { + "code": "701", + "area": "North Dakota" + }, + { + "code": "702", + "area": "Nevada" + }, + { + "code": "703", + "area": "Virginia" + }, + { + "code": "704", + "area": "North Carolina" + }, + { + "code": "705", + "area": "Ontario" + }, + { + "code": "706", + "area": "Georgia" + }, + { + "code": "707", + "area": "California" + }, + { + "code": "708", + "area": "Illinois" + }, + { + "code": "709", + "area": "Newfoundland" + }, + { + "code": "710", + "area": "US" + }, + { + "code": "712", + "area": "Iowa" + }, + { + "code": "713", + "area": "Texas" + }, + { + "code": "714", + "area": "California" + }, + { + "code": "715", + "area": "Wisconsin" + }, + { + "code": "716", + "area": "New York" + }, + { + "code": "717", + "area": "Pennsylvania" + }, + { + "code": "718", + "area": "New York" + }, + { + "code": "719", + "area": "Colorado" + }, + { + "code": "720", + "area": "Colorado" + }, + { + "code": "724", + "area": "Pennsylvania" + }, + { + "code": "727", + "area": "Florida" + }, + { + "code": "731", + "area": "Tennessee" + }, + { + "code": "732", + "area": "New Jersey" + }, + { + "code": "734", + "area": "Michigan" + }, + { + "code": "740", + "area": "Ohio" + }, + { + "code": "754", + "area": "Florida" + }, + { + "code": "757", + "area": "Virginia" + }, + { + "code": "758", + "area": "St. Lucia" + }, + { + "code": "760", + "area": "California" + }, + { + "code": "763", + "area": "Minnesota" + }, + { + "code": "765", + "area": "Indiana" + }, + { + "code": "767", + "area": "Dominica" + }, + { + "code": "770", + "area": "Georgia" + }, + { + "code": "772", + "area": "Florida" + }, + { + "code": "773", + "area": "Illinois" + }, + { + "code": "774", + "area": "Massachusetts" + }, + { + "code": "775", + "area": "Nevada" + }, + { + "code": "778", + "area": "British Columbia" + }, + { + "code": "780", + "area": "Alberta" + }, + { + "code": "781", + "area": "Massachusetts" + }, + { + "code": "784", + "area": "St. Vincent & Grenadines" + }, + { + "code": "785", + "area": "Kansas" + }, + { + "code": "786", + "area": "Florida" + }, + { + "code": "787", + "area": "Puerto Rico" + }, + { + "code": "801", + "area": "Utah" + }, + { + "code": "802", + "area": "Vermont" + }, + { + "code": "803", + "area": "South Carolina" + }, + { + "code": "804", + "area": "Virginia" + }, + { + "code": "805", + "area": "California" + }, + { + "code": "806", + "area": "Texas" + }, + { + "code": "807", + "area": "Ontario" + }, + { + "code": "808", + "area": "Hawaii" + }, + { + "code": "809", + "area": "Dominican Republic" + }, + { + "code": "810", + "area": "Michigan" + }, + { + "code": "812", + "area": "Indiana" + }, + { + "code": "813", + "area": "Florida" + }, + { + "code": "814", + "area": "Pennsylvania" + }, + { + "code": "815", + "area": "Illinois" + }, + { + "code": "816", + "area": "Missouri" + }, + { + "code": "817", + "area": "Texas" + }, + { + "code": "818", + "area": "California" + }, + { + "code": "819", + "area": "Quebec" + }, + { + "code": "828", + "area": "North Carolina" + }, + { + "code": "830", + "area": "Texas" + }, + { + "code": "831", + "area": "California" + }, + { + "code": "832", + "area": "Texas" + }, + { + "code": "843", + "area": "South Carolina" + }, + { + "code": "845", + "area": "New York" + }, + { + "code": "847", + "area": "Illinois" + }, + { + "code": "848", + "area": "New Jersey" + }, + { + "code": "850", + "area": "Florida" + }, + { + "code": "856", + "area": "New Jersey" + }, + { + "code": "857", + "area": "Massachusetts" + }, + { + "code": "858", + "area": "California" + }, + { + "code": "859", + "area": "Kentucky" + }, + { + "code": "860", + "area": "Connecticut" + }, + { + "code": "862", + "area": "New Jersey" + }, + { + "code": "863", + "area": "Florida" + }, + { + "code": "864", + "area": "South Carolina" + }, + { + "code": "865", + "area": "Tennessee" + }, + { + "code": "867", + "area": "Yukon, NW Terr., Nunavut" + }, + { + "code": "868", + "area": "Trinidad & Tobago" + }, + { + "code": "869", + "area": "St. Kitts & Nevis" + }, + { + "code": "870", + "area": "Arkansas" + }, + { + "code": "876", + "area": "Jamaica" + }, + { + "code": "878", + "area": "Pennsylvania" + }, + { + "code": "880", + "area": "NANP area" + }, + { + "code": "881", + "area": "NANP area" + }, + { + "code": "882", + "area": "NANP area" + }, + { + "code": "901", + "area": "Tennessee" + }, + { + "code": "902", + "area": "Nova Scotia" + }, + { + "code": "903", + "area": "Texas" + }, + { + "code": "904", + "area": "Florida" + }, + { + "code": "905", + "area": "Ontario" + }, + { + "code": "906", + "area": "Michigan" + }, + { + "code": "907", + "area": "Alaska" + }, + { + "code": "908", + "area": "New Jersey" + }, + { + "code": "909", + "area": "California" + }, + { + "code": "910", + "area": "North Carolina" + }, + { + "code": "912", + "area": "Georgia" + }, + { + "code": "913", + "area": "Kansas" + }, + { + "code": "914", + "area": "New York" + }, + { + "code": "915", + "area": "Texas" + }, + { + "code": "916", + "area": "California" + }, + { + "code": "917", + "area": "New York" + }, + { + "code": "918", + "area": "Oklahoma" + }, + { + "code": "919", + "area": "North Carolina" + }, + { + "code": "920", + "area": "Wisconsin" + }, + { + "code": "925", + "area": "California" + }, + { + "code": "928", + "area": "Arizona" + }, + { + "code": "931", + "area": "Tennessee" + }, + { + "code": "936", + "area": "Texas" + }, + { + "code": "937", + "area": "Ohio" + }, + { + "code": "939", + "area": "Puerto Rico" + }, + { + "code": "940", + "area": "Texas" + }, + { + "code": "941", + "area": "Florida" + }, + { + "code": "947", + "area": "Michigan" + }, + { + "code": "949", + "area": "California" + }, + { + "code": "952", + "area": "Minnesota" + }, + { + "code": "954", + "area": "Florida" + }, + { + "code": "956", + "area": "Texas" + }, + { + "code": "970", + "area": "Colorado" + }, + { + "code": "971", + "area": "Oregon" + }, + { + "code": "972", + "area": "Texas" + }, + { + "code": "973", + "area": "New Jersey" + }, + { + "code": "978", + "area": "Massachusetts" + }, + { + "code": "979", + "area": "Texas" + }, + { + "code": "980", + "area": "North Carolina" + }, + { + "code": "985", + "area": "Louisiana" + }, + { + "code": "989", + "area": "Michigan" + } + ] + }, { "CountryCode": "CN", "AreaCodes": [] diff --git a/data/carrier_codes.json b/data/carrier_codes.json new file mode 100644 index 0000000..20b95a5 --- /dev/null +++ b/data/carrier_codes.json @@ -0,0 +1,2027 @@ +[ + { + "country": "FR", + "carriers": [ + { + "area": { + "code": null, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Other", + "updated_at": null + } + }, + { + "area": { + "code": 6, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 9, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 17, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 36, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 61, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 62, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 66, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 67, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 68, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 76, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 77, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 78, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 79, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 87, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 148, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 149, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 180, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 181, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 182, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 183, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 214, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 218, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 222, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 230, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 234, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 236, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 244, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 245, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 246, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 249, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 250, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 252, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 253, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 256, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 261, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 272, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 276, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 277, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 278, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 285, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 290, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 310, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 345, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 351, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 352, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 354, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 355, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 357, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 358, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 359, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 370, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 371, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 372, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 373, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 411, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 413, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 415, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 420, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 422, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 426, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 427, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 430, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 434, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 443, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 456, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 457, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 463, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 469, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 480, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 481, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 482, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 483, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 484, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 486, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 487, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 488, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 489, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 516, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 517, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 519, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 524, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 531, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 533, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 535, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 540, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 547, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 564, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 567, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 579, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 581, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 582, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 587, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Clec", + "updated_at": null + } + }, + { + "area": { + "code": 601, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 603, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 605, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 607, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 608, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 609, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 630, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 631, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 632, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 633, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 634, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 635, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 637, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 642, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 643, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 645, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 646, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 647, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 648, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 650, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 653, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 654, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 655, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 658, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 659, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 698, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 699, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 780, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6001, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6002, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6003, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6007, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6008, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6009, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6020, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6021, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6022, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6023, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6040, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6041, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6044, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6045, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6046, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6047, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6048, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6049, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6064, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6065, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6066, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6067, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6068, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6069, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6360, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6361, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6362, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6363, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6364, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6365, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6366, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6367, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6368, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6369, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6381, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6382, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6383, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6384, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6385, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6386, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6387, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6388, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6389, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6401, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6402, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6403, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6404, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6405, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6406, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6407, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6408, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6409, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6417, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6444, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6445, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6446, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6490, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6491, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6492, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6493, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6494, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 6495, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7705, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7706, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7707, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7708, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 7709, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 60041, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 60042, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Bouygues Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 60051, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 60052, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64160, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64161, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Orange Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64166, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64167, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64168, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64169, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64995, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64998, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + }, + { + "area": { + "code": 64999, + "country_code": 33, + "country_id": 73, + "created_at": null, + "name": "France Sfr Mobile", + "updated_at": null + } + } + ] + } +] \ No newline at end of file From 5892b10a30c2e1db5999b77d13cd962cfbb91aed Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 23:47:43 +0100 Subject: [PATCH 13/72] Tests --- tests/test.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/test.txt diff --git a/tests/test.txt b/tests/test.txt new file mode 100644 index 0000000..633fcb4 --- /dev/null +++ b/tests/test.txt @@ -0,0 +1,3 @@ +6464806649 ++59172768361 ++33679368233 \ No newline at end of file From 6f75df6892357db2342235ce2b8f0e17ffa70036 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 5 Nov 2018 23:47:43 +0100 Subject: [PATCH 14/72] numverify scan --- phoneinfoga.py | 54 ++++++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index a08f3fa..7e08cb3 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -37,6 +37,9 @@ parser.add_argument('-o', '--output', metavar="output_file", type=file, parser.add_argument('-s', '--scanner', metavar="scanner", default="all", type=str, help='The scanner to use') +parser.add_argument('--osint', action='store_true', + help='Use OSINT reconnaissance') + parser.add_argument('-u', '--update', action='store_true', help='Update the tool & databases') @@ -50,7 +53,7 @@ if args.update: print 'update' sys.exit() -scanners = ['any', 'all', 'ovh', 'numverify'] +scanners = ['any', 'all', 'numverify', 'ovh', 'whosenumber'] def parseInput(file): print 'parse' @@ -67,7 +70,7 @@ def isNumberValid(PhoneNumber): return True def formatNumber(number): - PhoneNumber = number.replace("+", "").replace(" ", "") + PhoneNumber = number.replace("+", "").replace("\n", "").replace(" ", "") return PhoneNumber def searchCountryCode(number): @@ -77,17 +80,17 @@ def searchCountryCode(number): print '\033[1;32m[+] Country found : France (FR)' #check for area code - print '\033[1;32m[+] Area code found : Bordeaux, Limoges' - print '\n' - print '\033[1;32m[i] This is most likely a landline' + print '\033[1;32m[+] Areas found (approximate) : Bordeaux, Limoges' - print '\n' + #check for carrier + #print '\033[1;32m[+] Carrier found: France Sfr Mobile' + print '\033[93m[i] This is most likely a landline, or a fixed VoIP.' def numverifyScan(PhoneNumber): - if args.scanner == 'numverify' or args.scanner == 'any': + if not args.scanner == 'numverify' and not args.scanner == 'all': return -1 - print '[i] Running Numverify scan...' + print '\033[93m[i] Running Numverify scan...' requestSecret = '' resp = requests.get('https://numverify.com/') @@ -104,38 +107,41 @@ def numverifyScan(PhoneNumber): response = requests.get("https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber) if response.content == "Unauthorized" or response.status_code != 200: - print("An error occured while calling the API (bad request or wrong api key).") + print("[i] An error occured while calling the API (bad request or wrong api key).") sys.exit() data = json.loads(response.content) if data["valid"] == False: - print("\033[91mError: Please specify a valid phone number. " + PhoneNumber + " is not valid.") - print("Example: 14158586273\033[94m") + print("\033[91m[!] Error: Please specify a valid phone number. Example: +6464806649\033[94m") sys.exit() - print "Number: (" + data["country_prefix"] + ") " + data["local_format"] + print "\033[1;32mNumber: (" + data["country_prefix"] + ") " + data["local_format"] print("Country: %s (%s)") % (data["country_name"],data["country_code"]) print("Location: %s") % data["location"] print("Carrier: %s") % data["carrier"] - print("Line type: %s") % data["line_type"] - print "\n" + print("Line type: %s \033[94m") % data["line_type"] def ovhScan(number): - if not args.scanner == 'ovh' or args.scanner == 'any': + if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 - print '[i] Running OVH scan...' - print '(!) OVH API credentials missing. Skipping.' + print '\033[93m[i] Running OVH scan...' + print '(!) OVH API credentials missing. Skipping.\033[94m' + +def whosenumberScan(number): + if not args.scanner == 'whosenumber' and not args.scanner == 'all': + return -1 + + print '\033[93m[i] Running Whosenumber scan...\033[94m' def scanNumber(number): PhoneNumber = formatNumber(number) - print("[!] ---- Fetching informations for number +" + PhoneNumber + " ---- [!]") - print "\n" + print "\033[93m[!] ---- Fetching informations for " + PhoneNumber + " ---- [!]" if not isNumberValid(PhoneNumber): - print("\033[91mError: number " + number + " is not valid Skipping.") + print("\033[91mError: number " + number + " is not valid. Skipping.") sys.exit() #check dial code @@ -145,6 +151,7 @@ def scanNumber(number): numverifyScan(PhoneNumber) ovhScan(PhoneNumber) + whosenumberScan(PhoneNumber) # Verify scanner if not args.scanner in scanners: @@ -154,7 +161,10 @@ if not args.scanner in scanners: if args.number: scanNumber(args.number) elif args.input: - print parseInput(args.input) + for line in args.input.readlines(): + scanNumber(line) if args.output: - print 'test' \ No newline at end of file + args.output.write("Hello World") + + args.output.close() \ No newline at end of file From b39dbe42aa982a58ab455b252d077dbe58449e97 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Mon, 5 Nov 2018 23:48:22 +0100 Subject: [PATCH 15/72] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 60dec50..0633923 100644 --- a/README.md +++ b/README.md @@ -102,6 +102,7 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - https://countrycode.org/ - http://www.countryareacode.net/en/ - http://whitepages.fr/phonesystem/ +- http://directory.didww.com/area-prefixes ### Scanners - https://www.phonevalidator.com/ @@ -109,4 +110,4 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - https://www.411.com/ ### OSINT -- https://osintframework.com/ \ No newline at end of file +- https://osintframework.com/ From 021e7d91ef8ae123dd3eadc0f1cbb51333a17c70 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 6 Nov 2018 18:23:12 +0100 Subject: [PATCH 16/72] Usage --- README.md | 26 +++++++++++++++++--------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0633923..486fefd 100644 --- a/README.md +++ b/README.md @@ -45,8 +45,6 @@ The tool only accepts E164 and International formats as input. - ovh - annu - numverify -- any -- all ## Installation @@ -62,14 +60,24 @@ Then set APIs credentials in `secrets.py`. ## Usage ``` -Usage: PhoneInfoga options +usage: phoneinfoga.py -n [options] - -n|--number: Phone number to search - -i|--input: Phone number to search - -o|--output: Phone number to search - -s|--scanner: Only use a specific scanner - -h|--help: Help command - --update: Update the tool & databases +Advanced information gathering tool for phone numbers +(https://github.com/sundowndev/PhoneInfoga) + +optional arguments: + -h, --help show this help message and exit + -n number, --number number + The phone number to scan (E164 or International + format) + -i input_file, --input input_file + Phone number list to scan (one per line) + -o output_file, --output output_file + Output to save scan results + -s scanner, --scanner scanner (any to skip, default: all) + The scanner to use + --osint Use OSINT reconnaissance + -u, --update Update the tool & databases ``` Example : From d3d03ae960b1bd2a620cc35c6b1c98ff46ca1ed8 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 6 Nov 2018 18:28:31 +0100 Subject: [PATCH 17/72] Features --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 486fefd..b994af7 100644 --- a/README.md +++ b/README.md @@ -11,8 +11,7 @@ Advanced information gathering tool & OSINT reconnaissance for phone numbers. - Check several numbers at once - Set an output for result(s) - Check if number is from a VoIP provider -- Get informations about special numbers -- Phone book search +- OSINT reconnaissance using external APIs, Google Hacking, phone books & search engines ## Formats From 5df7c1bc7fc495ff8a1fb1f4a7d45fb669295f3a Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 6 Nov 2018 18:54:12 +0100 Subject: [PATCH 18/72] Resources --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index b994af7..ccc871e 100644 --- a/README.md +++ b/README.md @@ -118,3 +118,9 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` ### OSINT - https://osintframework.com/ + +### Google hacking + +- `insubject:"+XXXXXXXXX" | insubject:"+XXXXX" | insubject:"XXXXX XXX XXX` +- `insubject:"{number}" | intitle:"{number}"` +- `intext:"{number}" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html` From 777a2eb962775ff1a9fd260a632b028dfd5f533c Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 7 Nov 2018 11:18:46 +0100 Subject: [PATCH 19/72] Color codes --- .gitignore | 1 + phoneinfoga.py | 42 ++++++++++++++++++++++++------------------ 2 files changed, 25 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index 485dee6..757eb70 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea +.buildconfig diff --git a/phoneinfoga.py b/phoneinfoga.py index 7e08cb3..ce05ef3 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -55,6 +55,11 @@ if args.update: scanners = ['any', 'all', 'numverify', 'ovh', 'whosenumber'] +code_info = '\033[97m[*] ' +code_warning = '\033[93m(!) ' +code_result = '\033[1;32m[+] ' +code_error = '\033[91m[!] ' + def parseInput(file): print 'parse' @@ -74,23 +79,24 @@ def formatNumber(number): return PhoneNumber def searchCountryCode(number): + print code_info + 'Searching for country in format...' #parse code #check in json - print '\033[1;32m[+] Country found : France (FR)' + print code_result + 'Country found : France (FR)' #check for area code - print '\033[1;32m[+] Areas found (approximate) : Bordeaux, Limoges' + print code_result + 'Areas found (approximate) : Bordeaux, Limoges' #check for carrier #print '\033[1;32m[+] Carrier found: France Sfr Mobile' - print '\033[93m[i] This is most likely a landline, or a fixed VoIP.' + print code_info + 'This is most likely a landline, or a fixed VoIP.' def numverifyScan(PhoneNumber): if not args.scanner == 'numverify' and not args.scanner == 'all': return -1 - print '\033[93m[i] Running Numverify scan...' + print code_info + 'Running Numverify scan...' requestSecret = '' resp = requests.get('https://numverify.com/') @@ -107,41 +113,41 @@ def numverifyScan(PhoneNumber): response = requests.get("https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber) if response.content == "Unauthorized" or response.status_code != 200: - print("[i] An error occured while calling the API (bad request or wrong api key).") + print(code_error + "An error occured while calling the API (bad request or wrong api key).") sys.exit() data = json.loads(response.content) if data["valid"] == False: - print("\033[91m[!] Error: Please specify a valid phone number. Example: +6464806649\033[94m") + print(code_error + "Error: Please specify a valid phone number. Example: +6464806649") sys.exit() - print "\033[1;32mNumber: (" + data["country_prefix"] + ") " + data["local_format"] - print("Country: %s (%s)") % (data["country_name"],data["country_code"]) - print("Location: %s") % data["location"] - print("Carrier: %s") % data["carrier"] - print("Line type: %s \033[94m") % data["line_type"] + print(code_result + "Number: (%s) %s") % (data["country_prefix"],data["local_format"]) + print(code_result + "Country: %s (%s)") % (data["country_name"],data["country_code"]) + print(code_result + "Location: %s") % data["location"] + print(code_result + "Carrier: %s") % data["carrier"] + print(code_result + "Line type: %s") % data["line_type"] def ovhScan(number): if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 - print '\033[93m[i] Running OVH scan...' - print '(!) OVH API credentials missing. Skipping.\033[94m' + print code_info + 'Running OVH scan...' + print code_warning + 'OVH API credentials missing. Skipping.' def whosenumberScan(number): if not args.scanner == 'whosenumber' and not args.scanner == 'all': return -1 - print '\033[93m[i] Running Whosenumber scan...\033[94m' + print code_info + 'Running Whosenumber scan...' def scanNumber(number): PhoneNumber = formatNumber(number) - print "\033[93m[!] ---- Fetching informations for " + PhoneNumber + " ---- [!]" + print "\033[1m\033[93m[!] ---- Fetching informations for " + PhoneNumber + " ---- [!]" if not isNumberValid(PhoneNumber): - print("\033[91mError: number " + number + " is not valid. Skipping.") + print(code_error + "Error: number " + number + " is not valid. Skipping.") sys.exit() #check dial code @@ -155,7 +161,7 @@ def scanNumber(number): # Verify scanner if not args.scanner in scanners: - print("\033[91mError: scanner doesn't exists.") + print(code_error + "Error: scanner doesn't exists.") sys.exit() if args.number: @@ -167,4 +173,4 @@ elif args.input: if args.output: args.output.write("Hello World") - args.output.close() \ No newline at end of file + args.output.close() From cd18e2dc3c9f132b6b5c210147165f00fb8a2028 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Wed, 7 Nov 2018 14:41:16 +0100 Subject: [PATCH 20/72] Resources --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index ccc871e..c1676d1 100644 --- a/README.md +++ b/README.md @@ -106,6 +106,9 @@ This tool is MIT licensed. Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - https://api.ovh.com/console/#/telephony + - `/telephony/number/ranges` + - `/telephony/number/detailedZones` + - `/telephony/number/specificNumbers` - https://countrycode.org/ - http://www.countryareacode.net/en/ - http://whitepages.fr/phonesystem/ From 53563e814977860069c16452bff0c1b80a7fc556 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 7 Nov 2018 18:52:43 +0100 Subject: [PATCH 21/72] Requirements --- requirements.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4c6373c..c0e12c9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,6 @@ requests -sys hashlib json argparse -re \ No newline at end of file +re +ovh \ No newline at end of file From 56500d6cc7a36f19368f9490142a3aa45bd5f1b7 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 7 Nov 2018 18:54:01 +0100 Subject: [PATCH 22/72] Formatting number & carrier lookup scan --- phoneinfoga.py | 158 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 137 insertions(+), 21 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index ce05ef3..b1e32e3 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -26,7 +26,7 @@ parser = argparse.ArgumentParser(description= usage='%(prog)s -n [options]') parser.add_argument('-n', '--number', metavar='number', type=str, - help='The phone number to scan (E164 and International format)') + help='The phone number to scan (E164 or international format)') parser.add_argument('-i', '--input', metavar="input_file", type=file, help='Phone number list to scan (one per line)') @@ -53,7 +53,7 @@ if args.update: print 'update' sys.exit() -scanners = ['any', 'all', 'numverify', 'ovh', 'whosenumber'] +scanners = ['any', 'all', 'numverify', 'ovh', 'whosenumber', 'freecarrier', '411'] code_info = '\033[97m[*] ' code_warning = '\033[93m(!) ' @@ -75,28 +75,57 @@ def isNumberValid(PhoneNumber): return True def formatNumber(number): - PhoneNumber = number.replace("+", "").replace("\n", "").replace(" ", "") + PhoneNumber = dict(); + + PhoneNumber['full'] = number.replace("+", "").replace("\n", "").replace(" ", "") + + if re.match(r'(?:1){1}[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{6}', PhoneNumber['full']): + countryCodeRegex = r'[0-9]{10}$' + elif len(PhoneNumber['full']) == 13: + countryCodeRegex = r'[0-9]{11}$' + elif len(PhoneNumber['full']) == 12: + countryCodeRegex = r'[0-9]{10}$' + elif len(PhoneNumber['full']) == 11: + countryCodeRegex = r'[0-9]{9}$' + elif len(PhoneNumber['full']) == 10: + countryCodeRegex = r'[0-9]{8}$' + else: + countryCodeRegex = r'[0-9]{7}$' + + PhoneNumber['countryCode'] = re.sub(countryCodeRegex, '', PhoneNumber['full']) + PhoneNumber['number'] = PhoneNumber['full'].replace(PhoneNumber['countryCode'], '') + return PhoneNumber -def searchCountryCode(number): +def searchCountryCode(countryCode): print code_info + 'Searching for country in format...' - #parse code - #check in json - print code_result + 'Country found : France (FR)' + with open('./data/country_codes.json') as CountryCodesFile: + country_codes = json.load(CountryCodesFile) + for country in country_codes: + if country['dial_code'] == '+' + countryCode: + print code_result + 'Country code: +' + countryCode + print code_result + 'Country found: %s (%s)' % (country['name'],country['code']) + with open('./data/area_codes.json') as AreaCodesFile: + area_codes = json.load(AreaCodesFile) + for area_country in area_codes: + if area_country['CountryCode'] == country['code']: + for area in area_country['AreaCodes']: + if area == "10": + print 'y' #check for area code - print code_result + 'Areas found (approximate) : Bordeaux, Limoges' + #print code_result + 'Areas found (approximate) : Bordeaux, Limoges' #check for carrier #print '\033[1;32m[+] Carrier found: France Sfr Mobile' - print code_info + 'This is most likely a landline, or a fixed VoIP.' + #print code_info + 'This is most likely a landline, or a fixed VoIP.' def numverifyScan(PhoneNumber): if not args.scanner == 'numverify' and not args.scanner == 'all': return -1 - print code_info + 'Running Numverify scan...' + print code_info + 'Running Numverify.com scan...' requestSecret = '' resp = requests.get('https://numverify.com/') @@ -110,7 +139,22 @@ def numverifyScan(PhoneNumber): apiKey.update(PhoneNumber + requestSecret) apiKey = apiKey.hexdigest() - response = requests.get("https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber) + headers = { + 'host': "numverify.com", + 'connection': "keep-alive", + 'content-length': "49", + 'accept': "application/json, text/javascript, */*; q=0.01", + 'origin': "https://numverify.com", + 'x-requested-with': "XMLHttpRequest", + 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", + 'content-type': "multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW", + 'referer': "https://numverify.com/", + 'accept-encoding': "gzip, deflate, br", + 'accept-language': "en-US,en;q=0.9,fr;q=0.8,la;q=0.7,es;q=0.6,zh-CN;q=0.5,zh;q=0.4", + 'cache-control': "no-cache" + } + + response = requests.request("GET", "https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber, data="", headers=headers) if response.content == "Unauthorized" or response.status_code != 200: print(code_error + "An error occured while calling the API (bad request or wrong api key).") @@ -122,42 +166,114 @@ def numverifyScan(PhoneNumber): print(code_error + "Error: Please specify a valid phone number. Example: +6464806649") sys.exit() + InternationalNumber = '('+data["country_prefix"]+')' + data["local_format"] + print(code_result + "Number: (%s) %s") % (data["country_prefix"],data["local_format"]) print(code_result + "Country: %s (%s)") % (data["country_name"],data["country_code"]) print(code_result + "Location: %s") % data["location"] print(code_result + "Carrier: %s") % data["carrier"] print(code_result + "Line type: %s") % data["line_type"] -def ovhScan(number): +def ovhScan(country, number): if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 print code_info + 'Running OVH scan...' - print code_warning + 'OVH API credentials missing. Skipping.' -def whosenumberScan(number): + querystring = {"country":country} + + headers = { + 'accept': "application/json", + 'cache-control': "no-cache" + } + + response = requests.request("GET", "https://api.ovh.com/1.0/telephony/number/detailedZones", data="", headers=headers, params=querystring) + + data = json.loads(response.content) + +def whosenumberScan(countryCode, number): if not args.scanner == 'whosenumber' and not args.scanner == 'all': return -1 print code_info + 'Running Whosenumber scan...' + print 'https://whosenumber.info/' + countryCode + number + +def repScan(countryCode, number): + if not args.scanner == '411' and not args.scanner == 'all': + return -1 + + print code_info + 'Running 411.com scan...' + print 'https://www.411.com/phone/%s-%s' % (countryCode,number) + +def freecarrierlookupScan(countryCode, number): + if not args.scanner == 'freecarrier' and not args.scanner == 'all': + return -1 + + print code_info + 'Running freecarrierlookup.com scan...' + + payload = "phonenum=%s&cc=%s" % (number,countryCode) + headers = { + 'host': "freecarrierlookup.com", + 'connection': "keep-alive", + 'content-length': "48", + 'accept': "application/json, text/javascript, */*; q=0.01", + 'origin': "https://freecarrierlookup.com", + 'x-requested-with': "XMLHttpRequest", + 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", + 'content-type': "application/x-www-form-urlencoded", + 'referer': "https://freecarrierlookup.com/", + 'accept-encoding': "gzip, deflate, br", + 'accept-language': "en-US,en;q=0.9,fr;q=0.8,la;q=0.7,es;q=0.6,zh-CN;q=0.5,zh;q=0.4", + 'cookie': "PHPSESSID=cdifm9u3ch2mqscdnj2pjqjfuq", + 'cache-control': "no-cache", + 'postman-token': "c81a7bb0-f338-c2e5-5f32-e1b94726cce5" + } + + response = requests.request("POST", "https://freecarrierlookup.com/getcarrier.php", data=payload, headers=headers) + + print response.content + + data = json.loads(response.content) + + if not data["status"] == "success": + print code_error + '0 result found.' + return -1 + + soup = BeautifulSoup(response.content, "html5lib") + tags = soup.find_all("p") + + print code_result + 'Phone Number: ' + tags[0].string.replace('<\/p>\\n <\/div>\\n', '') + print code_result + 'Carrier: ' + tags[1].string.replace('<\/p>\\n <\/div>\\n', '') + print code_result + 'Is Wireless:' + print code_result + 'SMS Gateway Address: ' + print code_result + 'MMS Gateway Address: ' def scanNumber(number): PhoneNumber = formatNumber(number) - print "\033[1m\033[93m[!] ---- Fetching informations for " + PhoneNumber + " ---- [!]" + print "\033[1m\033[93m[!] ---- Fetching informations for (0)" + PhoneNumber['number'] + " ---- [!]" - if not isNumberValid(PhoneNumber): + print code_info + 'Parsing informations from format...' + + print code_result + 'Local format: (0)' + PhoneNumber['number'] + + if not isNumberValid(PhoneNumber['full']): print(code_error + "Error: number " + number + " is not valid. Skipping.") sys.exit() - #check dial code - searchCountryCode(PhoneNumber) + # Check dial code + searchCountryCode(PhoneNumber['countryCode']) + #check area code by country #if found in area codes -> landline - numverifyScan(PhoneNumber) - ovhScan(PhoneNumber) - whosenumberScan(PhoneNumber) + numverifyScan(PhoneNumber['full']) + ovhScan('fr', PhoneNumber['full']) + freecarrierlookupScan(PhoneNumber['countryCode'], PhoneNumber['number']) + #whosenumberScan(PhoneNumber['countryCode'], PhoneNumber['number']) + #repScan(PhoneNumber['countryCode'], PhoneNumber['number']) + + print '\n' # Verify scanner if not args.scanner in scanners: From 2ef629346d51df1dc72a3585e533018f3869f466 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 7 Nov 2018 18:54:41 +0100 Subject: [PATCH 23/72] Todo list --- todo.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 todo.md diff --git a/todo.md b/todo.md new file mode 100644 index 0000000..465271a --- /dev/null +++ b/todo.md @@ -0,0 +1,7 @@ +# Todo list + +- Input feature +- Output feature +- OVH scanner +- Update feature +- Offline scan From a1790c7bea6f3fe6dc09f1902276331b7a1db7b2 Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 7 Nov 2018 18:55:19 +0100 Subject: [PATCH 24/72] Delete secrets file --- secrets.py | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 secrets.py diff --git a/secrets.py b/secrets.py deleted file mode 100644 index 2e13cba..0000000 --- a/secrets.py +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env python - -# Instanciate an OVH Client. -# You can generate new credentials with full access to your account on -# the token creation page -client = ovh.Client( - endpoint='ovh-eu', # Endpoint of API OVH Europe (List of available endpoints) - application_key='xxxxxxxxxx', # Application Key - application_secret='xxxxxxxxxx', # Application Secret - consumer_key='xxxxxxxxxx', # Consumer Key -) \ No newline at end of file From 4f5946d42fa1ae39ed30a531734bd696d35f8aa3 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Wed, 7 Nov 2018 23:29:08 +0100 Subject: [PATCH 25/72] Documentation --- README.md | 56 +++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 36 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c1676d1..c45e99c 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Advanced information gathering tool & OSINT reconnaissance for phone numbers. +The goal of this tool is to first identify basic informations such as country, area, carrier and line type on any international phone numbers with a very good accuracy, and then detect the VoIP provider or search for footprints on search engines to try identify the owner. + **This tool requires python 2.x** ## Features @@ -23,27 +25,12 @@ The tool only accepts E164 and International formats as input. - RFC3966: tel:+33-9-63-60-XX-XX - Out-of-country format from US: 011 33 9 63 60 XX XX -## Number format by countries - -#### Europe - -- Belgium : 9 digits for land lines and 10 for mobile -- Denmark : 8 digits -- Germany : 10 digits -- Greece : 10 digits -- Hungary : 10 digits -- Iceland : 10 digits -- Ireland : 10 digits -- Italy : 10 digits -- Netherlands : 10 digits -- Norway : 10 digits -- Hungary : 10 digits - ## Available scanners -- ovh -- annu +Use `any` to disable this feature. Default value: `all` + - numverify +- ovh ## Installation @@ -82,7 +69,7 @@ optional arguments: Example : ``` -python phoneinfoga.py -n 0428375448 +python phoneinfoga.py -n +42837544833 ``` Check several numbers at once : @@ -94,9 +81,36 @@ python ./phoneinfoga.py -i numbers.txt -o results.txt Check for a number range on OVH (just put some zeros) : ``` -python phoneinfoga.py -n 0428370000 -s ovh +python phoneinfoga.py -n +42837544833 -s ovh ``` +## Formatting + +E.164 formatting for phone numbers entails the following: + +- A + (plus) sign +- International Country Calling code +- Local Area code +- Local Phone number + +For example, here’s a US-based number in standard local formatting: (415) 555-2671 + +![](https://i.imgur.com/0e2SMdL.png) + +Here’s the same phone number in E.164 formatting: +14155552671 + +![](https://i.imgur.com/KfrvacR.png) + +In the UK, and many other countries internationally, local dialing may require the addition of a '0' in front of the subscriber number. With E.164 formatting, this '0' must usually be removed. + +For example, here’s a UK-based number in standard local formatting: 020 7183 8750 + +![](https://i.imgur.com/WdXKSZY.png) + +Here’s the same phone number in E.164 formatting: +442071838750 + +![](https://i.imgur.com/Ovso0w2.png) + ## License This tool is MIT licensed. @@ -113,6 +127,8 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - http://www.countryareacode.net/en/ - http://whitepages.fr/phonesystem/ - http://directory.didww.com/area-prefixes +- https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers +- https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers ### Scanners - https://www.phonevalidator.com/ From ba49d8ccfe033567bd30ec577b52a5fa6511ea9b Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Wed, 7 Nov 2018 23:39:10 +0100 Subject: [PATCH 26/72] Documentation --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index c45e99c..6df899c 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,6 @@ pip install -r requirements.txt python ./phoneinfoga.py -h ``` -Then set APIs credentials in `secrets.py`. - ## Usage ``` From 0b5987396e82c49b75874b00812815f155df7fd7 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Thu, 8 Nov 2018 12:01:30 +0100 Subject: [PATCH 27/72] [Docs] Resources --- README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6df899c..d0522dc 100644 --- a/README.md +++ b/README.md @@ -117,26 +117,35 @@ This tool is MIT licensed. Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` +### Docs + +- http://whitepages.fr/phonesystem/ +- https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers +- https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers + +### open data + - https://api.ovh.com/console/#/telephony - `/telephony/number/ranges` - `/telephony/number/detailedZones` - `/telephony/number/specificNumbers` - https://countrycode.org/ - http://www.countryareacode.net/en/ -- http://whitepages.fr/phonesystem/ - http://directory.didww.com/area-prefixes -- https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers -- https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers +- http://hs3x.com/ ### Scanners + - https://www.phonevalidator.com/ - https://freecarrierlookup.com/ - https://www.411.com/ +- https://www.washington.edu/home/peopledir/ ### OSINT + - https://osintframework.com/ -### Google hacking +#### Google dork requests - `insubject:"+XXXXXXXXX" | insubject:"+XXXXX" | insubject:"XXXXX XXX XXX` - `insubject:"{number}" | intitle:"{number}"` From d6abe580ff01b6be93bc748c2e211a17245c5046 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Thu, 8 Nov 2018 12:04:29 +0100 Subject: [PATCH 28/72] [Docs] The project --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d0522dc..6765633 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,9 @@ Advanced information gathering tool & OSINT reconnaissance for phone numbers. -The goal of this tool is to first identify basic informations such as country, area, carrier and line type on any international phone numbers with a very good accuracy, and then detect the VoIP provider or search for footprints on search engines to try identify the owner. +## The project + +Building the most advanced tool to scan phone numbers using only free resources. The goal is to first identify basic informations such as country, area, carrier and line type on any international phone numbers with a very good accuracy, and then detect the VoIP provider or search for footprints on search engines to try identify the owner. **This tool requires python 2.x** From 245a1aa9b9f6eb99a4c05a23793dd179bf40936a Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Sat, 10 Nov 2018 12:47:51 +0100 Subject: [PATCH 29/72] License --- LICENSE | 674 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 674 insertions(+) create mode 100644 LICENSE diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..f288702 --- /dev/null +++ b/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + Copyright (C) + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +. From 4659684c808fcb7a21420a91925543ff4e88a71e Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Sat, 10 Nov 2018 12:49:01 +0100 Subject: [PATCH 30/72] License notice --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6765633..1ee99b3 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,7 @@ Here’s the same phone number in E.164 formatting: +442071838750 ## License -This tool is MIT licensed. +This tool is licensed under the GNU General Public License v3.0. ## Resources From ff9a44c2669e636364d19a899966c56768edc34d Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Sat, 10 Nov 2018 12:55:51 +0100 Subject: [PATCH 31/72] Update test.txt --- tests/test.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test.txt b/tests/test.txt index 633fcb4..56689e4 100644 --- a/tests/test.txt +++ b/tests/test.txt @@ -1,3 +1,6 @@ -6464806649 ++856 20 99 453 217 +59172768361 -+33679368233 \ No newline at end of file ++33679368233 ++1 (541) 754-3010 ++86 591 2284 8571 ++7 496 4819375 From 053f065efd3f96efb9fa7657d2f8e33fb66cf38a Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 13 Nov 2018 13:29:04 +0100 Subject: [PATCH 32/72] Requirements --- requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index c0e12c9..1ff83f7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,7 @@ requests -hashlib json argparse re -ovh \ No newline at end of file +ovh +bs4 +html5lib From 99944001106e79158431c78be3a5466311284aa0 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 13 Nov 2018 13:30:05 +0100 Subject: [PATCH 33/72] Regex formats --- phoneinfoga.py | 29 +++++++++++------------------ 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index b1e32e3..7dc9c1c 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -81,38 +81,33 @@ def formatNumber(number): if re.match(r'(?:1){1}[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{6}', PhoneNumber['full']): countryCodeRegex = r'[0-9]{10}$' - elif len(PhoneNumber['full']) == 13: - countryCodeRegex = r'[0-9]{11}$' - elif len(PhoneNumber['full']) == 12: + elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{10}', PhoneNumber['full']): countryCodeRegex = r'[0-9]{10}$' - elif len(PhoneNumber['full']) == 11: + elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{9}', PhoneNumber['full']): countryCodeRegex = r'[0-9]{9}$' - elif len(PhoneNumber['full']) == 10: + elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{8}', PhoneNumber['full']): countryCodeRegex = r'[0-9]{8}$' + elif re.match(r'(?:\+)?[0-9]{1}(?:0)?[0-9]{10}', PhoneNumber['full']): + countryCodeRegex = r'[0-9]{10}$' else: - countryCodeRegex = r'[0-9]{7}$' + print code_error + 'Unable to identify format. Ignore this scan.' + countryCodeRegex = r'[0-9]{9}$' PhoneNumber['countryCode'] = re.sub(countryCodeRegex, '', PhoneNumber['full']) PhoneNumber['number'] = PhoneNumber['full'].replace(PhoneNumber['countryCode'], '') return PhoneNumber -def searchCountryCode(countryCode): +def searchCountryCode(countryCode, number): print code_info + 'Searching for country in format...' with open('./data/country_codes.json') as CountryCodesFile: country_codes = json.load(CountryCodesFile) for country in country_codes: if country['dial_code'] == '+' + countryCode: + print code_result + 'Local format: (0)' + number print code_result + 'Country code: +' + countryCode print code_result + 'Country found: %s (%s)' % (country['name'],country['code']) - with open('./data/area_codes.json') as AreaCodesFile: - area_codes = json.load(AreaCodesFile) - for area_country in area_codes: - if area_country['CountryCode'] == country['code']: - for area in area_country['AreaCodes']: - if area == "10": - print 'y' #check for area code #print code_result + 'Areas found (approximate) : Bordeaux, Limoges' @@ -251,18 +246,16 @@ def freecarrierlookupScan(countryCode, number): def scanNumber(number): PhoneNumber = formatNumber(number) - print "\033[1m\033[93m[!] ---- Fetching informations for (0)" + PhoneNumber['number'] + " ---- [!]" + print "\033[1m\033[93m[!] ---- Fetching informations for (+)" + PhoneNumber['full'] + " ---- [!]" print code_info + 'Parsing informations from format...' - print code_result + 'Local format: (0)' + PhoneNumber['number'] - if not isNumberValid(PhoneNumber['full']): print(code_error + "Error: number " + number + " is not valid. Skipping.") sys.exit() # Check dial code - searchCountryCode(PhoneNumber['countryCode']) + searchCountryCode(PhoneNumber['countryCode'], PhoneNumber['number']) #check area code by country #if found in area codes -> landline From eddf09a8a7ded5bfeda95841fb3f6446dc79a681 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 13 Nov 2018 13:36:21 +0100 Subject: [PATCH 34/72] [Docs] Introduction --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1ee99b3..d67793b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # PhoneInfoga -Advanced information gathering tool & OSINT reconnaissance for phone numbers. +Advanced information gathering & OSINT reconnaissance tool for phone numbers. Designed for Social Engineering and red teaming. + +### Hello, friend. Next time cover your tracks. + + ## The project From 518004f3483785ddc7fc7a8874ce01995f8dc88e Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 13 Nov 2018 23:49:16 +0100 Subject: [PATCH 35/72] Requirements --- requirements.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/requirements.txt b/requirements.txt index 1ff83f7..582be52 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,5 @@ requests -json -argparse -re ovh bs4 html5lib +phonenumbers From 1dd679acfad054f0dd18173443bc6c22a1cc206a Mon Sep 17 00:00:00 2001 From: sundowndev Date: Tue, 13 Nov 2018 23:51:44 +0100 Subject: [PATCH 36/72] Import/use phonenumbers lib --- phoneinfoga.py | 109 ++++++++++++++++++++----------------------------- 1 file changed, 44 insertions(+), 65 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 7dc9c1c..7ca9179 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,13 +1,5 @@ #!/usr/bin/env python -import requests -import sys -import hashlib -import json -import argparse -from bs4 import BeautifulSoup -import re - __version__ = '0.3-dev' print "\n \033[92m" @@ -21,6 +13,18 @@ print " PhoneInfoga Ver. %s " % __v print " Coded by Sundowndev " print "\033[94m\n" +import requests +import sys +import hashlib +import json +import argparse +from bs4 import BeautifulSoup +import re +import phonenumbers +from phonenumbers import carrier +from phonenumbers import geocoder +from phonenumbers import timezone + parser = argparse.ArgumentParser(description= "Advanced information gathering tool for phone numbers (https://github.com/sundowndev/PhoneInfoga) version %s" % __version__, usage='%(prog)s -n [options]') @@ -60,61 +64,42 @@ code_warning = '\033[93m(!) ' code_result = '\033[1;32m[+] ' code_error = '\033[91m[!] ' -def parseInput(file): - print 'parse' - -def saveToOutput(): +def saveToOutput(output): print 'save' -def isNumberValid(PhoneNumber): - if len(PhoneNumber) < 9 and len(PhoneNumber) > 13: - return False - elif not re.match("^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$", PhoneNumber): - return False - else: - return True +def localScan(number): + print code_info + 'Running local scan...' -def formatNumber(number): PhoneNumber = dict(); - PhoneNumber['full'] = number.replace("+", "").replace("\n", "").replace(" ", "") + FormattedPhoneNumber = number.replace("\n", "").replace("-", "").replace(" ", "") - if re.match(r'(?:1){1}[2-9]{1}[0-9]{2}[2-9]{1}[0-9]{6}', PhoneNumber['full']): - countryCodeRegex = r'[0-9]{10}$' - elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{10}', PhoneNumber['full']): - countryCodeRegex = r'[0-9]{10}$' - elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{9}', PhoneNumber['full']): - countryCodeRegex = r'[0-9]{9}$' - elif re.match(r'(?:\+)?[0-9]{3}(?:0)?[0-9]{8}', PhoneNumber['full']): - countryCodeRegex = r'[0-9]{8}$' - elif re.match(r'(?:\+)?[0-9]{1}(?:0)?[0-9]{10}', PhoneNumber['full']): - countryCodeRegex = r'[0-9]{10}$' + try: + PhoneNumberObject = phonenumbers.parse(FormattedPhoneNumber, None) + except: + return False else: - print code_error + 'Unable to identify format. Ignore this scan.' - countryCodeRegex = r'[0-9]{9}$' + if not phonenumbers.is_valid_number(PhoneNumberObject): + return False - PhoneNumber['countryCode'] = re.sub(countryCodeRegex, '', PhoneNumber['full']) - PhoneNumber['number'] = PhoneNumber['full'].replace(PhoneNumber['countryCode'], '') + PhoneNumber['full'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace('+', '') + PhoneNumber['countryCode'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] + PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') - return PhoneNumber + print code_result + 'Local format: (0)' + PhoneNumber['number'] + print code_result + 'Country code: ' + PhoneNumber['countryCode'] + print code_result + 'Location: %s' % geocoder.description_for_number(PhoneNumberObject, "en") + print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') + print code_result + 'Area: %s' % geocoder.description_for_number(PhoneNumberObject, 'en') + #print '\033[1;32m[+] Timezone: %s, %s' % (timezone.time_zones_for_number(PhoneNumberObject)[0],timezone.time_zones_for_number(PhoneNumberObject)[1]) + #print code_info + 'This is most likely a landline, or a fixed VoIP.' -def searchCountryCode(countryCode, number): - print code_info + 'Searching for country in format...' + if phonenumbers.is_possible_number(PhoneNumberObject): + print code_info + 'The number is valid and possible.' + else: + print code_warning + 'The number is valid but might not be possible.' - with open('./data/country_codes.json') as CountryCodesFile: - country_codes = json.load(CountryCodesFile) - for country in country_codes: - if country['dial_code'] == '+' + countryCode: - print code_result + 'Local format: (0)' + number - print code_result + 'Country code: +' + countryCode - print code_result + 'Country found: %s (%s)' % (country['name'],country['code']) - - #check for area code - #print code_result + 'Areas found (approximate) : Bordeaux, Limoges' - - #check for carrier - #print '\033[1;32m[+] Carrier found: France Sfr Mobile' - #print code_info + 'This is most likely a landline, or a fixed VoIP.' + return PhoneNumber def numverifyScan(PhoneNumber): if not args.scanner == 'numverify' and not args.scanner == 'all': @@ -244,31 +229,25 @@ def freecarrierlookupScan(countryCode, number): print code_result + 'MMS Gateway Address: ' def scanNumber(number): - PhoneNumber = formatNumber(number) + print "\033[1m\033[93m[!] ---- Fetching informations for %s ---- [!]" % number - print "\033[1m\033[93m[!] ---- Fetching informations for (+)" + PhoneNumber['full'] + " ---- [!]" + print code_info + 'Parsing informations...' - print code_info + 'Parsing informations from format...' + PhoneNumber = localScan(number) - if not isNumberValid(PhoneNumber['full']): + if not PhoneNumber: print(code_error + "Error: number " + number + " is not valid. Skipping.") sys.exit() - # Check dial code - searchCountryCode(PhoneNumber['countryCode'], PhoneNumber['number']) - - #check area code by country - #if found in area codes -> landline - numverifyScan(PhoneNumber['full']) - ovhScan('fr', PhoneNumber['full']) - freecarrierlookupScan(PhoneNumber['countryCode'], PhoneNumber['number']) + ovhScan('fr', PhoneNumber['full']) # TODO: replace 1st parameter to be dynamic + #freecarrierlookupScan(PhoneNumber['countryCode'], PhoneNumber['number']) #whosenumberScan(PhoneNumber['countryCode'], PhoneNumber['number']) #repScan(PhoneNumber['countryCode'], PhoneNumber['number']) print '\n' -# Verify scanner +# Verify scanner option if not args.scanner in scanners: print(code_error + "Error: scanner doesn't exists.") sys.exit() From 390c0f6d43a317999df9b967a21a6dcd159765e0 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Thu, 15 Nov 2018 14:12:27 +0100 Subject: [PATCH 37/72] Minor refactor & v0.4-dev --- phoneinfoga.py | 67 +++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 47 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 7ca9179..4080daf 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -__version__ = '0.3-dev' +__version__ = '0.4-dev' print "\n \033[92m" print " ___ _ _____ __ " @@ -57,7 +57,7 @@ if args.update: print 'update' sys.exit() -scanners = ['any', 'all', 'numverify', 'ovh', 'whosenumber', 'freecarrier', '411'] +scanners = ['any', 'all', 'numverify', 'ovh', 'voiplist'] code_info = '\033[97m[*] ' code_warning = '\033[93m(!) ' @@ -67,12 +67,15 @@ code_error = '\033[91m[!] ' def saveToOutput(output): print 'save' +def formatNumber(number): + return re.sub("(?:\+)?(?:[^[0-9]*)", "", number) + def localScan(number): print code_info + 'Running local scan...' PhoneNumber = dict(); - FormattedPhoneNumber = number.replace("\n", "").replace("-", "").replace(" ", "") + FormattedPhoneNumber = "+" + formatNumber(number) try: PhoneNumberObject = phonenumbers.parse(FormattedPhoneNumber, None) @@ -92,7 +95,6 @@ def localScan(number): print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') print code_result + 'Area: %s' % geocoder.description_for_number(PhoneNumberObject, 'en') #print '\033[1;32m[+] Timezone: %s, %s' % (timezone.time_zones_for_number(PhoneNumberObject)[0],timezone.time_zones_for_number(PhoneNumberObject)[1]) - #print code_info + 'This is most likely a landline, or a fixed VoIP.' if phonenumbers.is_possible_number(PhoneNumberObject): print code_info + 'The number is valid and possible.' @@ -154,6 +156,9 @@ def numverifyScan(PhoneNumber): print(code_result + "Carrier: %s") % data["carrier"] print(code_result + "Line type: %s") % data["line_type"] + if data["line_type"] == 'landline': + print(code_warning + "This is most likely a landline, or a fixed VoIP.") + def ovhScan(country, number): if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 @@ -185,54 +190,21 @@ def repScan(countryCode, number): print code_info + 'Running 411.com scan...' print 'https://www.411.com/phone/%s-%s' % (countryCode,number) -def freecarrierlookupScan(countryCode, number): - if not args.scanner == 'freecarrier' and not args.scanner == 'all': - return -1 +def voiplistScan(number): + print code_info + 'Running VoIP list scan...' + # voip search - print code_info + 'Running freecarrierlookup.com scan...' +def osintScan(countryCode, number): + print code_info + 'Running OSINT scan...' + # OSINT recon - payload = "phonenum=%s&cc=%s" % (number,countryCode) - headers = { - 'host': "freecarrierlookup.com", - 'connection': "keep-alive", - 'content-length': "48", - 'accept': "application/json, text/javascript, */*; q=0.01", - 'origin': "https://freecarrierlookup.com", - 'x-requested-with': "XMLHttpRequest", - 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", - 'content-type': "application/x-www-form-urlencoded", - 'referer': "https://freecarrierlookup.com/", - 'accept-encoding': "gzip, deflate, br", - 'accept-language': "en-US,en;q=0.9,fr;q=0.8,la;q=0.7,es;q=0.6,zh-CN;q=0.5,zh;q=0.4", - 'cookie': "PHPSESSID=cdifm9u3ch2mqscdnj2pjqjfuq", - 'cache-control': "no-cache", - 'postman-token': "c81a7bb0-f338-c2e5-5f32-e1b94726cce5" - } - - response = requests.request("POST", "https://freecarrierlookup.com/getcarrier.php", data=payload, headers=headers) - - print response.content - - data = json.loads(response.content) - - if not data["status"] == "success": - print code_error + '0 result found.' - return -1 - - soup = BeautifulSoup(response.content, "html5lib") - tags = soup.find_all("p") - - print code_result + 'Phone Number: ' + tags[0].string.replace('<\/p>\\n <\/div>\\n', '') - print code_result + 'Carrier: ' + tags[1].string.replace('<\/p>\\n <\/div>\\n', '') - print code_result + 'Is Wireless:' - print code_result + 'SMS Gateway Address: ' - print code_result + 'MMS Gateway Address: ' + # social profiles + # websites + # emails def scanNumber(number): print "\033[1m\033[93m[!] ---- Fetching informations for %s ---- [!]" % number - print code_info + 'Parsing informations...' - PhoneNumber = localScan(number) if not PhoneNumber: @@ -241,9 +213,10 @@ def scanNumber(number): numverifyScan(PhoneNumber['full']) ovhScan('fr', PhoneNumber['full']) # TODO: replace 1st parameter to be dynamic - #freecarrierlookupScan(PhoneNumber['countryCode'], PhoneNumber['number']) #whosenumberScan(PhoneNumber['countryCode'], PhoneNumber['number']) #repScan(PhoneNumber['countryCode'], PhoneNumber['number']) + voiplistScan(PhoneNumber['full']) + osintScan(PhoneNumber['countryCode'], PhoneNumber['full']) print '\n' From a607a9ca5f5224654e3bf06629951c71e55ed50c Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Thu, 15 Nov 2018 14:32:34 +0100 Subject: [PATCH 38/72] [Docs] Resources --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d67793b..b2366f2 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` ### OSINT - https://osintframework.com/ +- http://raidersec.blogspot.com/2012/12/automated-open-source-intelligence.html#google_api #### Google dork requests From 65ebc55ba2925caa80e0cb39dc942ebbfa1c696e Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Mon, 19 Nov 2018 11:42:59 +0100 Subject: [PATCH 39/72] [Docs] Google dork requests --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index b2366f2..bf9ff5f 100644 --- a/README.md +++ b/README.md @@ -157,3 +157,5 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - `insubject:"+XXXXXXXXX" | insubject:"+XXXXX" | insubject:"XXXXX XXX XXX` - `insubject:"{number}" | intitle:"{number}"` - `intext:"{number}" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html` +- voip provider check: `site:"hs3x.com" intext:"+61437954897"` +- scam number check:`site:signal-arnaques.com intext:"0682649478" intitle:" | Phone Fraud"` From 7cf19717cb95e168d0d78c944e325a82d457e420 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 19 Nov 2018 17:40:11 +0100 Subject: [PATCH 40/72] Add invalid number --- tests/test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test.txt b/tests/test.txt index 56689e4..794367b 100644 --- a/tests/test.txt +++ b/tests/test.txt @@ -4,3 +4,4 @@ +1 (541) 754-3010 +86 591 2284 8571 +7 496 4819375 +39172768361 From 369ee12fbc43d4703de237cd9ec435ab06ae6013 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 19 Nov 2018 17:43:19 +0100 Subject: [PATCH 41/72] OSINT recon & output option --- phoneinfoga.py | 145 ++++++++++++++++++++++++++++++------------------- 1 file changed, 88 insertions(+), 57 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 4080daf..47f8c14 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,29 +1,23 @@ #!/usr/bin/env python -__version__ = '0.4-dev' +__version__ = '0.6-dev' + +def banner(): + print " ___ _ _____ __ " + print " / _ \ |__ ___ _ __ ___ \_ \_ __ / _| ___ __ _ __ _ " + print " / /_)/ '_ \ / _ \| '_ \ / _ \ / /\/ '_ \| |_ / _ \ / _` |/ _` |" + print " / ___/| | | | (_) | | | | __/\/ /_ | | | | _| (_) | (_| | (_| |" + print " \/ |_| |_|\___/|_| |_|\___\____/ |_| |_|_| \___/ \__, |\__,_|" + print " |___/ " + print " PhoneInfoga Ver. %s " % __version__ + print " Coded by Sundowndev " print "\n \033[92m" -print " ___ _ _____ __ " -print " / _ \ |__ ___ _ __ ___ \_ \_ __ / _| ___ __ _ __ _ " -print " / /_)/ '_ \ / _ \| '_ \ / _ \ / /\/ '_ \| |_ / _ \ / _` |/ _` |" -print " / ___/| | | | (_) | | | | __/\/ /_ | | | | _| (_) | (_| | (_| |" -print " \/ |_| |_|\___/|_| |_|\___\____/ |_| |_|_| \___/ \__, |\__,_|" -print " |___/ " -print " PhoneInfoga Ver. %s " % __version__ -print " Coded by Sundowndev " +banner() print "\033[94m\n" -import requests import sys -import hashlib -import json import argparse -from bs4 import BeautifulSoup -import re -import phonenumbers -from phonenumbers import carrier -from phonenumbers import geocoder -from phonenumbers import timezone parser = argparse.ArgumentParser(description= "Advanced information gathering tool for phone numbers (https://github.com/sundowndev/PhoneInfoga) version %s" % __version__, @@ -32,10 +26,10 @@ parser = argparse.ArgumentParser(description= parser.add_argument('-n', '--number', metavar='number', type=str, help='The phone number to scan (E164 or international format)') -parser.add_argument('-i', '--input', metavar="input_file", type=file, +parser.add_argument('-i', '--input', metavar="input_file", type=argparse.FileType('r'), help='Phone number list to scan (one per line)') -parser.add_argument('-o', '--output', metavar="output_file", type=file, +parser.add_argument('-o', '--output', metavar="output_file", type=argparse.FileType('w'), help='Output to save scan results') parser.add_argument('-s', '--scanner', metavar="scanner", default="all", type=str, @@ -52,20 +46,23 @@ args = parser.parse_args() # If any param is passed, execute help command if not len(sys.argv) > 1: parser.print_help() + sys.exit(); if args.update: print 'update' sys.exit() -scanners = ['any', 'all', 'numverify', 'ovh', 'voiplist'] +import requests +import hashlib +import json +from bs4 import BeautifulSoup +import re +import phonenumbers +from phonenumbers import carrier +from phonenumbers import geocoder +from phonenumbers import timezone -code_info = '\033[97m[*] ' -code_warning = '\033[93m(!) ' -code_result = '\033[1;32m[+] ' -code_error = '\033[91m[!] ' - -def saveToOutput(output): - print 'save' +scanners = ['any', 'all', 'numverify', 'ovh'] def formatNumber(number): return re.sub("(?:\+)?(?:[^[0-9]*)", "", number) @@ -157,15 +154,19 @@ def numverifyScan(PhoneNumber): print(code_result + "Line type: %s") % data["line_type"] if data["line_type"] == 'landline': - print(code_warning + "This is most likely a landline, or a fixed VoIP.") + print(code_warning + "This is most likely a land line, or a fixed VoIP.") + elif data["line_type"] == 'mobile': + print(code_warning + "This is most likely a mobile, or a VoIP.") -def ovhScan(country, number): +def ovhScan(countryCode, number): if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 print code_info + 'Running OVH scan...' - querystring = {"country":country} + #cc + + querystring = {"country":"fr"} headers = { 'accept': "application/json", @@ -176,46 +177,63 @@ def ovhScan(country, number): data = json.loads(response.content) -def whosenumberScan(countryCode, number): - if not args.scanner == 'whosenumber' and not args.scanner == 'all': - return -1 + if isinstance(data, list): + askedNumber = "0" + number.replace(number[-4:], 'xxxx') - print code_info + 'Running Whosenumber scan...' - print 'https://whosenumber.info/' + countryCode + number - -def repScan(countryCode, number): - if not args.scanner == '411' and not args.scanner == 'all': - return -1 - - print code_info + 'Running 411.com scan...' - print 'https://www.411.com/phone/%s-%s' % (countryCode,number) - -def voiplistScan(number): - print code_info + 'Running VoIP list scan...' - # voip search + for voip_number in data: + if voip_number['number'] == askedNumber: + print(code_info + "1 result found in OVH database") + print(code_result + "Number range: " + voip_number['number']) + print(code_result + "City: " + voip_number['city']) + print(code_result + "Zip code: " + voip_number['zipCode'] if voip_number['zipCode'] is not None else '') def osintScan(countryCode, number): - print code_info + 'Running OSINT scan...' + if not args.osint: + return -1 + + import urllib + from googlesearch import search + + print code_info + 'Running OSINT reconnaissance...' # OSINT recon - # social profiles + # social profiles: facebook, twitter, linkedin, instagram # websites # emails + #social + #rep + #whitepages + #voip providers + + print(code_info + "Searching for owner on 411.com...") + #https://www.411.com/phone/33-6-79-36-82-33 + + print(code_info + "Searching for reputation page on whosenumber.info...") + for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=20): + if result: + print(code_result + "Found 1 result on whosenumber.info.") + print(code_info + "This usually means you are not the first to search about this number. Check the URL for eventual comments.") + print(code_result + "URL: " + result) + + print(code_info + "Searching for results on hs3x.com...") + for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=20): + if result: + print(code_result + "Found 1 result on hs3x.com.") + print(code_info + "This number seems to be a VoIP number from hs3x.") + print(code_result + "URL: " + result) + def scanNumber(number): - print "\033[1m\033[93m[!] ---- Fetching informations for %s ---- [!]" % number + print code_title + "[!] ---- Fetching informations for %s ---- [!]" % formatNumber(number) PhoneNumber = localScan(number) if not PhoneNumber: - print(code_error + "Error: number " + number + " is not valid. Skipping.") + print(code_error + "Error: number " + formatNumber(number) + " is not valid. Skipping.") sys.exit() numverifyScan(PhoneNumber['full']) - ovhScan('fr', PhoneNumber['full']) # TODO: replace 1st parameter to be dynamic - #whosenumberScan(PhoneNumber['countryCode'], PhoneNumber['number']) - #repScan(PhoneNumber['countryCode'], PhoneNumber['number']) - voiplistScan(PhoneNumber['full']) + ovhScan(PhoneNumber['countryCode'], PhoneNumber['number']) # TODO: replace 1st parameter to be dynamic osintScan(PhoneNumber['countryCode'], PhoneNumber['full']) print '\n' @@ -225,6 +243,21 @@ if not args.scanner in scanners: print(code_error + "Error: scanner doesn't exists.") sys.exit() +if args.output: + code_info = '[*] ' + code_warning = '(!) ' + code_result = '[+] ' + code_error = '[!] ' + code_title = '' + + sys.stdout = args.output +else: + code_info = '\033[97m[*] ' + code_warning = '\033[93m(!) ' + code_result = '\033[1;32m[+] ' + code_error = '\033[91m[!] ' + code_title = '\033[1m\033[93m' + if args.number: scanNumber(args.number) elif args.input: @@ -232,6 +265,4 @@ elif args.input: scanNumber(line) if args.output: - args.output.write("Hello World") - args.output.close() From cdebe84b051fc14412c9e3c93817b3c879df61d1 Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Mon, 19 Nov 2018 22:23:57 +0100 Subject: [PATCH 42/72] Update todo.md --- todo.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/todo.md b/todo.md index 465271a..2e88fb6 100644 --- a/todo.md +++ b/todo.md @@ -1,7 +1,8 @@ # Todo list -- Input feature -- Output feature -- OVH scanner +- Input feature: Done +- Output feature: Done +- OVH scanner: Done - Update feature -- Offline scan +- Offline scan: Done +- OSINT recon From 0e768cdf3b9353d819f0eba8a623bbdec9f6470a Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 19 Nov 2018 22:49:23 +0100 Subject: [PATCH 43/72] Timezone result in local scan --- phoneinfoga.py | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 47f8c14..0b98fd2 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -86,12 +86,13 @@ def localScan(number): PhoneNumber['countryCode'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') - print code_result + 'Local format: (0)' + PhoneNumber['number'] - print code_result + 'Country code: ' + PhoneNumber['countryCode'] + print code_result + 'Local format: (0)%s' % PhoneNumber['number'] + print code_result + 'Country code: %s' % PhoneNumber['countryCode'] print code_result + 'Location: %s' % geocoder.description_for_number(PhoneNumberObject, "en") - print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') - print code_result + 'Area: %s' % geocoder.description_for_number(PhoneNumberObject, 'en') - #print '\033[1;32m[+] Timezone: %s, %s' % (timezone.time_zones_for_number(PhoneNumberObject)[0],timezone.time_zones_for_number(PhoneNumberObject)[1]) + print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') + print code_result + 'Area: %s' % geocoder.description_for_number(PhoneNumberObject, 'en') + for timezoneResult in timezone.time_zones_for_number(PhoneNumberObject): + print code_result + 'Timezone: %s' % (timezoneResult) if phonenumbers.is_possible_number(PhoneNumberObject): print code_info + 'The number is valid and possible.' @@ -137,7 +138,7 @@ def numverifyScan(PhoneNumber): if response.content == "Unauthorized" or response.status_code != 200: print(code_error + "An error occured while calling the API (bad request or wrong api key).") - sys.exit() + return -1 data = json.loads(response.content) @@ -154,9 +155,9 @@ def numverifyScan(PhoneNumber): print(code_result + "Line type: %s") % data["line_type"] if data["line_type"] == 'landline': - print(code_warning + "This is most likely a land line, or a fixed VoIP.") + print(code_warning + "This is most likely a land line, but it can still be a fixed VoIP.") elif data["line_type"] == 'mobile': - print(code_warning + "This is most likely a mobile, or a VoIP.") + print(code_warning + "This is most likely a mobile, but it can still be a VoIP.") def ovhScan(countryCode, number): if not args.scanner == 'ovh' and not args.scanner == 'all': @@ -191,7 +192,6 @@ def osintScan(countryCode, number): if not args.osint: return -1 - import urllib from googlesearch import search print code_info + 'Running OSINT reconnaissance...' @@ -201,23 +201,21 @@ def osintScan(countryCode, number): # websites # emails - #social - #rep - #whitepages - #voip providers - + # Whitepages print(code_info + "Searching for owner on 411.com...") #https://www.411.com/phone/33-6-79-36-82-33 + # Reputation print(code_info + "Searching for reputation page on whosenumber.info...") - for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=20): + for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): if result: print(code_result + "Found 1 result on whosenumber.info.") print(code_info + "This usually means you are not the first to search about this number. Check the URL for eventual comments.") print(code_result + "URL: " + result) + # VoIP providers print(code_info + "Searching for results on hs3x.com...") - for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=20): + for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=1): if result: print(code_result + "Found 1 result on hs3x.com.") print(code_info + "This number seems to be a VoIP number from hs3x.") From 0f61fc338845b51658320b023bbdd3964874bbeb Mon Sep 17 00:00:00 2001 From: sundowndev Date: Mon, 19 Nov 2018 22:50:02 +0100 Subject: [PATCH 44/72] Add google search in library requirements --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index 582be52..feaee98 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ ovh bs4 html5lib phonenumbers +google From 3bc1bf6ea32dd32cc95cd75ca0d0a86efdb26c7e Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 20 Nov 2018 16:52:37 +0100 Subject: [PATCH 45/72] Update todo.md --- todo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/todo.md b/todo.md index 2e88fb6..b04b004 100644 --- a/todo.md +++ b/todo.md @@ -2,7 +2,7 @@ - Input feature: Done - Output feature: Done -- OVH scanner: Done +- OVH scanner - Update feature - Offline scan: Done - OSINT recon From 6379c53266503d1d6c8d1ab7762bb4a401c26c2f Mon Sep 17 00:00:00 2001 From: Raphael Cerveaux Date: Tue, 20 Nov 2018 16:58:43 +0100 Subject: [PATCH 46/72] Update todo.md --- todo.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/todo.md b/todo.md index b04b004..2f20810 100644 --- a/todo.md +++ b/todo.md @@ -3,6 +3,14 @@ - Input feature: Done - Output feature: Done - OVH scanner + - Search for number range - Update feature - Offline scan: Done - OSINT recon + - Search for social profiles (facebook, twitter, linkedin, instagram) + - Search for documents + - Search for websites + - Search for emails + - Search on 411 + - Search on hs3x + - Search on whosenumber From b7929a45c2236689c1d5ab1606a1fe80fe54a407 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 21 Nov 2018 00:32:45 +0100 Subject: [PATCH 47/72] Requirements --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index feaee98..02ae170 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,4 @@ requests -ovh bs4 html5lib phonenumbers From 4adb27213f7a1560cfde9274dfb5ab3f98873006 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 21 Nov 2018 00:33:01 +0100 Subject: [PATCH 48/72] OSINT scan & minor refactor --- phoneinfoga.py | 168 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 129 insertions(+), 39 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 0b98fd2..1ccbaa7 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -__version__ = '0.6-dev' +__version__ = '0.8-dev' def banner(): print " ___ _ _____ __ " @@ -11,10 +11,11 @@ def banner(): print " |___/ " print " PhoneInfoga Ver. %s " % __version__ print " Coded by Sundowndev " + print "\n" print "\n \033[92m" banner() -print "\033[94m\n" +print "\033[94m" import sys import argparse @@ -52,15 +53,22 @@ if args.update: print 'update' sys.exit() -import requests +import time import hashlib import json -from bs4 import BeautifulSoup import re -import phonenumbers -from phonenumbers import carrier -from phonenumbers import geocoder -from phonenumbers import timezone + +try: + import requests + from bs4 import BeautifulSoup + import html5lib + import phonenumbers + from phonenumbers import carrier + from phonenumbers import geocoder + from phonenumbers import timezone + from googlesearch import search +except: + print code_error + 'Missing requirements. Try running pip install -r requirements.txt' scanners = ['any', 'all', 'numverify', 'ovh'] @@ -83,10 +91,13 @@ def localScan(number): return False PhoneNumber['full'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace('+', '') + PhoneNumber['country'] = 'FR' PhoneNumber['countryCode'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') + PhoneNumber['international'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) - print code_result + 'Local format: (0)%s' % PhoneNumber['number'] + print code_result + 'International format: %s' % PhoneNumber['international'] + print code_result + 'Local format: 0%s' % PhoneNumber['number'] print code_result + 'Country code: %s' % PhoneNumber['countryCode'] print code_result + 'Location: %s' % geocoder.description_for_number(PhoneNumberObject, "en") print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') @@ -159,15 +170,13 @@ def numverifyScan(PhoneNumber): elif data["line_type"] == 'mobile': print(code_warning + "This is most likely a mobile, but it can still be a VoIP.") -def ovhScan(countryCode, number): +def ovhScan(country, number): if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 print code_info + 'Running OVH scan...' - #cc - - querystring = {"country":"fr"} + querystring = { "country": country.lower() } headers = { 'accept': "application/json", @@ -187,39 +196,119 @@ def ovhScan(countryCode, number): print(code_result + "Number range: " + voip_number['number']) print(code_result + "City: " + voip_number['city']) print(code_result + "Zip code: " + voip_number['zipCode'] if voip_number['zipCode'] is not None else '') + askForExit() -def osintScan(countryCode, number): +def osintScan(countryCode, number, internationalNumber): if not args.osint: return -1 - from googlesearch import search - print code_info + 'Running OSINT reconnaissance...' - # OSINT recon - - # social profiles: facebook, twitter, linkedin, instagram - # websites - # emails + print code_info + 'Running OSINT footprint reconnaissance...' # Whitepages - print(code_info + "Searching for owner on 411.com...") - #https://www.411.com/phone/33-6-79-36-82-33 + print(code_info + "Generating scan URL on 411.com...") + print code_result + "Scan URL: https://www.411.com/phone/%s" % internationalNumber.replace('+', '').replace(' ', '-') - # Reputation - print(code_info + "Searching for reputation page on whosenumber.info...") - for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): - if result: - print(code_result + "Found 1 result on whosenumber.info.") - print(code_info + "This usually means you are not the first to search about this number. Check the URL for eventual comments.") - print(code_result + "URL: " + result) + try: + # Social profiles: facebook, twitter, linkedin, instagram + print(code_info + "Searching for footprints on facebook.com... (limit=5)") + for result in search('site:facebook.com intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) - # VoIP providers - print(code_info + "Searching for results on hs3x.com...") - for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found 1 result on hs3x.com.") - print(code_info + "This number seems to be a VoIP number from hs3x.") - print(code_result + "URL: " + result) + print(code_info + "Searching for footprints on twitter.com... (limit=5)") + for result in search('site:twitter.com intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on linkedin.com... (limit=5)") + for result in search('site:linkedin.com intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on instagram.com... (limit=5)") + for result in search('site:instagram.com intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + + print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." + time.sleep(10) + + # Websites + # + + # Documents + print(code_info + "Searching for documents... (limit=5)") + for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + + print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." + time.sleep(10) + + print(code_info + "Searching for documents on washington.edu... (limit=5)") + UWReq = search('site:washington.edu intext:"%s" | "%s"' % (number,number), stop=5) + if len(list(UWReq)) > 0: + print code_info + 'Found %s results' % len(list(UWReq)) + for result in UWReq: + if result: + print(code_result + "Result found: " + result) + + # Reputation + print(code_info + "Searching for reputation report on whosenumber.info... (limit=1)") + for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): + if result: + print(code_result + "Found 1 result on whosenumber.info.") + print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") + print(code_result + "URL: " + result) + + print(code_info + "Searching for Phone Fraud footprints... (limit=5)") + for result in search('intitle:"Phone Fraud" intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") + + # Temporary number providers + print(code_info + "Searching for results on hs3x.com... (limit=1)") + for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: hs3x.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-sms-now.com... (limit=1)") + for result in search('site:"receive-sms-now.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-sms-now.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-sms-online.com... (limit=1)") + for result in search('site:"receive-sms-online.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-sms-online.com") + print(code_result + "URL: " + result) + askForExit() + except: + print code_error + 'Impossible to fetch Google search API. This usually mean you\'re temporary blacklisted.' + + print(code_info + "Searching for phone number on tempophone.com...") + response = requests.request("GET", "https://tempophone.com/api/v1/phones") + data = json.loads(response.content) + for voip_number in data['objects']: + if voip_number['phone'] == formatNumber(number): + print(code_result + "Found a temporary number provider: tempophone.com") + askForExit() + +def askForExit(): + if not args.output: + user_input = raw_input(code_info + "Continue scanning ? (Y/n): ") + + if user_input.lower() == 'n': + print code_info + "Good bye!" + sys.exit() + else: + return -1 def scanNumber(number): print code_title + "[!] ---- Fetching informations for %s ---- [!]" % formatNumber(number) @@ -231,8 +320,8 @@ def scanNumber(number): sys.exit() numverifyScan(PhoneNumber['full']) - ovhScan(PhoneNumber['countryCode'], PhoneNumber['number']) # TODO: replace 1st parameter to be dynamic - osintScan(PhoneNumber['countryCode'], PhoneNumber['full']) + ovhScan(PhoneNumber['country'], PhoneNumber['number']) + osintScan(PhoneNumber['countryCode'], PhoneNumber['full'], PhoneNumber['international']) print '\n' @@ -249,6 +338,7 @@ if args.output: code_title = '' sys.stdout = args.output + banner() else: code_info = '\033[97m[*] ' code_warning = '\033[93m(!) ' From 9dc719804fee99b106622edc4ef7c988dcdfb748 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 21 Nov 2018 16:53:41 +0100 Subject: [PATCH 49/72] Parse country code for OVH scanner --- phoneinfoga.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index 1ccbaa7..e552350 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -91,8 +91,11 @@ def localScan(number): return False PhoneNumber['full'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace('+', '') - PhoneNumber['country'] = 'FR' PhoneNumber['countryCode'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] + + countryRequest = json.loads(requests.request('GET', 'https://restcountries.eu/rest/v2/callingcode/%s' % PhoneNumber['countryCode'].replace('+', '')).content) + PhoneNumber['country'] = countryRequest[0]['alpha2Code'] + PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') PhoneNumber['international'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) From be14c51803b057ad453cacf4a8ed5c067b4564da Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 25 Nov 2018 16:23:25 +0100 Subject: [PATCH 50/72] Update todo.md --- todo.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/todo.md b/todo.md index 2f20810..085a378 100644 --- a/todo.md +++ b/todo.md @@ -1,11 +1,10 @@ # Todo list -- Input feature: Done -- Output feature: Done -- OVH scanner - - Search for number range +- **Input feature: Done** +- **Output feature: Done** +- **OVH scanner (search for number range): Done** - Update feature -- Offline scan: Done +- **Offline scan: Done** - OSINT recon - Search for social profiles (facebook, twitter, linkedin, instagram) - Search for documents From d7cc63a025669ddb41e186abe491961fb6692ba6 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 25 Nov 2018 21:19:58 +0100 Subject: [PATCH 51/72] Keyboard interrupt exception --- phoneinfoga.py | 83 ++++++++++++++++++++++++++------------------------ 1 file changed, 44 insertions(+), 39 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index e552350..42ce2d2 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -15,7 +15,6 @@ def banner(): print "\n \033[92m" banner() -print "\033[94m" import sys import argparse @@ -53,12 +52,11 @@ if args.update: print 'update' sys.exit() -import time -import hashlib -import json -import re - try: + import time + import hashlib + import json + import re import requests from bs4 import BeautifulSoup import html5lib @@ -67,8 +65,12 @@ try: from phonenumbers import geocoder from phonenumbers import timezone from googlesearch import search +except KeyboardInterrupt: + print '\033[91m[!] Exiting.' + sys.exit() except: - print code_error + 'Missing requirements. Try running pip install -r requirements.txt' + print '\033[91m[!] Missing requirements. Try running pip install -r requirements.txt' + sys.exit() scanners = ['any', 'all', 'numverify', 'ovh'] @@ -95,7 +97,7 @@ def localScan(number): countryRequest = json.loads(requests.request('GET', 'https://restcountries.eu/rest/v2/callingcode/%s' % PhoneNumber['countryCode'].replace('+', '')).content) PhoneNumber['country'] = countryRequest[0]['alpha2Code'] - + PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') PhoneNumber['international'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) @@ -205,7 +207,6 @@ def osintScan(countryCode, number, internationalNumber): if not args.osint: return -1 - print code_info + 'Running OSINT footprint reconnaissance...' # Whitepages @@ -305,9 +306,9 @@ def osintScan(countryCode, number, internationalNumber): def askForExit(): if not args.output: - user_input = raw_input(code_info + "Continue scanning ? (Y/n): ") + user_input = raw_input(code_info + "Continue scanning ? (Y/n) ") - if user_input.lower() == 'n': + if user_input.lower() == 'n' or user_input.lower() == 'no': print code_info + "Good bye!" sys.exit() else: @@ -328,32 +329,36 @@ def scanNumber(number): print '\n' -# Verify scanner option -if not args.scanner in scanners: - print(code_error + "Error: scanner doesn't exists.") +try: + if args.output: + code_info = '[*] ' + code_warning = '(!) ' + code_result = '[+] ' + code_error = '[!] ' + code_title = '' + + sys.stdout = args.output + banner() + else: + code_info = '\033[97m[*] ' + code_warning = '\033[93m(!) ' + code_result = '\033[1;32m[+] ' + code_error = '\033[91m[!] ' + code_title = '\033[1m\033[93m' + + # Verify scanner option + if not args.scanner in scanners: + print(code_error + "Error: scanner doesn't exists.") + sys.exit() + + if args.number: + scanNumber(args.number) + elif args.input: + for line in args.input.readlines(): + scanNumber(line) + + if args.output: + args.output.close() +except KeyboardInterrupt: + print code_info + "Scan interrupted. Good bye!" sys.exit() - -if args.output: - code_info = '[*] ' - code_warning = '(!) ' - code_result = '[+] ' - code_error = '[!] ' - code_title = '' - - sys.stdout = args.output - banner() -else: - code_info = '\033[97m[*] ' - code_warning = '\033[93m(!) ' - code_result = '\033[1;32m[+] ' - code_error = '\033[91m[!] ' - code_title = '\033[1m\033[93m' - -if args.number: - scanNumber(args.number) -elif args.input: - for line in args.input.readlines(): - scanNumber(line) - -if args.output: - args.output.close() From ff3ae39e14d17833e3af311ff6a58ca69ed14972 Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 27 Nov 2018 11:27:31 +0100 Subject: [PATCH 52/72] [Docs] open data sources --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bf9ff5f..6922ac6 100644 --- a/README.md +++ b/README.md @@ -139,6 +139,7 @@ Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - http://www.countryareacode.net/en/ - http://directory.didww.com/area-prefixes - http://hs3x.com/ +- http://www.numinfo.net/ ### Scanners From c5f4205e344dd67f6017891a85da19df6ae6c148 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 28 Nov 2018 16:01:58 +0100 Subject: [PATCH 53/72] Example google request file --- example_google.py | 62 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 example_google.py diff --git a/example_google.py b/example_google.py new file mode 100644 index 0000000..04224ed --- /dev/null +++ b/example_google.py @@ -0,0 +1,62 @@ +import requests,random + +uagent=[] +uagent.append("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14") +uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0") +uagent.append("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") +uagent.append("Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.7 (KHTML, like Gecko) Comodo_Dragon/16.1.1.0 Chrome/16.0.912.63 Safari/535.7") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1") +uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0") + +proxy=[] +proxy.append("118.97.125.150:8080") +proxy.append("212.23.250.46:80") +proxy.append("197.149.128.190:42868") +proxy.append("87.128.41.56:80",) +proxy.append("197.149.129.252:32486") +proxy.append("159.69.211.173:3128") +proxy.append("197.149.128.190:44655") +proxy.append("196.13.208.23:8080") +proxy.append("196.13.208.22:8080") +proxy.append("82.136.122.127:80") +proxy.append("178.60.28.98:9999") +proxy.append("41.60.1.102:80") +proxy.append("212.56.139.253:80") + +number = '49495363899' + +dorks=[] +dorks.append('site%3Anuminfo.net+intext%3A"luciusunegbu%40gmail.com"') +dorks.append('site%3A"hs3x.com"+intext%3A"%2B61437954897"') +dorks.append('site:facebook.com intext:"%s" | "%s"' % (number,number)) +dorks.append('site:twitter.com intext:"%s" | "%s"' % (number,number)) +dorks.append('site:linkedin.com intext:"%s" | "%s"' % (number,number)) +dorks.append('site:instagram.com intext:"%s" | "%s"' % (number,number)) +dorks.append('site:whosenumber.info intext:"%s" intitle:"who called"' % number) +dorks.append('site:"hs3x.com" intext:"+%s"' % number) +dorks.append('site:"receive-sms-now.com" intext:"+%s"' % number) +dorks.append('site:"receive-sms-online.com" intext:"+%s"' % number) + +for req in dorks: + chosenProxy = random.choice(proxy) + chosenUserAgent = random.choice(uagent) + + s = requests.Session() + proxies = {"http": chosenProxy} + headers = { + 'User-Agent': chosenUserAgent, + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', + 'Accept-Language': 'en-us,en;q=0.5', + 'Accept-Encoding': 'gzip,deflate', + 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', + 'Keep-Alive': '115', + 'Connection': 'keep-alive', + 'Cookie': 'Cookie: CGIC=Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg; CONSENT=YES+RE.fr+20150809-08-0; 1P_JAR=2018-11-28-14; NID=148=aSdSHJz71rufCokaUC93nH3H7lOb8E7BNezDWV-PyyiHTXqWK5Y5hsvj7IAzhZAK04-QNTXjYoLXVu_eiAJkiE46DlNn6JjjgCtY-7Fr0I4JaH-PZRb7WFgSTjiFqh0fw2cCWyN69DeP92dzMd572tQW2Z1gPwno3xuPrYC1T64wOud1DjZDhVAZkpk6UkBrU0PBcnLWL7YdL6IbEaCQlAI9BwaxoH_eywPVyS9V; SID=uAYeu3gT23GCz-ktdGInQuOSf-5SSzl3Plw11-CwsEYY0mqJLSiv7tFKeRpB_5iz8SH5lg.; HSID=AZmH_ctAfs0XbWOCJ; SSID=A0PcRJSylWIxJYTq_; APISID=HHB2bKfJ-2ZUL5-R/Ac0GK3qtM8EHkloNw; SAPISID=wQoxetHBpyo4pJKE/A2P6DUM9zGnStpIVt; SIDCC=ABtHo-EhFAa2AJrJIUgRGtRooWyVK0bAwiQ4UgDmKamfe88xOYBXM47FoL5oZaTxR3H-eOp7-rE; OTZ=4671861_52_52_123900_48_436380; OGPC=873035776-8:; OGP=-873035776:; GOOGLE_ABUSE_EXEMPTION=ID=5f05257564a6b82d:TM=1543414930:C=r:IP=165.227.163.116-:S=APGng0vsERIFITaqUYe9u-Uu9E6iJxUx-g' + } + + r = s.get('https://www.google.com/search?q=%s&gws_rd=ssl' % req, headers=headers, proxies=proxies) + #print(r.text) + + print "%s\nRequested %s using Proxy %s\nUser-Agent: %s" % (r, req, chosenProxy, chosenUserAgent) From 8d1c269b2c01d73080c4d5e57131051e399e8adb Mon Sep 17 00:00:00 2001 From: sundowndev Date: Wed, 28 Nov 2018 16:02:34 +0100 Subject: [PATCH 54/72] Minor refactor --- phoneinfoga.py | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index e552350..7203cfa 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -95,7 +95,7 @@ def localScan(number): countryRequest = json.loads(requests.request('GET', 'https://restcountries.eu/rest/v2/callingcode/%s' % PhoneNumber['countryCode'].replace('+', '')).content) PhoneNumber['country'] = countryRequest[0]['alpha2Code'] - + PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') PhoneNumber['international'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) @@ -205,7 +205,6 @@ def osintScan(countryCode, number, internationalNumber): if not args.osint: return -1 - print code_info + 'Running OSINT footprint reconnaissance...' # Whitepages @@ -229,16 +228,19 @@ def osintScan(countryCode, number, internationalNumber): if result: print(code_result + "Result found: " + result) + print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." + time.sleep(10) + print(code_info + "Searching for footprints on instagram.com... (limit=5)") for result in search('site:instagram.com intext:"%s" | "%s"' % (number,number), stop=5): if result: print(code_result + "Result found: " + result) - print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." - time.sleep(10) - # Websites - # + print(code_info + "Searching for footprints on web pages... (limit=5)") + for result in search('%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) # Documents print(code_info + "Searching for documents... (limit=5)") @@ -249,14 +251,6 @@ def osintScan(countryCode, number, internationalNumber): print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." time.sleep(10) - print(code_info + "Searching for documents on washington.edu... (limit=5)") - UWReq = search('site:washington.edu intext:"%s" | "%s"' % (number,number), stop=5) - if len(list(UWReq)) > 0: - print code_info + 'Found %s results' % len(list(UWReq)) - for result in UWReq: - if result: - print(code_result + "Result found: " + result) - # Reputation print(code_info + "Searching for reputation report on whosenumber.info... (limit=1)") for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): @@ -279,6 +273,9 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "URL: " + result) askForExit() + print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." + time.sleep(10) + print(code_info + "Searching for results on receive-sms-now.com... (limit=1)") for result in search('site:"receive-sms-now.com" intext:"+%s"' % number, stop=1): if result: @@ -326,6 +323,8 @@ def scanNumber(number): ovhScan(PhoneNumber['country'], PhoneNumber['number']) osintScan(PhoneNumber['countryCode'], PhoneNumber['full'], PhoneNumber['international']) + print code_info + "Scan finished." + print '\n' # Verify scanner option From 5105f1772d2a430ceec33a87d38d3deef93a389e Mon Sep 17 00:00:00 2001 From: sundowndev Date: Thu, 29 Nov 2018 00:22:56 +0100 Subject: [PATCH 55/72] Google search function & OSINT scan --- example_google.py | 62 ------------ phoneinfoga.py | 247 +++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 233 insertions(+), 76 deletions(-) delete mode 100644 example_google.py diff --git a/example_google.py b/example_google.py deleted file mode 100644 index 04224ed..0000000 --- a/example_google.py +++ /dev/null @@ -1,62 +0,0 @@ -import requests,random - -uagent=[] -uagent.append("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14") -uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0") -uagent.append("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3") -uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") -uagent.append("Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.7 (KHTML, like Gecko) Comodo_Dragon/16.1.1.0 Chrome/16.0.912.63 Safari/535.7") -uagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") -uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1") -uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0") - -proxy=[] -proxy.append("118.97.125.150:8080") -proxy.append("212.23.250.46:80") -proxy.append("197.149.128.190:42868") -proxy.append("87.128.41.56:80",) -proxy.append("197.149.129.252:32486") -proxy.append("159.69.211.173:3128") -proxy.append("197.149.128.190:44655") -proxy.append("196.13.208.23:8080") -proxy.append("196.13.208.22:8080") -proxy.append("82.136.122.127:80") -proxy.append("178.60.28.98:9999") -proxy.append("41.60.1.102:80") -proxy.append("212.56.139.253:80") - -number = '49495363899' - -dorks=[] -dorks.append('site%3Anuminfo.net+intext%3A"luciusunegbu%40gmail.com"') -dorks.append('site%3A"hs3x.com"+intext%3A"%2B61437954897"') -dorks.append('site:facebook.com intext:"%s" | "%s"' % (number,number)) -dorks.append('site:twitter.com intext:"%s" | "%s"' % (number,number)) -dorks.append('site:linkedin.com intext:"%s" | "%s"' % (number,number)) -dorks.append('site:instagram.com intext:"%s" | "%s"' % (number,number)) -dorks.append('site:whosenumber.info intext:"%s" intitle:"who called"' % number) -dorks.append('site:"hs3x.com" intext:"+%s"' % number) -dorks.append('site:"receive-sms-now.com" intext:"+%s"' % number) -dorks.append('site:"receive-sms-online.com" intext:"+%s"' % number) - -for req in dorks: - chosenProxy = random.choice(proxy) - chosenUserAgent = random.choice(uagent) - - s = requests.Session() - proxies = {"http": chosenProxy} - headers = { - 'User-Agent': chosenUserAgent, - 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', - 'Accept-Language': 'en-us,en;q=0.5', - 'Accept-Encoding': 'gzip,deflate', - 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', - 'Keep-Alive': '115', - 'Connection': 'keep-alive', - 'Cookie': 'Cookie: CGIC=Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg; CONSENT=YES+RE.fr+20150809-08-0; 1P_JAR=2018-11-28-14; NID=148=aSdSHJz71rufCokaUC93nH3H7lOb8E7BNezDWV-PyyiHTXqWK5Y5hsvj7IAzhZAK04-QNTXjYoLXVu_eiAJkiE46DlNn6JjjgCtY-7Fr0I4JaH-PZRb7WFgSTjiFqh0fw2cCWyN69DeP92dzMd572tQW2Z1gPwno3xuPrYC1T64wOud1DjZDhVAZkpk6UkBrU0PBcnLWL7YdL6IbEaCQlAI9BwaxoH_eywPVyS9V; SID=uAYeu3gT23GCz-ktdGInQuOSf-5SSzl3Plw11-CwsEYY0mqJLSiv7tFKeRpB_5iz8SH5lg.; HSID=AZmH_ctAfs0XbWOCJ; SSID=A0PcRJSylWIxJYTq_; APISID=HHB2bKfJ-2ZUL5-R/Ac0GK3qtM8EHkloNw; SAPISID=wQoxetHBpyo4pJKE/A2P6DUM9zGnStpIVt; SIDCC=ABtHo-EhFAa2AJrJIUgRGtRooWyVK0bAwiQ4UgDmKamfe88xOYBXM47FoL5oZaTxR3H-eOp7-rE; OTZ=4671861_52_52_123900_48_436380; OGPC=873035776-8:; OGP=-873035776:; GOOGLE_ABUSE_EXEMPTION=ID=5f05257564a6b82d:TM=1543414930:C=r:IP=165.227.163.116-:S=APGng0vsERIFITaqUYe9u-Uu9E6iJxUx-g' - } - - r = s.get('https://www.google.com/search?q=%s&gws_rd=ssl' % req, headers=headers, proxies=proxies) - #print(r.text) - - print "%s\nRequested %s using Proxy %s\nUser-Agent: %s" % (r, req, chosenProxy, chosenUserAgent) diff --git a/phoneinfoga.py b/phoneinfoga.py index 78fcaac..f4e9e97 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -18,6 +18,7 @@ banner() import sys import argparse +import random parser = argparse.ArgumentParser(description= "Advanced information gathering tool for phone numbers (https://github.com/sundowndev/PhoneInfoga) version %s" % __version__, @@ -64,7 +65,7 @@ try: from phonenumbers import carrier from phonenumbers import geocoder from phonenumbers import timezone - from googlesearch import search + #from googlesearch import search except KeyboardInterrupt: print '\033[91m[!] Exiting.' sys.exit() @@ -74,6 +75,84 @@ except: scanners = ['any', 'all', 'numverify', 'ovh'] +uagent=[] +uagent.append("Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0) Opera 12.14") +uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0") +uagent.append("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090913 Firefox/3.5.3") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") +uagent.append("Mozilla/5.0 (Windows NT 6.2) AppleWebKit/535.7 (KHTML, like Gecko) Comodo_Dragon/16.1.1.0 Chrome/16.0.912.63 Safari/535.7") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)") +uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1") +uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0") + +proxy=[] +proxy.append("118.97.125.150:8080") +proxy.append("212.23.250.46:80") +proxy.append("197.149.128.190:42868") +proxy.append("87.128.41.56:80",) +proxy.append("197.149.129.252:32486") +proxy.append("159.69.211.173:3128") +proxy.append("197.149.128.190:44655") +proxy.append("196.13.208.23:8080") +proxy.append("196.13.208.22:8080") +proxy.append("82.136.122.127:80") +proxy.append("178.60.28.98:9999") +proxy.append("41.60.1.102:80") +proxy.append("212.56.139.253:80") + +GoogleAbuseToken = '' + +def search(req, stop): + global GoogleAbuseToken + global uagent + global proxy + + chosenProxy = random.choice(proxy) + chosenUserAgent = random.choice(uagent) + + s = requests.Session() + proxies = {"http": chosenProxy} + headers = { + 'User-Agent': chosenUserAgent, + 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', + 'Accept-Language': 'en-us,en;q=0.5', + 'Accept-Encoding': 'gzip,deflate', + 'Accept-Charset': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', + 'Keep-Alive': '115', + 'Connection': 'keep-alive', + 'Cookie': 'Cookie: CGIC=Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg; CONSENT=YES+RE.fr+20150809-08-0; 1P_JAR=2018-11-28-14; NID=148=aSdSHJz71rufCokaUC93nH3H7lOb8E7BNezDWV-PyyiHTXqWK5Y5hsvj7IAzhZAK04-QNTXjYoLXVu_eiAJkiE46DlNn6JjjgCtY-7Fr0I4JaH-PZRb7WFgSTjiFqh0fw2cCWyN69DeP92dzMd572tQW2Z1gPwno3xuPrYC1T64wOud1DjZDhVAZkpk6UkBrU0PBcnLWL7YdL6IbEaCQlAI9BwaxoH_eywPVyS9V; SID=uAYeu3gT23GCz-ktdGInQuOSf-5SSzl3Plw11-CwsEYY0mqJLSiv7tFKeRpB_5iz8SH5lg.; HSID=AZmH_ctAfs0XbWOCJ; SSID=A0PcRJSylWIxJYTq_; APISID=HHB2bKfJ-2ZUL5-R/Ac0GK3qtM8EHkloNw; SAPISID=wQoxetHBpyo4pJKE/A2P6DUM9zGnStpIVt; SIDCC=ABtHo-EhFAa2AJrJIUgRGtRooWyVK0bAwiQ4UgDmKamfe88xOYBXM47FoL5oZaTxR3H-eOp7-rE; OTZ=4671861_52_52_123900_48_436380; OGPC=873035776-8:; OGP=-873035776:;' + } + + if True: + URL = 'https://www.google.com/search?tbs=li:1&q=%s&gws_rd=ssl' % (req) + r = s.get(URL + GoogleAbuseToken, headers=headers, proxies=proxies) + + while r.status_code == 503: + print code_warning + 'You are temporary blacklisted from Google search. Complete the captcha at the following URL and copy/paste the content of GOOGLE_ABUSE_EXEMPTION cookie : %s' % URL + print '\n' + code_info + 'Need help ? Read the doc at https://github.com/sundowndev/PhoneInfoga' + token = raw_input('\nGOOGLE_ABUSE_EXEMPTION=') + GoogleAbuseToken = '&google_abuse=' + token + r = s.get(URL + GoogleAbuseToken, headers=headers, proxies=proxies) + + soup = BeautifulSoup(r.content, 'html.parser') + results = soup.find("div", id="search").find_all("div", class_="g") + + links=[] + counter=0 + + for result in results: + counter += 1 + + if int(counter) > int(stop): + break + + url = result.find("cite").string + links.append(url) + + return links + #except: + #print code_error + 'Failed search.' + def formatNumber(number): return re.sub("(?:\+)?(?:[^[0-9]*)", "", number) @@ -213,8 +292,9 @@ def osintScan(countryCode, number, internationalNumber): print(code_info + "Generating scan URL on 411.com...") print code_result + "Scan URL: https://www.411.com/phone/%s" % internationalNumber.replace('+', '').replace(' ', '-') - try: + if True: # Social profiles: facebook, twitter, linkedin, instagram + print(code_info + '[Social media footprints]') print(code_info + "Searching for footprints on facebook.com... (limit=5)") for result in search('site:facebook.com intext:"%s" | "%s"' % (number,number), stop=5): if result: @@ -230,15 +310,13 @@ def osintScan(countryCode, number, internationalNumber): if result: print(code_result + "Result found: " + result) - print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." - time.sleep(10) - print(code_info + "Searching for footprints on instagram.com... (limit=5)") for result in search('site:instagram.com intext:"%s" | "%s"' % (number,number), stop=5): if result: print(code_result + "Result found: " + result) # Websites + print(code_info + '[Web pages footprints]') print(code_info + "Searching for footprints on web pages... (limit=5)") for result in search('%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber), stop=5): if result: @@ -250,9 +328,6 @@ def osintScan(countryCode, number, internationalNumber): if result: print(code_result + "Result found: " + result) - print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." - time.sleep(10) - # Reputation print(code_info + "Searching for reputation report on whosenumber.info... (limit=1)") for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): @@ -267,7 +342,14 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "Result found: " + result) print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") + print(code_info + "Generating URL on scamcallfighters.com...") + print code_result + 'http://www.scamcallfighters.com/search-phone-%s.html' % number + + #print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." + #time.sleep(10) + # Temporary number providers + print(code_info + '[Temporary number providers footprints]') print(code_info + "Searching for results on hs3x.com... (limit=1)") for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=1): if result: @@ -275,9 +357,6 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "URL: " + result) askForExit() - print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." - time.sleep(10) - print(code_info + "Searching for results on receive-sms-now.com... (limit=1)") for result in search('site:"receive-sms-now.com" intext:"+%s"' % number, stop=1): if result: @@ -285,14 +364,154 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "URL: " + result) askForExit() + print(code_info + "Searching for results on smslisten.com... (limit=1)") + for result in search('site:"smslisten.com" intext:"%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: smslisten.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on smsnumbersonline.com... (limit=1)") + for result in search('site:"smsnumbersonline.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: smsnumbersonline.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on freesmscode.com... (limit=1)") + for result in search('site:"freesmscode.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: freesmscode.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on catchsms.com... (limit=1)") + for result in search('site:"catchsms.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: catchsms.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on smstibo.com... (limit=1)") + for result in search('site:"smstibo.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: smstibo.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on smsreceiving.com... (limit=1)") + for result in search('site:"smsreceiving.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: smsreceiving.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on getfreesmsnumber.com... (limit=1)") + for result in search('site:"getfreesmsnumber.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: getfreesmsnumber.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on sellaite.com... (limit=1)") + for result in search('site:"sellaite.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: sellaite.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-sms-online.info... (limit=1)") + for result in search('site:"receive-sms-online.info" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-sms-online.info") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receivesmsonline.com... (limit=1)") + for result in search('site:"receivesmsonline.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receivesmsonline.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-a-sms.com... (limit=1)") + for result in search('site:"receive-a-sms.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-a-sms.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on sms-receive.net... (limit=1)") + for result in search('site:"sms-receive.net" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: sms-receive.net") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receivefreesms.com... (limit=1)") + for result in search('site:"receivefreesms.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receivefreesms.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on freeonlinephone.org... (limit=1)") + for result in search('site:"freeonlinephone.org" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: freeonlinephone.org") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-sms.com... (limit=1)") + for result in search('site:"receive-sms.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-sms.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receivetxt.com... (limit=1)") + for result in search('site:"receivetxt.com" %s' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receivetxt.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receive-smss.com... (limit=1)") + for result in search('site:"receive-smss.com" intext:"+%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receive-smss.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on freephonenum.com... (limit=1)") + for result in search('site:"freephonenum.com" intext:"%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: freephonenum.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on receivefreesms.com... (limit=1)") + for result in search('site:"receivefreesms.com" intext:"%s"' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: receivefreesms.com") + print(code_result + "URL: " + result) + askForExit() + + print(code_info + "Searching for results on freesmsverification.com... (limit=1)") + for result in search('site:"freesmsverification.com" %s' % number, stop=1): + if result: + print(code_result + "Found a temporary number provider: freesmsverification.com") + print(code_result + "URL: " + result) + askForExit() + print(code_info + "Searching for results on receive-sms-online.com... (limit=1)") - for result in search('site:"receive-sms-online.com" intext:"+%s"' % number, stop=1): + for result in search('site:"receive-sms-online.com" intext:"%s"' % number, stop=1): if result: print(code_result + "Found a temporary number provider: receive-sms-online.com") print(code_result + "URL: " + result) askForExit() - except: - print code_error + 'Impossible to fetch Google search API. This usually mean you\'re temporary blacklisted.' + #except: + #print code_error + 'Impossible to fetch Google search API. This usually mean you\'re temporary blacklisted.' print(code_info + "Searching for phone number on tempophone.com...") response = requests.request("GET", "https://tempophone.com/api/v1/phones") From 55db8b7b6a28f4df91ac12682f5a4c3688e4359f Mon Sep 17 00:00:00 2001 From: Raphael Date: Thu, 29 Nov 2018 12:24:54 +0100 Subject: [PATCH 56/72] Rename test.txt to list.txt --- tests/{test.txt => list.txt} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename tests/{test.txt => list.txt} (100%) diff --git a/tests/test.txt b/tests/list.txt similarity index 100% rename from tests/test.txt rename to tests/list.txt From 28186896b8db2fc18ca85afd5699a8059897aa16 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Fri, 30 Nov 2018 15:34:53 +0100 Subject: [PATCH 57/72] OSINT passive recon requests --- osint/disposable_num_providers.json | 107 ++++++++++++++++++++++++++++ osint/individuals.json | 14 ++++ osint/reputation.json | 7 ++ osint/social_medias.json | 14 ++++ tests/list.txt | 2 +- 5 files changed, 143 insertions(+), 1 deletion(-) create mode 100644 osint/disposable_num_providers.json create mode 100644 osint/individuals.json create mode 100644 osint/reputation.json create mode 100644 osint/social_medias.json diff --git a/osint/disposable_num_providers.json b/osint/disposable_num_providers.json new file mode 100644 index 0000000..adb5bf9 --- /dev/null +++ b/osint/disposable_num_providers.json @@ -0,0 +1,107 @@ +[ + { + "site": "hs3x.com", + "request": "site:\"hs3x.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receive-sms-now.com", + "request": "site:\"receive-sms-now.com\" intext:\"$n\"", + "stop": 1 + }, + { + "site": "smslisten.com", + "request": "site:\"smslisten.com\" intext:\"$n\"", + "stop": 1 + }, + { + "site": "smsnumbersonline.com", + "request": "site:\"smsnumbersonline.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "freesmscode.com", + "request": "site:\"freesmscode.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "catchsms.com", + "request": "site:\"catchsms.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "smstibo.com", + "request": "site:\"smstibo.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "smsreceiving.com", + "request": "site:\"smsreceiving.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "getfreesmsnumber.com", + "request": "site:\"getfreesmsnumber.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "sellaite.com", + "request": "site:\"sellaite.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receive-sms-online.info", + "request": "site:\"receive-sms-online.info\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receivesmsonline.com", + "request": "site:\"receivesmsonline.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receive-a-sms.com", + "request": "site:\"receive-a-sms.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "sms-receive.net", + "request": "site:\"sms-receive.net\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receivefreesms.com", + "request": "site:\"receivefreesms.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receive-sms.com", + "request": "site:\"receive-sms.com\" intext:\"+$n\"", + "stop": 1 + }, + { + "site": "receivetxt.com", + "request": "site:\"receivetxt.com\" $n", + "stop": 1 + }, + { + "site": "freephonenum.com", + "request": "site:\"freephonenum.com\" intext:\"$n\"", + "stop": 1 + }, + { + "site": "receivefreesms.com", + "request": "site:\"receivefreesms.com\" intext:\"$n\"", + "stop": 1 + }, + { + "site": "freesmsverification.com", + "request": "site:\"freesmsverification.com\" $n", + "stop": 1 + }, + { + "site": "receive-sms-online.com", + "request": "site:\"receive-sms-online.com\" intext:\"$n\"", + "stop": 1 + } +] diff --git a/osint/individuals.json b/osint/individuals.json new file mode 100644 index 0000000..315d3a1 --- /dev/null +++ b/osint/individuals.json @@ -0,0 +1,14 @@ +[ + { + "site": "facebook.com", + "request": "site:\"facebook.com\" intext:\"$n\" | $n", + "dialCode": null, + "stop": 5 + }, + { + "site": "twitter.com", + "request": "site:\"twitter.com\" intext:\"$n\" | $n", + "dialCode": null, + "stop": 5 + } +] diff --git a/osint/reputation.json b/osint/reputation.json new file mode 100644 index 0000000..778f528 --- /dev/null +++ b/osint/reputation.json @@ -0,0 +1,7 @@ +[ + { + "site": "whosenumber.info", + "request": "site:\"whosenumber.info\" intext:\"$n\" intitle:\"who called\"", + "stop": 1, + } +] diff --git a/osint/social_medias.json b/osint/social_medias.json new file mode 100644 index 0000000..315d3a1 --- /dev/null +++ b/osint/social_medias.json @@ -0,0 +1,14 @@ +[ + { + "site": "facebook.com", + "request": "site:\"facebook.com\" intext:\"$n\" | $n", + "dialCode": null, + "stop": 5 + }, + { + "site": "twitter.com", + "request": "site:\"twitter.com\" intext:\"$n\" | $n", + "dialCode": null, + "stop": 5 + } +] diff --git a/tests/list.txt b/tests/list.txt index 794367b..cc802f8 100644 --- a/tests/list.txt +++ b/tests/list.txt @@ -1,6 +1,6 @@ +856 20 99 453 217 +59172768361 -+33679368233 ++32474123456 +1 (541) 754-3010 +86 591 2284 8571 +7 496 4819375 From f493009dcec243ef58db9d3a0326c3e1683a7f61 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Fri, 30 Nov 2018 15:35:06 +0100 Subject: [PATCH 58/72] Delete data folder --- data/area_codes.json | 1647 ------------------------------- data/carrier_codes.json | 2027 --------------------------------------- data/country_codes.json | 1212 ----------------------- 3 files changed, 4886 deletions(-) delete mode 100644 data/area_codes.json delete mode 100644 data/carrier_codes.json delete mode 100644 data/country_codes.json diff --git a/data/area_codes.json b/data/area_codes.json deleted file mode 100644 index fb300c5..0000000 --- a/data/area_codes.json +++ /dev/null @@ -1,1647 +0,0 @@ -[ - { - "CountryCode": "FR", - "AreaCodes": [ - { - "area": "Bordeaux", - "code": "5" - }, - { - "area": "Boulogne", - "code": "3" - }, - { - "area": "Brest", - "code": "2" - }, - { - "area": "Calais", - "code": "3" - }, - { - "area": "Cannes", - "code": "4" - }, - { - "area": "Corsica", - "code": "495" - }, - { - "area": "Dijon", - "code": "3" - }, - { - "area": "Grenoble", - "code": "4" - }, - { - "area": "Cherbourg", - "code": "2" - }, - { - "area": "Le Havre", - "code": "2" - }, - { - "area": "Lille", - "code": "3" - }, - { - "area": "Limoges", - "code": "5" - }, - { - "area": "Lourdes", - "code": "5" - }, - { - "area": "Lyon", - "code": "4" - }, - { - "area": "Marseille", - "code": "4" - }, - { - "area": "Nancy", - "code": "3" - }, - { - "area": "Nantes", - "code": "2" - }, - { - "area": "Nice", - "code": "4" - }, - { - "area": "Orleans", - "code": "2" - }, - { - "area": "Paris", - "code": "1" - }, - { - "area": "Reims", - "code": "3" - }, - { - "area": "Rouen", - "code": "2" - }, - { - "area": "St. Etienne", - "code": "4" - }, - { - "area": "Strasbourg", - "code": "3" - }, - { - "area": "Toulon", - "code": "4" - }, - { - "area": "Toulouse", - "code": "5" - }, - { - "area": "Troyes", - "code": "3" - }, - { - "area": "Valence", - "code": "4" - } - ] - }, - { - "CountryCode": "CN", - "AreaCodes": [ - { - "area": "Anshan", - "code": "412" - }, - { - "area": "Beijing", - "code": "10" - }, - { - "area": "Dalian", - "code": "411" - }, - { - "area": "Guangzhou", - "code": "20" - }, - { - "area": "Hangzhou", - "code": "571" - }, - { - "area": "Harbin", - "code": "451" - }, - { - "area": "Huaian", - "code": "517" - }, - { - "area": "Huaibei", - "code": "561" - }, - { - "area": "Changchun", - "code": "431" - }, - { - "area": "Chengdu", - "code": "28" - }, - { - "area": "Chongqing", - "code": "23" - }, - { - "area": "Jilin", - "code": "432" - }, - { - "area": "Jinan", - "code": "531" - }, - { - "area": "Nanjing", - "code": "25" - }, - { - "area": "Ningbo", - "code": "574" - }, - { - "area": "Qingdao", - "code": "532" - }, - { - "area": "Shanghai", - "code": "21" - }, - { - "area": "Shenyang", - "code": "24" - }, - { - "area": "Suizhou", - "code": "722" - }, - { - "area": "Tianjin", - "code": "22" - }, - { - "area": "Weifang", - "code": "536" - }, - { - "area": "Wuhan", - "code": "27" - }, - { - "area": "Wuxi", - "code": "510" - }, - { - "area": "Xiangfan", - "code": "710" - }, - { - "area": "Yangzhou", - "code": "514" - }, - { - "area": "Yantai", - "code": "535" - }, - { - "area": "Zaozhuang", - "code": "632" - }, - { - "area": "Zibo", - "code": "533" - } - ] - }, - { - "CountryCode": "DE", - "AreaCodes": [ - { - "area": "Aachen", - "code": "241" - }, - { - "area": "Augsburg", - "code": "821" - }, - { - "area": "Berlin", - "code": "30" - }, - { - "area": "Bielefeld", - "code": "521" - }, - { - "area": "Bochum", - "code": "234" - }, - { - "area": "Bonn", - "code": "228" - }, - { - "area": "Brandenburg", - "code": "3381" - }, - { - "area": "Bremen", - "code": "421" - }, - { - "area": "Dortmund", - "code": "231" - }, - { - "area": "Dresden", - "code": "351" - }, - { - "area": "Duisburg", - "code": "203" - }, - { - "area": "Dusseldorf", - "code": "211" - }, - { - "area": "Essen", - "code": "201" - }, - { - "area": "Frankfurt", - "code": "69" - }, - { - "area": "Gelsenkirchen", - "code": "209" - }, - { - "area": "Hamburg", - "code": "40" - }, - { - "area": "Hannover", - "code": "511" - }, - { - "area": "Chemnitz", - "code": "371" - }, - { - "area": "Karlsruhe", - "code": "721" - }, - { - "area": "Koln", - "code": "221" - }, - { - "area": "Krefeld", - "code": "2151" - }, - { - "area": "Leipzig", - "code": "341" - }, - { - "area": "Mainz", - "code": "6131" - }, - { - "area": "Mannheim", - "code": "621" - }, - { - "area": "Munchen", - "code": "89" - }, - { - "area": "Munster", - "code": "6071" - }, - { - "area": "Nurnberg", - "code": "911" - }, - { - "area": "Stuttgart", - "code": "711" - }, - { - "area": "Wiesbaden", - "code": "611" - }, - { - "area": "Wuppertal", - "code": "202" - } - ] - }, - { - "CountryCode": "US", - "AreaCodes": [ - { - "code": "201", - "area": "New Jersey" - }, - { - "code": "202", - "area": "District of Columbia" - }, - { - "code": "203", - "area": "Connecticut" - }, - { - "code": "204", - "area": "Manitoba" - }, - { - "code": "205", - "area": "Alabama" - }, - { - "code": "206", - "area": "Washington" - }, - { - "code": "207", - "area": "Maine" - }, - { - "code": "208", - "area": "Idaho" - }, - { - "code": "209", - "area": "California" - }, - { - "code": "210", - "area": "Texas" - }, - { - "code": "212", - "area": "New York" - }, - { - "code": "213", - "area": "California" - }, - { - "code": "214", - "area": "Texas" - }, - { - "code": "215", - "area": "Pennsylvania" - }, - { - "code": "216", - "area": "Ohio" - }, - { - "code": "217", - "area": "Illinois" - }, - { - "code": "218", - "area": "Minnesota" - }, - { - "code": "219", - "area": "Indiana" - }, - { - "code": "224", - "area": "Illinois" - }, - { - "code": "225", - "area": "Louisiana" - }, - { - "code": "228", - "area": "Mississippi" - }, - { - "code": "229", - "area": "Georgia" - }, - { - "code": "231", - "area": "Michigan" - }, - { - "code": "234", - "area": "Ohio" - }, - { - "code": "239", - "area": "Florida" - }, - { - "code": "240", - "area": "Maryland" - }, - { - "code": "242", - "area": "Bahamas" - }, - { - "code": "246", - "area": "Barbados" - }, - { - "code": "248", - "area": "Michigan" - }, - { - "code": "250", - "area": "British Columbia" - }, - { - "code": "251", - "area": "Alabama" - }, - { - "code": "252", - "area": "North Carolina" - }, - { - "code": "253", - "area": "Washington" - }, - { - "code": "254", - "area": "Texas" - }, - { - "code": "256", - "area": "Alabama" - }, - { - "code": "260", - "area": "Indiana" - }, - { - "code": "262", - "area": "Wisconsin" - }, - { - "code": "264", - "area": "Anguilla" - }, - { - "code": "267", - "area": "Pennsylvania" - }, - { - "code": "268", - "area": "Antigua\/Barbuda" - }, - { - "code": "269", - "area": "Michigan" - }, - { - "code": "270", - "area": "Kentucky" - }, - { - "code": "276", - "area": "Virginia" - }, - { - "code": "281", - "area": "Texas" - }, - { - "code": "284", - "area": "British Virgin Islands" - }, - { - "code": "289", - "area": "Ontario" - }, - { - "code": "301", - "area": "Maryland" - }, - { - "code": "302", - "area": "Delaware" - }, - { - "code": "303", - "area": "Colorado" - }, - { - "code": "304", - "area": "West Virginia" - }, - { - "code": "305", - "area": "Florida" - }, - { - "code": "306", - "area": "Saskatchewan" - }, - { - "code": "307", - "area": "Wyoming" - }, - { - "code": "308", - "area": "Nebraska" - }, - { - "code": "309", - "area": "Illinois" - }, - { - "code": "310", - "area": "California" - }, - { - "code": "312", - "area": "Illinois" - }, - { - "code": "313", - "area": "Michigan" - }, - { - "code": "314", - "area": "Missouri" - }, - { - "code": "315", - "area": "New York" - }, - { - "code": "316", - "area": "Kansas" - }, - { - "code": "317", - "area": "Indiana" - }, - { - "code": "318", - "area": "Louisiana" - }, - { - "code": "319", - "area": "Iowa" - }, - { - "code": "320", - "area": "Minnesota" - }, - { - "code": "321", - "area": "Florida" - }, - { - "code": "323", - "area": "California" - }, - { - "code": "325", - "area": "Texas" - }, - { - "code": "330", - "area": "Ohio" - }, - { - "code": "334", - "area": "Alabama" - }, - { - "code": "336", - "area": "North Carolina" - }, - { - "code": "337", - "area": "Louisiana" - }, - { - "code": "339", - "area": "Massachusetts" - }, - { - "code": "340", - "area": "US Virgin Islands" - }, - { - "code": "345", - "area": "Cayman Islands" - }, - { - "code": "347", - "area": "New York" - }, - { - "code": "351", - "area": "Massachusetts" - }, - { - "code": "352", - "area": "Florida" - }, - { - "code": "360", - "area": "Washington" - }, - { - "code": "361", - "area": "Texas" - }, - { - "code": "386", - "area": "Florida" - }, - { - "code": "401", - "area": "Rhode Island" - }, - { - "code": "402", - "area": "Nebraska" - }, - { - "code": "403", - "area": "Alberta" - }, - { - "code": "404", - "area": "Georgia" - }, - { - "code": "405", - "area": "Oklahoma" - }, - { - "code": "406", - "area": "Montana" - }, - { - "code": "407", - "area": "Florida" - }, - { - "code": "408", - "area": "California" - }, - { - "code": "409", - "area": "Texas" - }, - { - "code": "410", - "area": "Maryland" - }, - { - "code": "412", - "area": "Pennsylvania" - }, - { - "code": "413", - "area": "Massachusetts" - }, - { - "code": "414", - "area": "Wisconsin" - }, - { - "code": "415", - "area": "California" - }, - { - "code": "416", - "area": "Ontario" - }, - { - "code": "417", - "area": "Missouri" - }, - { - "code": "418", - "area": "Quebec" - }, - { - "code": "419", - "area": "Ohio" - }, - { - "code": "423", - "area": "Tennessee" - }, - { - "code": "425", - "area": "Washington" - }, - { - "code": "430", - "area": "Texas" - }, - { - "code": "432", - "area": "Texas" - }, - { - "code": "434", - "area": "Virginia" - }, - { - "code": "435", - "area": "Utah" - }, - { - "code": "440", - "area": "Ohio" - }, - { - "code": "441", - "area": "Bermuda" - }, - { - "code": "443", - "area": "Maryland" - }, - { - "code": "450", - "area": "Quebec" - }, - { - "code": "456", - "area": "NANP area" - }, - { - "code": "469", - "area": "Texas" - }, - { - "code": "473", - "area": "Grenada" - }, - { - "code": "478", - "area": "Georgia" - }, - { - "code": "479", - "area": "Arkansas" - }, - { - "code": "480", - "area": "Arizona" - }, - { - "code": "484", - "area": "Pennsylvania" - }, - { - "code": "501", - "area": "Arkansas" - }, - { - "code": "502", - "area": "Kentucky" - }, - { - "code": "503", - "area": "Oregon" - }, - { - "code": "504", - "area": "Louisiana" - }, - { - "code": "505", - "area": "New Mexico" - }, - { - "code": "506", - "area": "New Brunswick" - }, - { - "code": "507", - "area": "Minnesota" - }, - { - "code": "508", - "area": "Massachusetts" - }, - { - "code": "509", - "area": "Washington" - }, - { - "code": "510", - "area": "California" - }, - { - "code": "512", - "area": "Texas" - }, - { - "code": "513", - "area": "Ohio" - }, - { - "code": "514", - "area": "Quebec" - }, - { - "code": "515", - "area": "Iowa" - }, - { - "code": "516", - "area": "New York" - }, - { - "code": "517", - "area": "Michigan" - }, - { - "code": "518", - "area": "New York" - }, - { - "code": "519", - "area": "Ontario" - }, - { - "code": "520", - "area": "Arizona" - }, - { - "code": "530", - "area": "California" - }, - { - "code": "540", - "area": "Virginia" - }, - { - "code": "541", - "area": "Oregon" - }, - { - "code": "551", - "area": "New Jersey" - }, - { - "code": "559", - "area": "California" - }, - { - "code": "561", - "area": "Florida" - }, - { - "code": "562", - "area": "California" - }, - { - "code": "563", - "area": "Iowa" - }, - { - "code": "567", - "area": "Ohio" - }, - { - "code": "570", - "area": "Pennsylvania" - }, - { - "code": "571", - "area": "Virginia" - }, - { - "code": "573", - "area": "Missouri" - }, - { - "code": "574", - "area": "Indiana" - }, - { - "code": "580", - "area": "Oklahoma" - }, - { - "code": "585", - "area": "New York" - }, - { - "code": "586", - "area": "Michigan" - }, - { - "code": "601", - "area": "Mississippi" - }, - { - "code": "602", - "area": "Arizona" - }, - { - "code": "603", - "area": "New Hampshire" - }, - { - "code": "604", - "area": "British Columbia" - }, - { - "code": "605", - "area": "South Dakota" - }, - { - "code": "606", - "area": "Kentucky" - }, - { - "code": "607", - "area": "New York" - }, - { - "code": "608", - "area": "Wisconsin" - }, - { - "code": "609", - "area": "New Jersey" - }, - { - "code": "610", - "area": "Pennsylvania" - }, - { - "code": "612", - "area": "Minnesota" - }, - { - "code": "613", - "area": "Ontario" - }, - { - "code": "614", - "area": "Ohio" - }, - { - "code": "615", - "area": "Tennessee" - }, - { - "code": "616", - "area": "Michigan" - }, - { - "code": "617", - "area": "Massachusetts" - }, - { - "code": "618", - "area": "Illinois" - }, - { - "code": "619", - "area": "California" - }, - { - "code": "620", - "area": "Kansas" - }, - { - "code": "623", - "area": "Arizona" - }, - { - "code": "626", - "area": "California" - }, - { - "code": "630", - "area": "Illinois" - }, - { - "code": "631", - "area": "New York" - }, - { - "code": "636", - "area": "Missouri" - }, - { - "code": "641", - "area": "Iowa" - }, - { - "code": "646", - "area": "New York" - }, - { - "code": "647", - "area": "Ontario" - }, - { - "code": "649", - "area": "Turks & Caicos Islands" - }, - { - "code": "650", - "area": "California" - }, - { - "code": "651", - "area": "Minnesota" - }, - { - "code": "660", - "area": "Missouri" - }, - { - "code": "661", - "area": "California" - }, - { - "code": "662", - "area": "Mississippi" - }, - { - "code": "664", - "area": "Montserrat" - }, - { - "code": "670", - "area": "CNMI" - }, - { - "code": "671", - "area": "Guam" - }, - { - "code": "678", - "area": "Georgia" - }, - { - "code": "682", - "area": "Texas" - }, - { - "code": "701", - "area": "North Dakota" - }, - { - "code": "702", - "area": "Nevada" - }, - { - "code": "703", - "area": "Virginia" - }, - { - "code": "704", - "area": "North Carolina" - }, - { - "code": "705", - "area": "Ontario" - }, - { - "code": "706", - "area": "Georgia" - }, - { - "code": "707", - "area": "California" - }, - { - "code": "708", - "area": "Illinois" - }, - { - "code": "709", - "area": "Newfoundland" - }, - { - "code": "710", - "area": "US" - }, - { - "code": "712", - "area": "Iowa" - }, - { - "code": "713", - "area": "Texas" - }, - { - "code": "714", - "area": "California" - }, - { - "code": "715", - "area": "Wisconsin" - }, - { - "code": "716", - "area": "New York" - }, - { - "code": "717", - "area": "Pennsylvania" - }, - { - "code": "718", - "area": "New York" - }, - { - "code": "719", - "area": "Colorado" - }, - { - "code": "720", - "area": "Colorado" - }, - { - "code": "724", - "area": "Pennsylvania" - }, - { - "code": "727", - "area": "Florida" - }, - { - "code": "731", - "area": "Tennessee" - }, - { - "code": "732", - "area": "New Jersey" - }, - { - "code": "734", - "area": "Michigan" - }, - { - "code": "740", - "area": "Ohio" - }, - { - "code": "754", - "area": "Florida" - }, - { - "code": "757", - "area": "Virginia" - }, - { - "code": "758", - "area": "St. Lucia" - }, - { - "code": "760", - "area": "California" - }, - { - "code": "763", - "area": "Minnesota" - }, - { - "code": "765", - "area": "Indiana" - }, - { - "code": "767", - "area": "Dominica" - }, - { - "code": "770", - "area": "Georgia" - }, - { - "code": "772", - "area": "Florida" - }, - { - "code": "773", - "area": "Illinois" - }, - { - "code": "774", - "area": "Massachusetts" - }, - { - "code": "775", - "area": "Nevada" - }, - { - "code": "778", - "area": "British Columbia" - }, - { - "code": "780", - "area": "Alberta" - }, - { - "code": "781", - "area": "Massachusetts" - }, - { - "code": "784", - "area": "St. Vincent & Grenadines" - }, - { - "code": "785", - "area": "Kansas" - }, - { - "code": "786", - "area": "Florida" - }, - { - "code": "787", - "area": "Puerto Rico" - }, - { - "code": "801", - "area": "Utah" - }, - { - "code": "802", - "area": "Vermont" - }, - { - "code": "803", - "area": "South Carolina" - }, - { - "code": "804", - "area": "Virginia" - }, - { - "code": "805", - "area": "California" - }, - { - "code": "806", - "area": "Texas" - }, - { - "code": "807", - "area": "Ontario" - }, - { - "code": "808", - "area": "Hawaii" - }, - { - "code": "809", - "area": "Dominican Republic" - }, - { - "code": "810", - "area": "Michigan" - }, - { - "code": "812", - "area": "Indiana" - }, - { - "code": "813", - "area": "Florida" - }, - { - "code": "814", - "area": "Pennsylvania" - }, - { - "code": "815", - "area": "Illinois" - }, - { - "code": "816", - "area": "Missouri" - }, - { - "code": "817", - "area": "Texas" - }, - { - "code": "818", - "area": "California" - }, - { - "code": "819", - "area": "Quebec" - }, - { - "code": "828", - "area": "North Carolina" - }, - { - "code": "830", - "area": "Texas" - }, - { - "code": "831", - "area": "California" - }, - { - "code": "832", - "area": "Texas" - }, - { - "code": "843", - "area": "South Carolina" - }, - { - "code": "845", - "area": "New York" - }, - { - "code": "847", - "area": "Illinois" - }, - { - "code": "848", - "area": "New Jersey" - }, - { - "code": "850", - "area": "Florida" - }, - { - "code": "856", - "area": "New Jersey" - }, - { - "code": "857", - "area": "Massachusetts" - }, - { - "code": "858", - "area": "California" - }, - { - "code": "859", - "area": "Kentucky" - }, - { - "code": "860", - "area": "Connecticut" - }, - { - "code": "862", - "area": "New Jersey" - }, - { - "code": "863", - "area": "Florida" - }, - { - "code": "864", - "area": "South Carolina" - }, - { - "code": "865", - "area": "Tennessee" - }, - { - "code": "867", - "area": "Yukon, NW Terr., Nunavut" - }, - { - "code": "868", - "area": "Trinidad & Tobago" - }, - { - "code": "869", - "area": "St. Kitts & Nevis" - }, - { - "code": "870", - "area": "Arkansas" - }, - { - "code": "876", - "area": "Jamaica" - }, - { - "code": "878", - "area": "Pennsylvania" - }, - { - "code": "880", - "area": "NANP area" - }, - { - "code": "881", - "area": "NANP area" - }, - { - "code": "882", - "area": "NANP area" - }, - { - "code": "901", - "area": "Tennessee" - }, - { - "code": "902", - "area": "Nova Scotia" - }, - { - "code": "903", - "area": "Texas" - }, - { - "code": "904", - "area": "Florida" - }, - { - "code": "905", - "area": "Ontario" - }, - { - "code": "906", - "area": "Michigan" - }, - { - "code": "907", - "area": "Alaska" - }, - { - "code": "908", - "area": "New Jersey" - }, - { - "code": "909", - "area": "California" - }, - { - "code": "910", - "area": "North Carolina" - }, - { - "code": "912", - "area": "Georgia" - }, - { - "code": "913", - "area": "Kansas" - }, - { - "code": "914", - "area": "New York" - }, - { - "code": "915", - "area": "Texas" - }, - { - "code": "916", - "area": "California" - }, - { - "code": "917", - "area": "New York" - }, - { - "code": "918", - "area": "Oklahoma" - }, - { - "code": "919", - "area": "North Carolina" - }, - { - "code": "920", - "area": "Wisconsin" - }, - { - "code": "925", - "area": "California" - }, - { - "code": "928", - "area": "Arizona" - }, - { - "code": "931", - "area": "Tennessee" - }, - { - "code": "936", - "area": "Texas" - }, - { - "code": "937", - "area": "Ohio" - }, - { - "code": "939", - "area": "Puerto Rico" - }, - { - "code": "940", - "area": "Texas" - }, - { - "code": "941", - "area": "Florida" - }, - { - "code": "947", - "area": "Michigan" - }, - { - "code": "949", - "area": "California" - }, - { - "code": "952", - "area": "Minnesota" - }, - { - "code": "954", - "area": "Florida" - }, - { - "code": "956", - "area": "Texas" - }, - { - "code": "970", - "area": "Colorado" - }, - { - "code": "971", - "area": "Oregon" - }, - { - "code": "972", - "area": "Texas" - }, - { - "code": "973", - "area": "New Jersey" - }, - { - "code": "978", - "area": "Massachusetts" - }, - { - "code": "979", - "area": "Texas" - }, - { - "code": "980", - "area": "North Carolina" - }, - { - "code": "985", - "area": "Louisiana" - }, - { - "code": "989", - "area": "Michigan" - } - ] - }, - { - "CountryCode": "CN", - "AreaCodes": [] - } -] - diff --git a/data/carrier_codes.json b/data/carrier_codes.json deleted file mode 100644 index 20b95a5..0000000 --- a/data/carrier_codes.json +++ /dev/null @@ -1,2027 +0,0 @@ -[ - { - "country": "FR", - "carriers": [ - { - "area": { - "code": null, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Other", - "updated_at": null - } - }, - { - "area": { - "code": 6, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 9, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 17, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 36, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 61, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 62, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 66, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 67, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 68, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 76, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 77, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 78, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 79, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 87, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 148, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 149, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 180, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 181, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 182, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 183, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 214, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 218, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 222, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 230, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 234, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 236, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 244, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 245, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 246, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 249, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 250, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 252, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 253, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 256, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 261, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 272, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 276, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 277, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 278, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 285, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 290, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 310, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 345, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 351, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 352, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 354, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 355, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 357, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 358, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 359, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 370, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 371, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 372, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 373, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 411, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 413, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 415, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 420, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 422, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 426, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 427, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 430, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 434, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 443, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 456, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 457, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 463, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 469, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 480, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 481, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 482, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 483, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 484, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 486, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 487, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 488, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 489, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 516, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 517, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 519, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 524, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 531, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 533, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 535, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 540, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 547, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 564, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 567, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 579, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 581, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 582, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 587, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Clec", - "updated_at": null - } - }, - { - "area": { - "code": 601, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 603, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 605, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 607, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 608, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 609, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 630, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 631, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 632, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 633, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 634, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 635, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 637, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 642, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 643, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 645, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 646, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 647, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 648, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 650, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 653, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 654, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 655, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 658, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 659, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 698, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 699, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 780, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6001, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6002, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6003, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6007, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6008, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6009, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6020, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6021, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6022, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6023, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6040, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6041, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6044, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6045, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6046, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6047, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6048, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6049, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6064, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6065, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6066, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6067, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6068, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6069, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6360, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6361, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6362, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6363, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6364, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6365, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6366, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6367, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6368, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6369, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6381, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6382, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6383, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6384, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6385, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6386, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6387, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6388, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6389, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6401, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6402, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6403, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6404, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6405, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6406, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6407, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6408, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6409, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6417, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6444, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6445, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6446, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6490, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6491, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6492, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6493, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6494, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 6495, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7705, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7706, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7707, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7708, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 7709, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 60041, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 60042, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Bouygues Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 60051, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 60052, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64160, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64161, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Orange Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64166, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64167, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64168, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64169, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64995, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64998, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - }, - { - "area": { - "code": 64999, - "country_code": 33, - "country_id": 73, - "created_at": null, - "name": "France Sfr Mobile", - "updated_at": null - } - } - ] - } -] \ No newline at end of file diff --git a/data/country_codes.json b/data/country_codes.json deleted file mode 100644 index 116f43e..0000000 --- a/data/country_codes.json +++ /dev/null @@ -1,1212 +0,0 @@ -[ - { - "name":"Israel", - "dial_code":"+972", - "code":"IL" - }, - { - "name":"Afghanistan", - "dial_code":"+93", - "code":"AF" - }, - { - "name":"Albania", - "dial_code":"+355", - "code":"AL" - }, - { - "name":"Algeria", - "dial_code":"+213", - "code":"DZ" - }, - { - "name":"AmericanSamoa", - "dial_code":"+1684", - "code":"AS" - }, - { - "name":"Andorra", - "dial_code":"+376", - "code":"AD" - }, - { - "name":"Angola", - "dial_code":"+244", - "code":"AO" - }, - { - "name":"Anguilla", - "dial_code":"+1264", - "code":"AI" - }, - { - "name":"Antigua and Barbuda", - "dial_code":"+1268", - "code":"AG" - }, - { - "name":"Argentina", - "dial_code":"+54", - "code":"AR" - }, - { - "name":"Armenia", - "dial_code":"+374", - "code":"AM" - }, - { - "name":"Aruba", - "dial_code":"+297", - "code":"AW" - }, - { - "name":"Australia", - "dial_code":"+61", - "code":"AU" - }, - { - "name":"Austria", - "dial_code":"+43", - "code":"AT" - }, - { - "name":"Azerbaijan", - "dial_code":"+994", - "code":"AZ" - }, - { - "name":"Bahamas", - "dial_code":"+1242", - "code":"BS" - }, - { - "name":"Bahrain", - "dial_code":"+973", - "code":"BH" - }, - { - "name":"Bangladesh", - "dial_code":"+880", - "code":"BD" - }, - { - "name":"Barbados", - "dial_code":"+1246", - "code":"BB" - }, - { - "name":"Belarus", - "dial_code":"+375", - "code":"BY" - }, - { - "name":"Belgium", - "dial_code":"+32", - "code":"BE" - }, - { - "name":"Belize", - "dial_code":"+501", - "code":"BZ" - }, - { - "name":"Benin", - "dial_code":"+229", - "code":"BJ" - }, - { - "name":"Bermuda", - "dial_code":"+1441", - "code":"BM" - }, - { - "name":"Bhutan", - "dial_code":"+975", - "code":"BT" - }, - { - "name":"Bosnia and Herzegovina", - "dial_code":"+387", - "code":"BA" - }, - { - "name":"Botswana", - "dial_code":"+267", - "code":"BW" - }, - { - "name":"Brazil", - "dial_code":"+55", - "code":"BR" - }, - { - "name":"British Indian Ocean Territory", - "dial_code":"+246", - "code":"IO" - }, - { - "name":"Bulgaria", - "dial_code":"+359", - "code":"BG" - }, - { - "name":"Burkina Faso", - "dial_code":"+226", - "code":"BF" - }, - { - "name":"Burundi", - "dial_code":"+257", - "code":"BI" - }, - { - "name":"Cambodia", - "dial_code":"+855", - "code":"KH" - }, - { - "name":"Cameroon", - "dial_code":"+237", - "code":"CM" - }, - { - "name":"Canada", - "dial_code":"+1", - "code":"CA" - }, - { - "name":"Cape Verde", - "dial_code":"+238", - "code":"CV" - }, - { - "name":"Cayman Islands", - "dial_code":"+ 345", - "code":"KY" - }, - { - "name":"Central African Republic", - "dial_code":"+236", - "code":"CF" - }, - { - "name":"Chad", - "dial_code":"+235", - "code":"TD" - }, - { - "name":"Chile", - "dial_code":"+56", - "code":"CL" - }, - { - "name":"China", - "dial_code":"+86", - "code":"CN" - }, - { - "name":"Christmas Island", - "dial_code":"+61", - "code":"CX" - }, - { - "name":"Colombia", - "dial_code":"+57", - "code":"CO" - }, - { - "name":"Comoros", - "dial_code":"+269", - "code":"KM" - }, - { - "name":"Congo", - "dial_code":"+242", - "code":"CG" - }, - { - "name":"Cook Islands", - "dial_code":"+682", - "code":"CK" - }, - { - "name":"Costa Rica", - "dial_code":"+506", - "code":"CR" - }, - { - "name":"Croatia", - "dial_code":"+385", - "code":"HR" - }, - { - "name":"Cuba", - "dial_code":"+53", - "code":"CU" - }, - { - "name":"Cyprus", - "dial_code":"+537", - "code":"CY" - }, - { - "name":"Czech Republic", - "dial_code":"+420", - "code":"CZ" - }, - { - "name":"Denmark", - "dial_code":"+45", - "code":"DK" - }, - { - "name":"Djibouti", - "dial_code":"+253", - "code":"DJ" - }, - { - "name":"Dominica", - "dial_code":"+1767", - "code":"DM" - }, - { - "name":"Dominican Republic", - "dial_code":"+1849", - "code":"DO" - }, - { - "name":"Ecuador", - "dial_code":"+593", - "code":"EC" - }, - { - "name":"Egypt", - "dial_code":"+20", - "code":"EG" - }, - { - "name":"El Salvador", - "dial_code":"+503", - "code":"SV" - }, - { - "name":"Equatorial Guinea", - "dial_code":"+240", - "code":"GQ" - }, - { - "name":"Eritrea", - "dial_code":"+291", - "code":"ER" - }, - { - "name":"Estonia", - "dial_code":"+372", - "code":"EE" - }, - { - "name":"Ethiopia", - "dial_code":"+251", - "code":"ET" - }, - { - "name":"Faroe Islands", - "dial_code":"+298", - "code":"FO" - }, - { - "name":"Fiji", - "dial_code":"+679", - "code":"FJ" - }, - { - "name":"Finland", - "dial_code":"+358", - "code":"FI" - }, - { - "name":"France", - "dial_code":"+33", - "code":"FR" - }, - { - "name":"French Guiana", - "dial_code":"+594", - "code":"GF" - }, - { - "name":"French Polynesia", - "dial_code":"+689", - "code":"PF" - }, - { - "name":"Gabon", - "dial_code":"+241", - "code":"GA" - }, - { - "name":"Gambia", - "dial_code":"+220", - "code":"GM" - }, - { - "name":"Georgia", - "dial_code":"+995", - "code":"GE" - }, - { - "name":"Germany", - "dial_code":"+49", - "code":"DE" - }, - { - "name":"Ghana", - "dial_code":"+233", - "code":"GH" - }, - { - "name":"Gibraltar", - "dial_code":"+350", - "code":"GI" - }, - { - "name":"Greece", - "dial_code":"+30", - "code":"GR" - }, - { - "name":"Greenland", - "dial_code":"+299", - "code":"GL" - }, - { - "name":"Grenada", - "dial_code":"+1473", - "code":"GD" - }, - { - "name":"Guadeloupe", - "dial_code":"+590", - "code":"GP" - }, - { - "name":"Guam", - "dial_code":"+1671", - "code":"GU" - }, - { - "name":"Guatemala", - "dial_code":"+502", - "code":"GT" - }, - { - "name":"Guinea", - "dial_code":"+224", - "code":"GN" - }, - { - "name":"Guinea-Bissau", - "dial_code":"+245", - "code":"GW" - }, - { - "name":"Guyana", - "dial_code":"+595", - "code":"GY" - }, - { - "name":"Haiti", - "dial_code":"+509", - "code":"HT" - }, - { - "name":"Honduras", - "dial_code":"+504", - "code":"HN" - }, - { - "name":"Hungary", - "dial_code":"+36", - "code":"HU" - }, - { - "name":"Iceland", - "dial_code":"+354", - "code":"IS" - }, - { - "name":"India", - "dial_code":"+91", - "code":"IN" - }, - { - "name":"Indonesia", - "dial_code":"+62", - "code":"ID" - }, - { - "name":"Iraq", - "dial_code":"+964", - "code":"IQ" - }, - { - "name":"Ireland", - "dial_code":"+353", - "code":"IE" - }, - { - "name":"Israel", - "dial_code":"+972", - "code":"IL" - }, - { - "name":"Italy", - "dial_code":"+39", - "code":"IT" - }, - { - "name":"Jamaica", - "dial_code":"+1876", - "code":"JM" - }, - { - "name":"Japan", - "dial_code":"+81", - "code":"JP" - }, - { - "name":"Jordan", - "dial_code":"+962", - "code":"JO" - }, - { - "name":"Kazakhstan", - "dial_code":"+7 7", - "code":"KZ" - }, - { - "name":"Kenya", - "dial_code":"+254", - "code":"KE" - }, - { - "name":"Kiribati", - "dial_code":"+686", - "code":"KI" - }, - { - "name":"Kuwait", - "dial_code":"+965", - "code":"KW" - }, - { - "name":"Kyrgyzstan", - "dial_code":"+996", - "code":"KG" - }, - { - "name":"Latvia", - "dial_code":"+371", - "code":"LV" - }, - { - "name":"Lebanon", - "dial_code":"+961", - "code":"LB" - }, - { - "name":"Lesotho", - "dial_code":"+266", - "code":"LS" - }, - { - "name":"Liberia", - "dial_code":"+231", - "code":"LR" - }, - { - "name":"Liechtenstein", - "dial_code":"+423", - "code":"LI" - }, - { - "name":"Lithuania", - "dial_code":"+370", - "code":"LT" - }, - { - "name":"Luxembourg", - "dial_code":"+352", - "code":"LU" - }, - { - "name":"Madagascar", - "dial_code":"+261", - "code":"MG" - }, - { - "name":"Malawi", - "dial_code":"+265", - "code":"MW" - }, - { - "name":"Malaysia", - "dial_code":"+60", - "code":"MY" - }, - { - "name":"Maldives", - "dial_code":"+960", - "code":"MV" - }, - { - "name":"Mali", - "dial_code":"+223", - "code":"ML" - }, - { - "name":"Malta", - "dial_code":"+356", - "code":"MT" - }, - { - "name":"Marshall Islands", - "dial_code":"+692", - "code":"MH" - }, - { - "name":"Martinique", - "dial_code":"+596", - "code":"MQ" - }, - { - "name":"Mauritania", - "dial_code":"+222", - "code":"MR" - }, - { - "name":"Mauritius", - "dial_code":"+230", - "code":"MU" - }, - { - "name":"Mayotte", - "dial_code":"+262", - "code":"YT" - }, - { - "name":"Mexico", - "dial_code":"+52", - "code":"MX" - }, - { - "name":"Monaco", - "dial_code":"+377", - "code":"MC" - }, - { - "name":"Mongolia", - "dial_code":"+976", - "code":"MN" - }, - { - "name":"Montenegro", - "dial_code":"+382", - "code":"ME" - }, - { - "name":"Montserrat", - "dial_code":"+1664", - "code":"MS" - }, - { - "name":"Morocco", - "dial_code":"+212", - "code":"MA" - }, - { - "name":"Myanmar", - "dial_code":"+95", - "code":"MM" - }, - { - "name":"Namibia", - "dial_code":"+264", - "code":"NA" - }, - { - "name":"Nauru", - "dial_code":"+674", - "code":"NR" - }, - { - "name":"Nepal", - "dial_code":"+977", - "code":"NP" - }, - { - "name":"Netherlands", - "dial_code":"+31", - "code":"NL" - }, - { - "name":"Netherlands Antilles", - "dial_code":"+599", - "code":"AN" - }, - { - "name":"New Caledonia", - "dial_code":"+687", - "code":"NC" - }, - { - "name":"New Zealand", - "dial_code":"+64", - "code":"NZ" - }, - { - "name":"Nicaragua", - "dial_code":"+505", - "code":"NI" - }, - { - "name":"Niger", - "dial_code":"+227", - "code":"NE" - }, - { - "name":"Nigeria", - "dial_code":"+234", - "code":"NG" - }, - { - "name":"Niue", - "dial_code":"+683", - "code":"NU" - }, - { - "name":"Norfolk Island", - "dial_code":"+672", - "code":"NF" - }, - { - "name":"Northern Mariana Islands", - "dial_code":"+1670", - "code":"MP" - }, - { - "name":"Norway", - "dial_code":"+47", - "code":"NO" - }, - { - "name":"Oman", - "dial_code":"+968", - "code":"OM" - }, - { - "name":"Pakistan", - "dial_code":"+92", - "code":"PK" - }, - { - "name":"Palau", - "dial_code":"+680", - "code":"PW" - }, - { - "name":"Panama", - "dial_code":"+507", - "code":"PA" - }, - { - "name":"Papua New Guinea", - "dial_code":"+675", - "code":"PG" - }, - { - "name":"Paraguay", - "dial_code":"+595", - "code":"PY" - }, - { - "name":"Peru", - "dial_code":"+51", - "code":"PE" - }, - { - "name":"Philippines", - "dial_code":"+63", - "code":"PH" - }, - { - "name":"Poland", - "dial_code":"+48", - "code":"PL" - }, - { - "name":"Portugal", - "dial_code":"+351", - "code":"PT" - }, - { - "name":"Puerto Rico", - "dial_code":"+1939", - "code":"PR" - }, - { - "name":"Qatar", - "dial_code":"+974", - "code":"QA" - }, - { - "name":"Romania", - "dial_code":"+40", - "code":"RO" - }, - { - "name":"Rwanda", - "dial_code":"+250", - "code":"RW" - }, - { - "name":"Samoa", - "dial_code":"+685", - "code":"WS" - }, - { - "name":"San Marino", - "dial_code":"+378", - "code":"SM" - }, - { - "name":"Saudi Arabia", - "dial_code":"+966", - "code":"SA" - }, - { - "name":"Senegal", - "dial_code":"+221", - "code":"SN" - }, - { - "name":"Serbia", - "dial_code":"+381", - "code":"RS" - }, - { - "name":"Seychelles", - "dial_code":"+248", - "code":"SC" - }, - { - "name":"Sierra Leone", - "dial_code":"+232", - "code":"SL" - }, - { - "name":"Singapore", - "dial_code":"+65", - "code":"SG" - }, - { - "name":"Slovakia", - "dial_code":"+421", - "code":"SK" - }, - { - "name":"Slovenia", - "dial_code":"+386", - "code":"SI" - }, - { - "name":"Solomon Islands", - "dial_code":"+677", - "code":"SB" - }, - { - "name":"South Africa", - "dial_code":"+27", - "code":"ZA" - }, - { - "name":"South Georgia and the South Sandwich Islands", - "dial_code":"+500", - "code":"GS" - }, - { - "name":"Spain", - "dial_code":"+34", - "code":"ES" - }, - { - "name":"Sri Lanka", - "dial_code":"+94", - "code":"LK" - }, - { - "name":"Sudan", - "dial_code":"+249", - "code":"SD" - }, - { - "name":"Suriname", - "dial_code":"+597", - "code":"SR" - }, - { - "name":"Swaziland", - "dial_code":"+268", - "code":"SZ" - }, - { - "name":"Sweden", - "dial_code":"+46", - "code":"SE" - }, - { - "name":"Switzerland", - "dial_code":"+41", - "code":"CH" - }, - { - "name":"Tajikistan", - "dial_code":"+992", - "code":"TJ" - }, - { - "name":"Thailand", - "dial_code":"+66", - "code":"TH" - }, - { - "name":"Togo", - "dial_code":"+228", - "code":"TG" - }, - { - "name":"Tokelau", - "dial_code":"+690", - "code":"TK" - }, - { - "name":"Tonga", - "dial_code":"+676", - "code":"TO" - }, - { - "name":"Trinidad and Tobago", - "dial_code":"+1868", - "code":"TT" - }, - { - "name":"Tunisia", - "dial_code":"+216", - "code":"TN" - }, - { - "name":"Turkey", - "dial_code":"+90", - "code":"TR" - }, - { - "name":"Turkmenistan", - "dial_code":"+993", - "code":"TM" - }, - { - "name":"Turks and Caicos Islands", - "dial_code":"+1649", - "code":"TC" - }, - { - "name":"Tuvalu", - "dial_code":"+688", - "code":"TV" - }, - { - "name":"Uganda", - "dial_code":"+256", - "code":"UG" - }, - { - "name":"Ukraine", - "dial_code":"+380", - "code":"UA" - }, - { - "name":"United Arab Emirates", - "dial_code":"+971", - "code":"AE" - }, - { - "name":"United Kingdom", - "dial_code":"+44", - "code":"GB" - }, - { - "name":"United States", - "dial_code":"+1", - "code":"US" - }, - { - "name":"Uruguay", - "dial_code":"+598", - "code":"UY" - }, - { - "name":"Uzbekistan", - "dial_code":"+998", - "code":"UZ" - }, - { - "name":"Vanuatu", - "dial_code":"+678", - "code":"VU" - }, - { - "name":"Wallis and Futuna", - "dial_code":"+681", - "code":"WF" - }, - { - "name":"Yemen", - "dial_code":"+967", - "code":"YE" - }, - { - "name":"Zambia", - "dial_code":"+260", - "code":"ZM" - }, - { - "name":"Zimbabwe", - "dial_code":"+263", - "code":"ZW" - }, - { - "name":"land Islands", - "dial_code":"", - "code":"AX" - }, - { - "name":"Antarctica", - "dial_code":null, - "code":"AQ" - }, - { - "name":"Bolivia, Plurinational State of", - "dial_code":"+591", - "code":"BO" - }, - { - "name":"Brunei Darussalam", - "dial_code":"+673", - "code":"BN" - }, - { - "name":"Cocos (Keeling) Islands", - "dial_code":"+61", - "code":"CC" - }, - { - "name":"Congo, The Democratic Republic of the", - "dial_code":"+243", - "code":"CD" - }, - { - "name":"Cote d'Ivoire", - "dial_code":"+225", - "code":"CI" - }, - { - "name":"Falkland Islands (Malvinas)", - "dial_code":"+500", - "code":"FK" - }, - { - "name":"Guernsey", - "dial_code":"+44", - "code":"GG" - }, - { - "name":"Holy See (Vatican City State)", - "dial_code":"+379", - "code":"VA" - }, - { - "name":"Hong Kong", - "dial_code":"+852", - "code":"HK" - }, - { - "name":"Iran, Islamic Republic of", - "dial_code":"+98", - "code":"IR" - }, - { - "name":"Isle of Man", - "dial_code":"+44", - "code":"IM" - }, - { - "name":"Jersey", - "dial_code":"+44", - "code":"JE" - }, - { - "name":"Korea, Democratic People's Republic of", - "dial_code":"+850", - "code":"KP" - }, - { - "name":"Korea, Republic of", - "dial_code":"+82", - "code":"KR" - }, - { - "name":"Lao People's Democratic Republic", - "dial_code":"+856", - "code":"LA" - }, - { - "name":"Libyan Arab Jamahiriya", - "dial_code":"+218", - "code":"LY" - }, - { - "name":"Macao", - "dial_code":"+853", - "code":"MO" - }, - { - "name":"Macedonia, The Former Yugoslav Republic of", - "dial_code":"+389", - "code":"MK" - }, - { - "name":"Micronesia, Federated States of", - "dial_code":"+691", - "code":"FM" - }, - { - "name":"Moldova, Republic of", - "dial_code":"+373", - "code":"MD" - }, - { - "name":"Mozambique", - "dial_code":"+258", - "code":"MZ" - }, - { - "name":"Palestinian Territory, Occupied", - "dial_code":"+970", - "code":"PS" - }, - { - "name":"Pitcairn", - "dial_code":"+872", - "code":"PN" - }, - { - "name":"Réunion", - "dial_code":"+262", - "code":"RE" - }, - { - "name":"Russia", - "dial_code":"+7", - "code":"RU" - }, - { - "name":"Saint Barthélemy", - "dial_code":"+590", - "code":"BL" - }, - { - "name":"Saint Helena, Ascension and Tristan Da Cunha", - "dial_code":"+290", - "code":"SH" - }, - { - "name":"Saint Kitts and Nevis", - "dial_code":"+1869", - "code":"KN" - }, - { - "name":"Saint Lucia", - "dial_code":"+1758", - "code":"LC" - }, - { - "name":"Saint Martin", - "dial_code":"+590", - "code":"MF" - }, - { - "name":"Saint Pierre and Miquelon", - "dial_code":"+508", - "code":"PM" - }, - { - "name":"Saint Vincent and the Grenadines", - "dial_code":"+1784", - "code":"VC" - }, - { - "name":"Sao Tome and Principe", - "dial_code":"+239", - "code":"ST" - }, - { - "name":"Somalia", - "dial_code":"+252", - "code":"SO" - }, - { - "name":"Svalbard and Jan Mayen", - "dial_code":"+47", - "code":"SJ" - }, - { - "name":"Syrian Arab Republic", - "dial_code":"+963", - "code":"SY" - }, - { - "name":"Taiwan, Province of China", - "dial_code":"+886", - "code":"TW" - }, - { - "name":"Tanzania, United Republic of", - "dial_code":"+255", - "code":"TZ" - }, - { - "name":"Timor-Leste", - "dial_code":"+670", - "code":"TL" - }, - { - "name":"Venezuela, Bolivarian Republic of", - "dial_code":"+58", - "code":"VE" - }, - { - "name":"Viet Nam", - "dial_code":"+84", - "code":"VN" - }, - { - "name":"Virgin Islands, British", - "dial_code":"+1284", - "code":"VG" - }, - { - "name":"Virgin Islands, U.S.", - "dial_code":"+1340", - "code":"VI" - } -] \ No newline at end of file From 37684992ba88b463bce8ae817f46c1a588a942d6 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Fri, 30 Nov 2018 15:38:50 +0100 Subject: [PATCH 59/72] Disposable number providers & refactor Added support for json files to make scanners easier to handle. Added a temporary solution for bug #1 and removed proxy list because they were used as HTTP proxies (so useless for requests using HTTPS) and Google was blacklisting them instantly without taking care of the whitelist cookie. --- phoneinfoga.py | 349 +++++++++++++++---------------------------------- 1 file changed, 106 insertions(+), 243 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index f4e9e97..cf82ebe 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -__version__ = '0.8-dev' +__version__ = '0.9-dev' def banner(): print " ___ _ _____ __ " @@ -85,33 +85,15 @@ uagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1") uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0") -proxy=[] -proxy.append("118.97.125.150:8080") -proxy.append("212.23.250.46:80") -proxy.append("197.149.128.190:42868") -proxy.append("87.128.41.56:80",) -proxy.append("197.149.129.252:32486") -proxy.append("159.69.211.173:3128") -proxy.append("197.149.128.190:44655") -proxy.append("196.13.208.23:8080") -proxy.append("196.13.208.22:8080") -proxy.append("82.136.122.127:80") -proxy.append("178.60.28.98:9999") -proxy.append("41.60.1.102:80") -proxy.append("212.56.139.253:80") - GoogleAbuseToken = '' def search(req, stop): global GoogleAbuseToken global uagent - global proxy - chosenProxy = random.choice(proxy) chosenUserAgent = random.choice(uagent) s = requests.Session() - proxies = {"http": chosenProxy} headers = { 'User-Agent': chosenUserAgent, 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', @@ -123,16 +105,16 @@ def search(req, stop): 'Cookie': 'Cookie: CGIC=Ij90ZXh0L2h0bWwsYXBwbGljYXRpb24veGh0bWwreG1sLGFwcGxpY2F0aW9uL3htbDtxPTAuOSwqLyo7cT0wLjg; CONSENT=YES+RE.fr+20150809-08-0; 1P_JAR=2018-11-28-14; NID=148=aSdSHJz71rufCokaUC93nH3H7lOb8E7BNezDWV-PyyiHTXqWK5Y5hsvj7IAzhZAK04-QNTXjYoLXVu_eiAJkiE46DlNn6JjjgCtY-7Fr0I4JaH-PZRb7WFgSTjiFqh0fw2cCWyN69DeP92dzMd572tQW2Z1gPwno3xuPrYC1T64wOud1DjZDhVAZkpk6UkBrU0PBcnLWL7YdL6IbEaCQlAI9BwaxoH_eywPVyS9V; SID=uAYeu3gT23GCz-ktdGInQuOSf-5SSzl3Plw11-CwsEYY0mqJLSiv7tFKeRpB_5iz8SH5lg.; HSID=AZmH_ctAfs0XbWOCJ; SSID=A0PcRJSylWIxJYTq_; APISID=HHB2bKfJ-2ZUL5-R/Ac0GK3qtM8EHkloNw; SAPISID=wQoxetHBpyo4pJKE/A2P6DUM9zGnStpIVt; SIDCC=ABtHo-EhFAa2AJrJIUgRGtRooWyVK0bAwiQ4UgDmKamfe88xOYBXM47FoL5oZaTxR3H-eOp7-rE; OTZ=4671861_52_52_123900_48_436380; OGPC=873035776-8:; OGP=-873035776:;' } - if True: + try: URL = 'https://www.google.com/search?tbs=li:1&q=%s&gws_rd=ssl' % (req) - r = s.get(URL + GoogleAbuseToken, headers=headers, proxies=proxies) + r = s.get(URL + GoogleAbuseToken, headers=headers) while r.status_code == 503: print code_warning + 'You are temporary blacklisted from Google search. Complete the captcha at the following URL and copy/paste the content of GOOGLE_ABUSE_EXEMPTION cookie : %s' % URL print '\n' + code_info + 'Need help ? Read the doc at https://github.com/sundowndev/PhoneInfoga' token = raw_input('\nGOOGLE_ABUSE_EXEMPTION=') GoogleAbuseToken = '&google_abuse=' + token - r = s.get(URL + GoogleAbuseToken, headers=headers, proxies=proxies) + r = s.get(URL + GoogleAbuseToken, headers=headers) soup = BeautifulSoup(r.content, 'html.parser') results = soup.find("div", id="search").find_all("div", class_="g") @@ -146,12 +128,17 @@ def search(req, stop): if int(counter) > int(stop): break - url = result.find("cite").string + url = result.find("a").get('href') + url = re.sub(r'(?:\/url\?q\=)', '', url) + url = re.sub(r'(?:\/url\?url\=)', '', url) + url = re.sub(r'(?:\&sa\=)(?:.*)', '', url) + url = re.sub(r'(?:\&rct\=)(?:.*)', '', url) + links.append(url) return links - #except: - #print code_error + 'Failed search.' + except: + print code_error + 'Request failed. Please retry or open an issue on GitHub.' def formatNumber(number): return re.sub("(?:\+)?(?:[^[0-9]*)", "", number) @@ -218,7 +205,7 @@ def numverifyScan(PhoneNumber): 'host': "numverify.com", 'connection': "keep-alive", 'content-length': "49", - 'accept': "application/json, text/javascript, */*; q=0.01", + 'accept': "application/json", 'origin': "https://numverify.com", 'x-requested-with': "XMLHttpRequest", 'user-agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36", @@ -282,6 +269,19 @@ def ovhScan(country, number): print(code_result + "Zip code: " + voip_number['zipCode'] if voip_number['zipCode'] is not None else '') askForExit() +def osintDisposableNumScan(number): + dorks = json.load(open('osint/disposable_num_providers.json')) + + for dork in dorks: + dorkRequest = dork['request'].replace('$n', number).replace('$n', number) + + print(code_info + "Searching for results on %s..." % dork['site']) + for result in search(dorkRequest, stop=dork['stop']): + if result: + print(code_result + "Found a temporary number provider: %s" % dork['site']) + print(code_result + "URL: " + result) + askForExit() + def osintScan(countryCode, number, internationalNumber): if not args.osint: return -1 @@ -292,226 +292,38 @@ def osintScan(countryCode, number, internationalNumber): print(code_info + "Generating scan URL on 411.com...") print code_result + "Scan URL: https://www.411.com/phone/%s" % internationalNumber.replace('+', '').replace(' ', '-') - if True: - # Social profiles: facebook, twitter, linkedin, instagram - print(code_info + '[Social media footprints]') - print(code_info + "Searching for footprints on facebook.com... (limit=5)") - for result in search('site:facebook.com intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) + print(code_info + '---- Web pages footprints ----') - print(code_info + "Searching for footprints on twitter.com... (limit=5)") - for result in search('site:twitter.com intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) + print(code_info + "Searching for footprints on web pages... (limit=5)") + for result in search('%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) - print(code_info + "Searching for footprints on linkedin.com... (limit=5)") - for result in search('site:linkedin.com intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) + # Documents + print(code_info + "Searching for documents... (limit=5)") + for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html' % (number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) - print(code_info + "Searching for footprints on instagram.com... (limit=5)") - for result in search('site:instagram.com intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) + print(code_info + '---- Reputation footprints ----') - # Websites - print(code_info + '[Web pages footprints]') - print(code_info + "Searching for footprints on web pages... (limit=5)") - for result in search('%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber), stop=5): - if result: - print(code_result + "Result found: " + result) + print(code_info + "Searching for reputation report on whosenumber.info...") + for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): + if result: + print(code_result + "Found 1 result on whosenumber.info.") + print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") + print(code_result + "URL: " + result) - # Documents - print(code_info + "Searching for documents... (limit=5)") - for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) + print(code_info + "Searching for phone fraud footprints... (limit=5)") + for result in search('intitle:"Phone Fraud" intext:"%s" | "%s"' % (number,number), stop=5): + if result: + print(code_result + "Result found: " + result) + print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") - # Reputation - print(code_info + "Searching for reputation report on whosenumber.info... (limit=1)") - for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): - if result: - print(code_result + "Found 1 result on whosenumber.info.") - print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") - print(code_result + "URL: " + result) + print(code_info + "Generating URL on scamcallfighters.com...") + print code_result + 'http://www.scamcallfighters.com/search-phone-%s.html' % number - print(code_info + "Searching for Phone Fraud footprints... (limit=5)") - for result in search('intitle:"Phone Fraud" intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) - print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") - - print(code_info + "Generating URL on scamcallfighters.com...") - print code_result + 'http://www.scamcallfighters.com/search-phone-%s.html' % number - - #print code_warning + "Waiting 10 sec before sending new requests to avoid being blacklisted..." - #time.sleep(10) - - # Temporary number providers - print(code_info + '[Temporary number providers footprints]') - print(code_info + "Searching for results on hs3x.com... (limit=1)") - for result in search('site:"hs3x.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: hs3x.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-sms-now.com... (limit=1)") - for result in search('site:"receive-sms-now.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-sms-now.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on smslisten.com... (limit=1)") - for result in search('site:"smslisten.com" intext:"%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: smslisten.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on smsnumbersonline.com... (limit=1)") - for result in search('site:"smsnumbersonline.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: smsnumbersonline.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on freesmscode.com... (limit=1)") - for result in search('site:"freesmscode.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: freesmscode.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on catchsms.com... (limit=1)") - for result in search('site:"catchsms.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: catchsms.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on smstibo.com... (limit=1)") - for result in search('site:"smstibo.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: smstibo.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on smsreceiving.com... (limit=1)") - for result in search('site:"smsreceiving.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: smsreceiving.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on getfreesmsnumber.com... (limit=1)") - for result in search('site:"getfreesmsnumber.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: getfreesmsnumber.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on sellaite.com... (limit=1)") - for result in search('site:"sellaite.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: sellaite.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-sms-online.info... (limit=1)") - for result in search('site:"receive-sms-online.info" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-sms-online.info") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receivesmsonline.com... (limit=1)") - for result in search('site:"receivesmsonline.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receivesmsonline.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-a-sms.com... (limit=1)") - for result in search('site:"receive-a-sms.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-a-sms.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on sms-receive.net... (limit=1)") - for result in search('site:"sms-receive.net" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: sms-receive.net") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receivefreesms.com... (limit=1)") - for result in search('site:"receivefreesms.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receivefreesms.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on freeonlinephone.org... (limit=1)") - for result in search('site:"freeonlinephone.org" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: freeonlinephone.org") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-sms.com... (limit=1)") - for result in search('site:"receive-sms.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-sms.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receivetxt.com... (limit=1)") - for result in search('site:"receivetxt.com" %s' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receivetxt.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-smss.com... (limit=1)") - for result in search('site:"receive-smss.com" intext:"+%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-smss.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on freephonenum.com... (limit=1)") - for result in search('site:"freephonenum.com" intext:"%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: freephonenum.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receivefreesms.com... (limit=1)") - for result in search('site:"receivefreesms.com" intext:"%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receivefreesms.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on freesmsverification.com... (limit=1)") - for result in search('site:"freesmsverification.com" %s' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: freesmsverification.com") - print(code_result + "URL: " + result) - askForExit() - - print(code_info + "Searching for results on receive-sms-online.com... (limit=1)") - for result in search('site:"receive-sms-online.com" intext:"%s"' % number, stop=1): - if result: - print(code_result + "Found a temporary number provider: receive-sms-online.com") - print(code_result + "URL: " + result) - askForExit() - #except: - #print code_error + 'Impossible to fetch Google search API. This usually mean you\'re temporary blacklisted.' + print(code_info + '---- Temporary number providers footprints ----') print(code_info + "Searching for phone number on tempophone.com...") response = requests.request("GET", "https://tempophone.com/api/v1/phones") @@ -521,15 +333,62 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "Found a temporary number provider: tempophone.com") askForExit() + osintDisposableNumScan(number) + + print(code_info + '---- Social media footprints ----') + + print(code_info + "Searching for footprints on facebook.com... (limit=5)") + for result in search('site:facebook.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on twitter.com... (limit=5)") + for result in search('site:twitter.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on linkedin.com... (limit=5)") + for result in search('site:linkedin.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on instagram.com... (limit=5)") + for result in search('site:instagram.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on numinfo.net... (limit=2)") + for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on numinfo.net... (limit=2)") + for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Searching for footprints on sync.me... ") + for result in search('site:sync.me inurl:"%s" | "%s"' % (number,internationalNumber), stop=1): + if result: + print(code_result + "Result found: " + result) + + print(code_info + "Generating URL on True People... ") + print code_result + 'https://www.truepeoplesearch.com/results?phoneno=%s' % internationalNumber + + print(code_info + "Searching for footprints on whocallsyou.de... ") + for result in search('site:whocallsyou.de inurl:"0%s"' % (number), stop=1): + if result: + print(code_result + "Result found: " + result) + def askForExit(): if not args.output: - user_input = raw_input(code_info + "Continue scanning ? (Y/n) ") + user_input = raw_input(code_info + "Continue scanning ? (y/N) ") - if user_input.lower() == 'n' or user_input.lower() == 'no': + if user_input.lower() == 'y' or user_input.lower() == 'yes': + return -1 + else: print code_info + "Good bye!" sys.exit() - else: - return -1 def scanNumber(number): print code_title + "[!] ---- Fetching informations for %s ---- [!]" % formatNumber(number) @@ -556,6 +415,10 @@ try: code_error = '[!] ' code_title = '' + if args.osint: + print '\033[91m[!] OSINT scanner is not available using output option (sorry).' + sys.exit() + sys.stdout = args.output banner() else: From 851005603a77450539e050a97bf65a5eaa827818 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Nov 2018 15:39:43 +0100 Subject: [PATCH 60/72] Delete todo.md --- todo.md | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 todo.md diff --git a/todo.md b/todo.md deleted file mode 100644 index 2f20810..0000000 --- a/todo.md +++ /dev/null @@ -1,16 +0,0 @@ -# Todo list - -- Input feature: Done -- Output feature: Done -- OVH scanner - - Search for number range -- Update feature -- Offline scan: Done -- OSINT recon - - Search for social profiles (facebook, twitter, linkedin, instagram) - - Search for documents - - Search for websites - - Search for emails - - Search on 411 - - Search on hs3x - - Search on whosenumber From 63b6987d68f73ea12a0b584f1f0c7239b78e88d3 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Nov 2018 15:40:09 +0100 Subject: [PATCH 61/72] Remove unused google library --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 02ae170..ada83e1 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,4 +2,3 @@ requests bs4 html5lib phonenumbers -google From 588d02d739fa304659e2a9213f25c385e9ac226b Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Nov 2018 15:42:15 +0100 Subject: [PATCH 62/72] Remove unused google library import --- phoneinfoga.py | 1 - 1 file changed, 1 deletion(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index cf82ebe..c4255bb 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -65,7 +65,6 @@ try: from phonenumbers import carrier from phonenumbers import geocoder from phonenumbers import timezone - #from googlesearch import search except KeyboardInterrupt: print '\033[91m[!] Exiting.' sys.exit() From 358fa08996c2004891ac2b2e6a48188e2da848c4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Nov 2018 23:39:14 +0100 Subject: [PATCH 63/72] Duplicate entry --- osint/disposable_num_providers.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/osint/disposable_num_providers.json b/osint/disposable_num_providers.json index adb5bf9..bb9f23a 100644 --- a/osint/disposable_num_providers.json +++ b/osint/disposable_num_providers.json @@ -89,11 +89,6 @@ "request": "site:\"freephonenum.com\" intext:\"$n\"", "stop": 1 }, - { - "site": "receivefreesms.com", - "request": "site:\"receivefreesms.com\" intext:\"$n\"", - "stop": 1 - }, { "site": "freesmsverification.com", "request": "site:\"freesmsverification.com\" $n", From 31dd315c189f0aad6432cdf78af65643e58d3292 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 30 Nov 2018 23:54:22 +0100 Subject: [PATCH 64/72] Disable .html results for documents footprints --- phoneinfoga.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index c4255bb..fc9c35b 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -300,7 +300,7 @@ def osintScan(countryCode, number, internationalNumber): # Documents print(code_info + "Searching for documents... (limit=5)") - for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html' % (number,internationalNumber), stop=5): + for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt' % (number,internationalNumber), stop=5): if result: print(code_result + "Result found: " + result) @@ -356,11 +356,8 @@ def osintScan(countryCode, number, internationalNumber): if result: print(code_result + "Result found: " + result) - print(code_info + "Searching for footprints on numinfo.net... (limit=2)") - for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): - if result: - print(code_result + "Result found: " + result) - + print(code_info + '---- Phone books footprints ----') + print(code_info + "Searching for footprints on numinfo.net... (limit=2)") for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): if result: From bcb4c398b18af801a5a00a674ea0e6c1b5761b13 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 2 Dec 2018 00:04:48 +0100 Subject: [PATCH 65/72] Reputation OSINT queries --- osint/reputation.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/osint/reputation.json b/osint/reputation.json index 778f528..40bd55b 100644 --- a/osint/reputation.json +++ b/osint/reputation.json @@ -1,7 +1,12 @@ [ { - "site": "whosenumber.info", + "title": "reputation report on whosenumber.info", "request": "site:\"whosenumber.info\" intext:\"$n\" intitle:\"who called\"", "stop": 1, + }, + { + "title": "phone fraud footprints", + "request": "intitle:\"Phone Fraud\" intext:\"$n\" | \"$n\"", + "stop": 5, } ] From 11b41963c2eeea44db7cf8a3078adf9453793362 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 2 Dec 2018 00:05:11 +0100 Subject: [PATCH 66/72] Social medias OSINT queries --- osint/social_medias.json | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/osint/social_medias.json b/osint/social_medias.json index 315d3a1..53d7876 100644 --- a/osint/social_medias.json +++ b/osint/social_medias.json @@ -1,14 +1,22 @@ [ { "site": "facebook.com", - "request": "site:\"facebook.com\" intext:\"$n\" | $n", - "dialCode": null, + "request": "site:\"facebook.com\" intext:\"$n\" | $i", "stop": 5 }, { "site": "twitter.com", - "request": "site:\"twitter.com\" intext:\"$n\" | $n", - "dialCode": null, + "request": "site:\"twitter.com\" intext:\"$n\" | $i", + "stop": 5 + }, + { + "site": "linkedin.com", + "request": "site:\"linkedin.com\" intext:\"$n\" | $i", + "stop": 5 + }, + { + "site": "instagram.com", + "request": "site:\"instagram.com\" intext:\"$n\" | $i", "stop": 5 } ] From cff4e8f22714be90bbc8d06fa5368a97e8dffa17 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 2 Dec 2018 00:06:10 +0100 Subject: [PATCH 67/72] some code refactor --- osint/individuals.json | 12 ++++++------ phoneinfoga.py | 11 ++++++++--- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/osint/individuals.json b/osint/individuals.json index 315d3a1..1ee189a 100644 --- a/osint/individuals.json +++ b/osint/individuals.json @@ -1,14 +1,14 @@ [ { - "site": "facebook.com", - "request": "site:\"facebook.com\" intext:\"$n\" | $n", + "site": "numinfo.net", + "request": "site:\"numinfo.net\" intext:\"$n\" | $i", "dialCode": null, - "stop": 5 + "stop": 2 }, { - "site": "twitter.com", - "request": "site:\"twitter.com\" intext:\"$n\" | $n", + "site": "sync.me", + "request": "site:\"sync.me\" intext:\"$n\" | $i", "dialCode": null, - "stop": 5 + "stop": 1 } ] diff --git a/phoneinfoga.py b/phoneinfoga.py index fc9c35b..e375601 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -274,10 +274,10 @@ def osintDisposableNumScan(number): for dork in dorks: dorkRequest = dork['request'].replace('$n', number).replace('$n', number) - print(code_info + "Searching for results on %s..." % dork['site']) + print(code_info + "Searching for footprints on %s..." % dork['site']) for result in search(dorkRequest, stop=dork['stop']): if result: - print(code_result + "Found a temporary number provider: %s" % dork['site']) + print(code_result + "Result found: %s" % dork['site']) print(code_result + "URL: " + result) askForExit() @@ -291,6 +291,11 @@ def osintScan(countryCode, number, internationalNumber): print(code_info + "Generating scan URL on 411.com...") print code_result + "Scan URL: https://www.411.com/phone/%s" % internationalNumber.replace('+', '').replace(' ', '-') + AskingCustomPayload = raw_input(code_info + 'Would you like to use an additional format for this number ? (y/N) ') + + if AskingCustomPayload == 'y': + customPayload = raw_input(code_info + 'Custom format: ') + print(code_info + '---- Web pages footprints ----') print(code_info + "Searching for footprints on web pages... (limit=5)") @@ -357,7 +362,7 @@ def osintScan(countryCode, number, internationalNumber): print(code_result + "Result found: " + result) print(code_info + '---- Phone books footprints ----') - + print(code_info + "Searching for footprints on numinfo.net... (limit=2)") for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): if result: From 5a8a76e44a89e041d5d3492692d8f343d6db65f4 Mon Sep 17 00:00:00 2001 From: Raphael Date: Fri, 7 Dec 2018 17:57:32 +0100 Subject: [PATCH 68/72] Documentation --- README.md | 41 ++++++++++++++++++++++++++++------------- 1 file changed, 28 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index bf9ff5f..f01d648 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,22 @@ # PhoneInfoga -Advanced information gathering & OSINT reconnaissance tool for phone numbers. Designed for Social Engineering and red teaming. - -### Hello, friend. Next time cover your tracks. - - +Information gathering & OSINT reconnaissance tool for phone numbers. Designed for Social Engineering and red teaming. ## The project -Building the most advanced tool to scan phone numbers using only free resources. The goal is to first identify basic informations such as country, area, carrier and line type on any international phone numbers with a very good accuracy, and then detect the VoIP provider or search for footprints on search engines to try identify the owner. +Building one of the most advanced tools to scan phone numbers using only free resources. The goal is to first gather basic information such as country, area, carrier and line type on any international phone numbers with a very good accuracy. Then try to determine the VoIP provider or search for footprints on search engines to try identify the owner. **This tool requires python 2.x** ## Features -- Check if phone number exists +- Check if phone number exists and is possible - Gather standard informations such as country, line type and carrier - Check several numbers at once -- Set an output for result(s) -- Check if number is from a VoIP provider - OSINT reconnaissance using external APIs, Google Hacking, phone books & search engines +- Use custom formatting for more effective OSINT reconnaissance + +![](https://i.imgur.com/Gdd4FMZ.png) ## Formats @@ -70,10 +67,16 @@ optional arguments: -u, --update Update the tool & databases ``` -Example : +Example (quotes are optional, use it when typing special formats) : ``` -python phoneinfoga.py -n +42837544833 +python phoneinfoga.py -n "(+42)837544833" +``` + +Check for a number range on OVH : + +``` +python phoneinfoga.py -n +42837544833 -s ovh ``` Check several numbers at once : @@ -82,10 +85,12 @@ Check several numbers at once : python ./phoneinfoga.py -i numbers.txt -o results.txt ``` -Check for a number range on OVH (just put some zeros) : +**Note: `--osint` is not compatible with `--output` option.** + +Use all scanners and run OSINT reconnaissance : ``` -python phoneinfoga.py -n +42837544833 -s ovh +python phoneinfoga.py -n +42837544833 -s all --osint ``` ## Formatting @@ -115,10 +120,20 @@ Here’s the same phone number in E.164 formatting: +442071838750 ![](https://i.imgur.com/Ovso0w2.png) +## Dealing with Google captcha + +PhoneInfo use a workaround to handle Google bot detection. When running OSINT scan, you will usually be blacklisted very easily by Google, which will ask the tool to complete a captcha. + +## Custom formatting + +... + ## License This tool is licensed under the GNU General Public License v3.0. +---- + ## Resources Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` From 69af4036a4bad8df702dd42bf590dc2d6739f280 Mon Sep 17 00:00:00 2001 From: Raphael Date: Sat, 8 Dec 2018 00:25:44 +0100 Subject: [PATCH 69/72] Documentation --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f01d648..43a4194 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ Building one of the most advanced tools to scan phone numbers using only free re - OSINT reconnaissance using external APIs, Google Hacking, phone books & search engines - Use custom formatting for more effective OSINT reconnaissance -![](https://i.imgur.com/Gdd4FMZ.png) +![](https://i.imgur.com/bWx79dy.png) ## Formats @@ -114,16 +114,25 @@ In the UK, and many other countries internationally, local dialing may require t For example, here’s a UK-based number in standard local formatting: 020 7183 8750 -![](https://i.imgur.com/WdXKSZY.png) - Here’s the same phone number in E.164 formatting: +442071838750 -![](https://i.imgur.com/Ovso0w2.png) - ## Dealing with Google captcha PhoneInfo use a workaround to handle Google bot detection. When running OSINT scan, you will usually be blacklisted very easily by Google, which will ask the tool to complete a captcha. +>When you search on Google using custom requests (Google Dorks), you get very easily blacklisted. So Google shows up a page where you have to complete a captcha to continue. As soon as the captcha is completed, Google create a cookie named "GOOGLE_ABUSE_EXEMPTION" which is used to whitelist your browser and IP address for some minutes. This temporary whitelist is enough to let you gather a lot of information from many sources. So I decided to add a simple user manipulation to bypass this bot detection. [...] So I'll just try make requests and wait until I get a 503 error, which means I got blacklisted. Then I ask the user to follow an URL to manually complete the captcha and copy the whitelist token to paste it in the CLI. The tool is now able to continue to scan! + +![](https://i.imgur.com/qbFZa1m.png) + +### Steps + +- Follow the URL +- Open the dev tool (F12 on most browsers) +- Go to **Storage**, then **Cookies** +- Copy the value of the *GOOGLE_ABUSE_EXEMPTION* cookie and paste it in the CLI + +![](https://i.imgur.com/KkE1EM5.png) + ## Custom formatting ... From 97ef5579a8a0b3093a2e7984736ef74a3c2e9c61 Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 9 Dec 2018 17:36:07 +0100 Subject: [PATCH 70/72] OSINT requests --- osint/individuals.json | 6 ++++++ osint/reputation.json | 4 ++-- osint/social_medias.json | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/osint/individuals.json b/osint/individuals.json index 1ee189a..abd159c 100644 --- a/osint/individuals.json +++ b/osint/individuals.json @@ -10,5 +10,11 @@ "request": "site:\"sync.me\" intext:\"$n\" | $i", "dialCode": null, "stop": 1 + }, + { + "site": "whocallsyou.de", + "request": "site:\"whocallsyou.de\" intext:\"0$n\"", + "dialCode": null, + "stop": 1 } ] diff --git a/osint/reputation.json b/osint/reputation.json index 40bd55b..47726f0 100644 --- a/osint/reputation.json +++ b/osint/reputation.json @@ -2,11 +2,11 @@ { "title": "reputation report on whosenumber.info", "request": "site:\"whosenumber.info\" intext:\"$n\" intitle:\"who called\"", - "stop": 1, + "stop": 1 }, { "title": "phone fraud footprints", "request": "intitle:\"Phone Fraud\" intext:\"$n\" | \"$n\"", - "stop": 5, + "stop": 5 } ] diff --git a/osint/social_medias.json b/osint/social_medias.json index 53d7876..f36adfb 100644 --- a/osint/social_medias.json +++ b/osint/social_medias.json @@ -1,22 +1,22 @@ [ { "site": "facebook.com", - "request": "site:\"facebook.com\" intext:\"$n\" | $i", + "request": "site:\"facebook.com\" intext:\"$i\" | intext:\"$n\"", "stop": 5 }, { "site": "twitter.com", - "request": "site:\"twitter.com\" intext:\"$n\" | $i", + "request": "site:\"twitter.com\" intext:\"$i\" | intext:\"$n\"", "stop": 5 }, { "site": "linkedin.com", - "request": "site:\"linkedin.com\" intext:\"$n\" | $i", + "request": "site:\"linkedin.com\" intext:\"$i\" | intext:\"$n\"", "stop": 5 }, { "site": "instagram.com", - "request": "site:\"instagram.com\" intext:\"$n\" | $i", + "request": "site:\"instagram.com\" intext:\"$i\" | intext:\"$n\"", "stop": 5 } ] From e6d64a133674b79f9cf1b28c69d33d807bcf8fbf Mon Sep 17 00:00:00 2001 From: sundowndev Date: Sun, 9 Dec 2018 17:37:14 +0100 Subject: [PATCH 71/72] Number formatting Use number formats globally and handle custom format from user input. --- phoneinfoga.py | 262 ++++++++++++++++++++++++++++++------------------- 1 file changed, 161 insertions(+), 101 deletions(-) diff --git a/phoneinfoga.py b/phoneinfoga.py index e375601..4291ce6 100644 --- a/phoneinfoga.py +++ b/phoneinfoga.py @@ -84,10 +84,17 @@ uagent.append("Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.3) Gecko uagent.append("Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.1) Gecko/20090718 Firefox/3.5.1") uagent.append("Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0") -GoogleAbuseToken = '' +number = '' # Full number format +localNumber = '' # Local number format +internationalNumber = '' # International numberformat +numberCountryCode = '' # Dial code; e.g:"+33" +numberCountry = '' # Country; e.g:France + +googleAbuseToken = '' +customFormatting = '' def search(req, stop): - global GoogleAbuseToken + global googleAbuseToken global uagent chosenUserAgent = random.choice(uagent) @@ -106,14 +113,14 @@ def search(req, stop): try: URL = 'https://www.google.com/search?tbs=li:1&q=%s&gws_rd=ssl' % (req) - r = s.get(URL + GoogleAbuseToken, headers=headers) + r = s.get(URL + googleAbuseToken, headers=headers) while r.status_code == 503: print code_warning + 'You are temporary blacklisted from Google search. Complete the captcha at the following URL and copy/paste the content of GOOGLE_ABUSE_EXEMPTION cookie : %s' % URL print '\n' + code_info + 'Need help ? Read the doc at https://github.com/sundowndev/PhoneInfoga' token = raw_input('\nGOOGLE_ABUSE_EXEMPTION=') - GoogleAbuseToken = '&google_abuse=' + token - r = s.get(URL + GoogleAbuseToken, headers=headers) + googleAbuseToken = '&google_abuse=' + token + r = s.get(URL + googleAbuseToken, headers=headers) soup = BeautifulSoup(r.content, 'html.parser') results = soup.find("div", id="search").find_all("div", class_="g") @@ -133,21 +140,28 @@ def search(req, stop): url = re.sub(r'(?:\&sa\=)(?:.*)', '', url) url = re.sub(r'(?:\&rct\=)(?:.*)', '', url) + if re.match(r"^(/search\?q=)", url) is not None: + url = 'https://google.com' + url + links.append(url) return links except: print code_error + 'Request failed. Please retry or open an issue on GitHub.' -def formatNumber(number): - return re.sub("(?:\+)?(?:[^[0-9]*)", "", number) +def formatNumber(InputNumber): + return re.sub("(?:\+)?(?:[^[0-9]*)", "", InputNumber) + +def localScan(InputNumber): + global number + global localNumber + global internationalNumber + global numberCountryCode + global numberCountry -def localScan(number): print code_info + 'Running local scan...' - PhoneNumber = dict(); - - FormattedPhoneNumber = "+" + formatNumber(number) + FormattedPhoneNumber = "+" + formatNumber(InputNumber) try: PhoneNumberObject = phonenumbers.parse(FormattedPhoneNumber, None) @@ -157,18 +171,18 @@ def localScan(number): if not phonenumbers.is_valid_number(PhoneNumberObject): return False - PhoneNumber['full'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace('+', '') - PhoneNumber['countryCode'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] + number = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace('+', '') + numberCountryCode = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL).split(' ')[0] - countryRequest = json.loads(requests.request('GET', 'https://restcountries.eu/rest/v2/callingcode/%s' % PhoneNumber['countryCode'].replace('+', '')).content) - PhoneNumber['country'] = countryRequest[0]['alpha2Code'] + countryRequest = json.loads(requests.request('GET', 'https://restcountries.eu/rest/v2/callingcode/%s' % numberCountryCode.replace('+', '')).content) + numberCountry = countryRequest[0]['alpha2Code'] - PhoneNumber['number'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(PhoneNumber['countryCode'], '') - PhoneNumber['international'] = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) + localNumber = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.E164).replace(numberCountryCode, '') + internationalNumber = phonenumbers.format_number(PhoneNumberObject, phonenumbers.PhoneNumberFormat.INTERNATIONAL) - print code_result + 'International format: %s' % PhoneNumber['international'] - print code_result + 'Local format: 0%s' % PhoneNumber['number'] - print code_result + 'Country code: %s' % PhoneNumber['countryCode'] + print code_result + 'International format: %s' % internationalNumber + print code_result + 'Local format: 0%s' % localNumber + print code_result + 'Country code: %s' % numberCountryCode print code_result + 'Location: %s' % geocoder.description_for_number(PhoneNumberObject, "en") print code_result + 'Carrier: %s' % carrier.name_for_number(PhoneNumberObject, 'en') print code_result + 'Area: %s' % geocoder.description_for_number(PhoneNumberObject, 'en') @@ -180,9 +194,9 @@ def localScan(number): else: print code_warning + 'The number is valid but might not be possible.' - return PhoneNumber +def numverifyScan(): + global number -def numverifyScan(PhoneNumber): if not args.scanner == 'numverify' and not args.scanner == 'all': return -1 @@ -197,7 +211,7 @@ def numverifyScan(PhoneNumber): break; apiKey = hashlib.md5() - apiKey.update(PhoneNumber + requestSecret) + apiKey.update(number + requestSecret) apiKey = apiKey.hexdigest() headers = { @@ -215,7 +229,7 @@ def numverifyScan(PhoneNumber): 'cache-control': "no-cache" } - response = requests.request("GET", "https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + PhoneNumber, data="", headers=headers) + response = requests.request("GET", "https://numverify.com/php_helper_scripts/phone_api.php?secret_key=" + apiKey + "&number=" + number, data="", headers=headers) if response.content == "Unauthorized" or response.status_code != 200: print(code_error + "An error occured while calling the API (bad request or wrong api key).") @@ -240,13 +254,16 @@ def numverifyScan(PhoneNumber): elif data["line_type"] == 'mobile': print(code_warning + "This is most likely a mobile, but it can still be a VoIP.") -def ovhScan(country, number): +def ovhScan(): + global localNumber + global numberCountry + if not args.scanner == 'ovh' and not args.scanner == 'all': return -1 print code_info + 'Running OVH scan...' - querystring = { "country": country.lower() } + querystring = { "country": numberCountry.lower() } headers = { 'accept': "application/json", @@ -258,7 +275,7 @@ def ovhScan(country, number): data = json.loads(response.content) if isinstance(data, list): - askedNumber = "0" + number.replace(number[-4:], 'xxxx') + askedNumber = "0" + localNumber.replace(localNumber[-4:], 'xxxx') for voip_number in data: if voip_number['number'] == askedNumber: @@ -268,11 +285,71 @@ def ovhScan(country, number): print(code_result + "Zip code: " + voip_number['zipCode'] if voip_number['zipCode'] is not None else '') askForExit() -def osintDisposableNumScan(number): +def osintIndividualScan(): + global number + global internationalNumber + global numberCountryCode + global customFormatting + + dorks = json.load(open('osint/individuals.json')) + + for dork in dorks: + if dork['dialCode'] is None or dork['dialCode'] == numberCountryCode: + if customFormatting: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + ' | intext:"%s"' % (customFormatting) + else: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + + print(code_info + "Searching for footprints on %s..." % dork['site']) + for result in search(dorkRequest, stop=dork['stop']): + if result: + print(code_result + "URL: " + result) + else: + return -1 + +def osintReputationScan(): + global number + global internationalNumber + global customFormatting + + dorks = json.load(open('osint/reputation.json')) + + for dork in dorks: + if customFormatting: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + ' | intext:"%s"' % (customFormatting) + else: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + + print(code_info + "Searching for %s..." % dork['title']) + for result in search(dorkRequest, stop=dork['stop']): + if result: + print(code_result + "URL: " + result) + +def osintSocialMediaScan(): + global number + global internationalNumber + global customFormatting + + dorks = json.load(open('osint/social_medias.json')) + + for dork in dorks: + if customFormatting: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + ' | intext:"%s"' % (customFormatting) + else: + dorkRequest = dork['request'].replace('$n', number).replace('$i', internationalNumber) + + print(code_info + "Searching for footprints on %s..." % dork['site']) + for result in search(dorkRequest, stop=dork['stop']): + if result: + print(code_result + "URL: " + result) + +def osintDisposableNumScan(): + global number + dorks = json.load(open('osint/disposable_num_providers.json')) for dork in dorks: - dorkRequest = dork['request'].replace('$n', number).replace('$n', number) + dorkRequest = dork['request'].replace('$n', number) print(code_info + "Searching for footprints on %s..." % dork['site']) for result in search(dorkRequest, stop=dork['stop']): @@ -281,7 +358,14 @@ def osintDisposableNumScan(number): print(code_result + "URL: " + result) askForExit() -def osintScan(countryCode, number, internationalNumber): +def osintScan(): + global number + global localNumber + global internationalNumber + global numberCountryCode + global numberCountry + global customFormatting + if not args.osint: return -1 @@ -291,95 +375,65 @@ def osintScan(countryCode, number, internationalNumber): print(code_info + "Generating scan URL on 411.com...") print code_result + "Scan URL: https://www.411.com/phone/%s" % internationalNumber.replace('+', '').replace(' ', '-') - AskingCustomPayload = raw_input(code_info + 'Would you like to use an additional format for this number ? (y/N) ') + askingCustomPayload = raw_input(code_info + 'Would you like to use an additional format for this number ? (y/N) ') - if AskingCustomPayload == 'y': - customPayload = raw_input(code_info + 'Custom format: ') + if askingCustomPayload == 'y' or askingCustomPayload == 'yes': + customFormatting = raw_input(code_info + 'Custom format: ') print(code_info + '---- Web pages footprints ----') print(code_info + "Searching for footprints on web pages... (limit=5)") - for result in search('%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber), stop=5): + if customFormatting: + req = '%s | intext:"%s" | intext:"%s" | intext:"%s"' % (number,number,internationalNumber,customFormatting) + else: + req = '%s | intext:"%s" | intext:"%s"' % (number,number,internationalNumber) + for result in search(req, stop=5): if result: print(code_result + "Result found: " + result) # Documents - print(code_info + "Searching for documents... (limit=5)") - for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt' % (number,internationalNumber), stop=5): + print(code_info + "Searching for documents... (limit=10)") + if customFormatting: + req = 'intext:"%s" | intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt' % (number,internationalNumber,customFormatting) + else: + req = 'intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt' % (number,internationalNumber) + for result in search('intext:"%s" | intext:"%s" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt' % (number,internationalNumber), stop=10): if result: print(code_result + "Result found: " + result) print(code_info + '---- Reputation footprints ----') - print(code_info + "Searching for reputation report on whosenumber.info...") - for result in search('site:whosenumber.info intext:"%s" intitle:"who called"' % number, stop=1): - if result: - print(code_result + "Found 1 result on whosenumber.info.") - print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") - print(code_result + "URL: " + result) - - print(code_info + "Searching for phone fraud footprints... (limit=5)") - for result in search('intitle:"Phone Fraud" intext:"%s" | "%s"' % (number,number), stop=5): - if result: - print(code_result + "Result found: " + result) - print(code_info + "This usually mean you are not the first to search about this number. Check the URL for eventual comments.") + osintReputationScan() print(code_info + "Generating URL on scamcallfighters.com...") print code_result + 'http://www.scamcallfighters.com/search-phone-%s.html' % number - print(code_info + '---- Temporary number providers footprints ----') + tmpNumAsk = raw_input(code_info + "Would you like to search for temporary number providers footprints ? (Y/n) ") - print(code_info + "Searching for phone number on tempophone.com...") - response = requests.request("GET", "https://tempophone.com/api/v1/phones") - data = json.loads(response.content) - for voip_number in data['objects']: - if voip_number['phone'] == formatNumber(number): - print(code_result + "Found a temporary number provider: tempophone.com") - askForExit() + if tmpNumAsk.lower() != 'n' and tmpNumAsk.lower() != 'no': + print(code_info + '---- Temporary number providers footprints ----') - osintDisposableNumScan(number) + print(code_info + "Searching for phone number on tempophone.com...") + response = requests.request("GET", "https://tempophone.com/api/v1/phones") + data = json.loads(response.content) + for voip_number in data['objects']: + if voip_number['phone'] == formatNumber(number): + print(code_result + "Found a temporary number provider: tempophone.com") + askForExit() + + osintDisposableNumScan() print(code_info + '---- Social media footprints ----') - print(code_info + "Searching for footprints on facebook.com... (limit=5)") - for result in search('site:facebook.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): - if result: - print(code_result + "Result found: " + result) - - print(code_info + "Searching for footprints on twitter.com... (limit=5)") - for result in search('site:twitter.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): - if result: - print(code_result + "Result found: " + result) - - print(code_info + "Searching for footprints on linkedin.com... (limit=5)") - for result in search('site:linkedin.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): - if result: - print(code_result + "Result found: " + result) - - print(code_info + "Searching for footprints on instagram.com... (limit=5)") - for result in search('site:instagram.com intext:"%s" | "%s"' % (number,internationalNumber), stop=5): - if result: - print(code_result + "Result found: " + result) + osintSocialMediaScan() print(code_info + '---- Phone books footprints ----') - print(code_info + "Searching for footprints on numinfo.net... (limit=2)") - for result in search('site:numinfo.net intext:"%s" | "%s"' % (number,internationalNumber), stop=2): - if result: - print(code_result + "Result found: " + result) + if numberCountryCode == '+1': + print(code_info + "Generating URL on True People... ") + print code_result + 'https://www.truepeoplesearch.com/results?phoneno=%s' % internationalNumber.replace(' ', '') - print(code_info + "Searching for footprints on sync.me... ") - for result in search('site:sync.me inurl:"%s" | "%s"' % (number,internationalNumber), stop=1): - if result: - print(code_result + "Result found: " + result) - - print(code_info + "Generating URL on True People... ") - print code_result + 'https://www.truepeoplesearch.com/results?phoneno=%s' % internationalNumber - - print(code_info + "Searching for footprints on whocallsyou.de... ") - for result in search('site:whocallsyou.de inurl:"0%s"' % (number), stop=1): - if result: - print(code_result + "Result found: " + result) + osintIndividualScan() def askForExit(): if not args.output: @@ -391,18 +445,24 @@ def askForExit(): print code_info + "Good bye!" sys.exit() -def scanNumber(number): - print code_title + "[!] ---- Fetching informations for %s ---- [!]" % formatNumber(number) +def scanNumber(InputNumber): + print code_title + "[!] ---- Fetching informations for %s ---- [!]" % formatNumber(InputNumber) - PhoneNumber = localScan(number) + localScan(InputNumber) - if not PhoneNumber: - print(code_error + "Error: number " + formatNumber(number) + " is not valid. Skipping.") + global number + global localNumber + global internationalNumber + global numberCountryCode + global numberCountry + + if not number: + print(code_error + "Error: number " + formatNumber(InputNumber) + " is not valid. Skipping.") sys.exit() - numverifyScan(PhoneNumber['full']) - ovhScan(PhoneNumber['country'], PhoneNumber['number']) - osintScan(PhoneNumber['countryCode'], PhoneNumber['full'], PhoneNumber['international']) + numverifyScan() + ovhScan() + osintScan() print code_info + "Scan finished." @@ -443,5 +503,5 @@ try: if args.output: args.output.close() except KeyboardInterrupt: - print code_info + "Scan interrupted. Good bye!" + print(code_error + "Scan interrupted. Good bye!") sys.exit() From 1a8197f295f6c73deb99348911660f211df8a9aa Mon Sep 17 00:00:00 2001 From: Raphael Date: Sun, 9 Dec 2018 18:19:21 +0100 Subject: [PATCH 72/72] Documentation --- README.md | 47 ++--------------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) diff --git a/README.md b/README.md index 431bc34..57a08af 100644 --- a/README.md +++ b/README.md @@ -127,6 +127,7 @@ PhoneInfo use a workaround to handle Google bot detection. When running OSINT sc ### Steps - Follow the URL +- Complete the captcha if needed - Open the dev tool (F12 on most browsers) - Go to **Storage**, then **Cookies** - Copy the value of the *GOOGLE_ABUSE_EXEMPTION* cookie and paste it in the CLI @@ -135,52 +136,8 @@ PhoneInfo use a workaround to handle Google bot detection. When running OSINT sc ## Custom formatting -... +Sometimes the phone number has footprints but is used with a different formatting. This is a problem because for example if we search for "+15417543010", we'll not find web pages that write it that way : "(541) 754–3010". So the tool use a (optional) custom formatting given by the user to find further and more accurate results. ## License This tool is licensed under the GNU General Public License v3.0. - ----- - -## Resources - -Regular expression : `^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$` - -### Docs - -- http://whitepages.fr/phonesystem/ -- https://support.twilio.com/hc/en-us/articles/223183008-Formatting-International-Phone-Numbers -- https://en.wikipedia.org/wiki/National_conventions_for_writing_telephone_numbers - -### open data - -- https://api.ovh.com/console/#/telephony - - `/telephony/number/ranges` - - `/telephony/number/detailedZones` - - `/telephony/number/specificNumbers` -- https://countrycode.org/ -- http://www.countryareacode.net/en/ -- http://directory.didww.com/area-prefixes -- http://hs3x.com/ -- http://www.numinfo.net/ - -### Scanners - -- https://www.phonevalidator.com/ -- https://freecarrierlookup.com/ -- https://www.411.com/ -- https://www.washington.edu/home/peopledir/ - -### OSINT - -- https://osintframework.com/ -- http://raidersec.blogspot.com/2012/12/automated-open-source-intelligence.html#google_api - -#### Google dork requests - -- `insubject:"+XXXXXXXXX" | insubject:"+XXXXX" | insubject:"XXXXX XXX XXX` -- `insubject:"{number}" | intitle:"{number}"` -- `intext:"{number}" ext:doc | ext:docx | ext:odt | ext:pdf | ext:rtf | ext:sxw | ext:psw | ext:ppt | ext:pptx | ext:pps | ext:csv | ext:txt | ext:html` -- voip provider check: `site:"hs3x.com" intext:"+61437954897"` -- scam number check:`site:signal-arnaques.com intext:"0682649478" intitle:" | Phone Fraud"`