News for hackers. Stuff that matters.
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by rsync on Sunday January 03, 2021 @10:37PM (#25627706)
I have a shell script named 'lookup' that lets me know (through twilio) the location, mobile carrier, and registered name of a phone number.

I wrote it to quickly identify mobile vs. non-mobile numbers that I might text - also from the command line.

I won't paste the entire script here (mostly authentication and argument parsing) but the meat of it is:

  /usr/local/bin/curl -X GET "https://lookups.twilio.com/v1/PhoneNumbers/$number?Type=carrier&Type=caller-name" -u $accountsid:$authtoken
I use this several times weekly.

EDIT: by "location" I mean their mobile country code - not their actual location which, of course, you cannot get without (ab)using SS7 which is beyond the scope of twilio ...

Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by fy20 on Monday January 04, 2021 @01:40AM (#25628435)
In countries which have number portability this may not always be right. For example my phone number returns Vodafone, which was the carrier it was originally assigned to 15 years ago, but I've been on other networks for over a decade.
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by usr1106 on Monday January 04, 2021 @03:39AM (#25628933)
When Finland got number portability some 15 years ago it also got a free look-up service to see the real operator of every number. This was required for price transparency. Calling within your own network can be cheaper than to a competitor and you should be able to know so before making the call.

Not sure how other countries have handled that. The US had the different approach, callee pays for the mobile part.

Have not looked into the issue for a decade...

Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by Merman_Mike on Sunday January 03, 2021 @10:49PM (#25627770)
What does a few lookups a week cost you? Just a few cents per?
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by janzer on Sunday January 03, 2021 @11:06PM (#25627835)
According to https://www.twilio.com/lookup 1.5 cents per lookup, would be 1 cent without the carrier information.
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by Merman_Mike on Sunday January 03, 2021 @11:21PM (#25627896)
Thanks. I've wanted to do this. Didn't know if there was some account overhead or other fees.
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by hadrien01 on Monday January 04, 2021 @03:12AM (#25628804)
Where do they get the names from?
Re:Look Up Unknown Phone Numbers Using Facebook Reset Password by mct on Monday January 04, 2021 @03:25AM (#25628872)
CallerID information. There are a bunch of lookup services available for it: https://www.voip-info.org/cnam/