Detect mobile carrier by IP address - mobile

I need to determine mobile carrier name by IP address. I've searched the stack & Google for this, but haven't found anything still working.
My case:
IP 37.108.abc.xyz was used in Poland by carrier Orange. Orange belongs to PTK Centertel which you'll see in ISP name & Domain name by doing the whois. Now, I need to match these. What is more, I need data up-to-date (recently in Poland Era changed to T-Mobile, I want to know that) and lastly, I need API to fetch this data. Of course, I'm willing to pay for such service.
Is there such service? If not, how may I do this on my own?

Related

How to detect user location?

recently I need to detect user location in an app. As you can imagine, there are many (obvious) solutions but I would like to have something like TikTok has in 2021.
After testing their method with virtual and normal devices, with VPN, with GPS mocking, simulated WIFI and Mobile data networks, and email addresses from providers stipulated in different countries, I still could not figure out how they detect my location and thus provide me content. Therefore, I consider their method superior over simple GPS or IP address-based methods. However, I wonder how they do it!
Any idea?
ByteDance (the company behind TikTok) uses your IP address and internet service provider info to get your approximate location, like a lot of other websites do (e.g. Athens, Greece). Google does this too - search anything you want and then scroll down to the bottom of the page. You can find your approximate location there.
I don't know how do they get this info, however, as I have not worked with networks and such.

Use different IP address for every loop in running iMacros script

Can anyone help me with the iMacros? This will be my first time that i will use this. I need to create a script to visit a certain website but for each visit IP address should change for the website to count it as a unique visitor.
Here's what i have so far:
URL GOTO=http://sampleWebsite.com
WAIT SECONDS=10
SET !ERRORIGNORE YES
PROXY ADDRESS=192.168.4.5:80
BYPASS=http://sampleWebsite.com
I'm really not sure about the PROXY ADDRESS and BYPASS script part.
I don't think you can do that.
Your IP address is a property of your computer, not your browser.
Typically it is allocated dynamically via DHCP, but could be set statically via eg control panel.
In the DHCP case, you could in theory release the Ip address, and hope the DHCP server allocates a different one
hint: it probably wont.
In the static case, modification typically requires user interaction and administration permission.
However, assuming this website is public, and not on the local network, then it doesn't matter. The Ip address the website sees is your public IP, and this is set by the ISP. You have no control over this.
By the way, IP address is a terrible way of detecting unique visitors, as it doesn't allow for large corporate environments where hundreds/thousands of unique users will share one external IP.
It is more likely that the website would use additional information, for instance cookies, user agent strings etc. You might have better results if you modify the user agent string, and clear cookies

Changing case of SMTP in Exchange 2007

I have a client that wishes to change their case. Currently their domain (changed for privacy) is named Tom Allen Jones, CPA with a Windows AD domain tajonescpa.com and for some reason he'd like to have the SMTP addresses show as "TAJonesCPA.com" as the reply to address.
Inside of Exchange Management Console, I created a test user and used the old way (testuser#tajones.com) and then changed the SMTP address to TestUser#TAJonesCPA.com but only the user's portion of the email address was changed, the domain name remained in all lower case. I also modified the AD object without any change.
Is there some way to modify this without going into a ton of hassle? It's only for about a dozen users so its not like I'd spend all day manually modifying attributes.
Thanks
You need to create a new e-mail adress policy. here is an Exchange Server 2010 – Email Address Policy – How-To that both show you how to do it using the MMC and the PowerShell command line.
It is a little bit of a kludge, but you could temporarily change the address to X-testuser#TAJonesCPA.com. Then save the change. Wait a minute and remove the "X-" from the beginning of the address. So the final address is testuser#TAJonesCPA.com. Sometimes you have to fully change the address to some other value for the UPPER/lower case change to be recognized.
Of course, you would want to be quick so new messages for the recipient don't bounce.

Detect an MSISDN (mobile number) with the browser

Are there any HTTP headers one can use to detect a mobile users number other than this X-header x-up-calling-line-id ?
I want to detect from all browsers as much as possible to cover all platform mobiles.
I will give you the exact same answer I gave to a very similar question as it should provide some insight into what you are trying to achieve.
The ability to get the MSISDN of the user visiting the WAP site depends on a number of things.
Firstly, the user has to be on Mobile Data. If the user is on WiFi then you will not receive this information.
Secondly, the users mobile network has to support the passing of the MSISDN in the HTTP headers.
Some mobile networks send headers on all requests. Others only send if going through a specific APN. Some only send this header to specific IP addresses/blocks. I have even come across networks that send the MSISDN as a $_GET variable. You will need to check with each network that you intend to support.
For example, a particular network in South Africa used to send MSISDNs in headers until around 6 months ago, and in order to receive the MSISDN in the headers now your server address needs to be whitelisted with them.
Also remember that headers are very easy to spoof, and shouldn't be relied on unless you are guaranteed that you are the originator of the HTTP request, such as in instances where you are using Web Views inside of Android Applications - you would need to put sufficient measures in place yourself.
With all of that in mind, here is what you should be looking for:
Look through your headers for any of the following. This is not a comprehensive list of MSISDN headers at all, they are only the ones I have come across in my adventures in mobile development.
X-MSISDN
X_MSISDN
HTTP_X_MSISDN
X-UP-CALLING-LINE-ID
X_UP_CALLING_LINE_ID
HTTP_X_UP_CALLING_LINE_ID
X_WAP_NETWORK_CLIENT_MSISDN
What I do is run through the headers looking for any matches. If I don't find any matches I run through the headers again using a country-specific MSISDN regex against the values to see if there are any potential MSISDNs in the headers on keys that I do not know about. If I find a potential match I add the key and data to a list that I can go through later in order to add to my list of known MSISDN headers.
I hope this has bought some clarity. What is most important to remember is that this is not a reliable method for getting an MSISDN.
Honestly you wouldn't want this feature it all. Suppose you visit couple of web sites and they capture your phone number from the header "x-up-calling-line-id". And these web sites sell your phone number to telemarketers. Do you want to be in that situation?
Technical reason is different. Phone number is never stored on phone (usually). SIM card is identified by IMSI number and Home Location Registry (at MSC) contains an entry that maps IMSI to phone number. So to answer your question, this is not possible.
Use apache_request_headers() in PHP to get MSISDN. but, the users mobile network has to support the passing of the MSISDN in the HTTP headers.

Programmatic SMS [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
What is the best way to programmatically send an SMS text message?
Are there any free Web Service based SMS gateways?
I know that if I happen to know the user's carrier (Sprint, AT&T, etc), I can send an SMS by emailing an address based on phone number + carrier. I would like a good solution that does not require me to know the carrier. Barring that, is there an easy way to lookup carrier given a cell phone number?
I understand that there are some services independent of the major mobile carriers that offer a per-message fee-based service, with API. What I would like to know is how such organizations tap into the SMS networks. Do they have contracts with mobile carriers to resell their services?
Use http://www.twilio.com/
They have a REST interface to send SMS's and even to establish phone calls or receive phone calls.
You even get 30$ credits to try it out.
Def. the cheapest solution you will find.
Where I work we've been using http://www.clickatell.com for sending out SMS - it looks like its about 6 or 7 cents a message. They just take http POST requests to send out a message. I don't know if you'll be able to find any good free gateways. We used to send out emails, but found they were unreliable.
I've used clickatell in the past and found them very good also.
However, You could build your own to get messages VERY cheap. All you need is: a contract which gives loads of (or unlimited) messages; windows mobile phone; and a bit of socket programming.
Write a web service (pass the number and the message) which makes a call to a program on the mobile which sends the message.
I know of at least FTSE100 company which went this route.
We got fed up with using 'free' sms gateways, very unreliable.
Now we use an sms gateway device called OutboxSMS from Felltech Ltd. It sits on our network and hooks directly into out mobile phone provider using a wireless link from it's built-in transmitter. We needed to buy a SIM card (we got a PAYG with a huge bundle of messages), which is fitted to the OutboxSMS unit. We configured an email account for it on our mail server (MS Exchange), and configured the SMTP/POP3 account on the box.
We use OPManager, this sends alerts by email, which we direct to outboxsms, it parses the message and sends a text message to our ops guys phones when something goes wrong.
We also have some shell scripts which use sendmail to send an email to outboxsms, which again is converted to text messages.
I think this one deserves a new answer. There's a new player in town, it's called Nexmo and features highly competitive prices, even compared to Twilio.
https://www.nexmo.com/
I have been doing that with a nokia phone, connected to a linux machine. I have a cron job and a script that would check a database table for new messages and use gnokii to send messages. It works great if the number of sms you are goig to send isn't to big.
You could also get a GSM transmitter and issue AT commands that send sms's. Don't know why you would want to do it this way, but it's another option. This way you won't depend on someone else service
I don't know of any free SMS services, you usually buy bulk sms'seses and use an API to send them out.
Whitepages.com has an API that will allow developers to reverse lookup a phone number. It reports the carrier on mobile number, however a lot of the time it's some non-existent-anymore carrier like Powertel or something.
Supporting Angus, I can vouch for http://www.clickatell.com. It was used at a company I used to work at. It was a very easy solution to setup and use and worked great. You just need to anticipate how many messages you intend to send out and bulk order messages. They're pretty cheap, overall.
I have used TextMagic. They have reasonable rates and a great API and account management.
Sorry, after re-reading your question i realized this is not the answer your looking for. However this is what i did for my command line program. There's a website where if you put in the telephone number it gives you the carrier. So when i entered my number it screen scraped the website, got the carrier and if the carrier is in my list, i retrieved the email of that carrier
Most companies offer a SMS-to-email kinda thing. For example myphonenumber#verizon.com or something (there's a whole list on wikipedia).
I used that to create my self a little command line application in c# that sends out text messages. However, you don't really get a "reply" and the number is a pre-assigned one from the company.
I think if you want to go the free route, this is your best bet.
Here's the wikipedia link:
SMS gateway

Resources