Amazon Account Checker Script with Proxies
by Friedx - Saturday June 8, 2024 at 08:35 PM
#1
I've developed a Python script that checks the validity of Amazon account numbers using proxies. It's designed to help verify accounts quickly and efficiently. Here's a brief overview of how it works:

Features:

Uses proxies (HTTP/SOCKS5) for anonymity and bypassing restrictions.
Multi-threaded execution for fast processing.
Generates separate files (valid.txt and invalid.txt) for results.
Requirements:

Python 3.x
requests, tkinter libraries

Code:

import os
import requests
import concurrent.futures
import datetime
import random
import string
import tkinter as tk
from tkinter import filedialog

def check_amazon_account(number, proxy, result_folder):
    url = "https://www.amazon.com/ap/captcha"
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
    }
    proxies = {
        "http": proxy,
        "https": proxy
    }
    try:
        response = requests.get(url, headers=headers, proxies=proxies, timeout=10)
        if response.status_code == 200:
            with open(os.path.join(result_folder, 'valid.txt'), 'a') as f:
                f.write(number + '\n')
            print(f"[VALID] {number}")
        else:
            with open(os.path.join(result_folder, 'invalid.txt'), 'a') as f:
                f.write(number + '\n')
            print(f"[INVALID] {number}")
    except Exception as e:
        print(f"[ERROR] {number}: {e}")

def select_file():
    root = tk.Tk()
    root.withdraw()
    file_path = filedialog.askopenfilename()
    return file_path

def main():
    contact_file = select_file()
    proxy_file = select_file()
    proxy_type = input("Enter the type of proxy (HTTP/SOCKS5): ")
    num_threads = int(input("Enter the number of threads: "))

   
    folder_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8))
    result_folder = os.path.join('result', folder_name)
    os.makedirs(result_folder)

   
    with open(contact_file, 'r') as f:
        numbers = [line.strip() for line in f.readlines()]

   
    with open(proxy_file, 'r') as f:
        proxies = [line.strip() for line in f.readlines()]

    with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads) as executor:
        for number in numbers:
            proxy_info = proxies[random.randint(0, len(proxies)-1)].split(":")
            proxy = f"http://{proxy_info[0]}:{proxy_info[1]}:{proxy_info[2]}:{proxy_info[3]}@{proxy_info[4]}"
            executor.submit(check_amazon_account, number, proxy, result_folder)

if __name__ == "__main__":
    main()

How to Use:

1. Download Python and install the required libraries (requests, tkinter).

2. Run the script.

3. Load the mobile numbers file and then load the proxies file.

Feel free to tweak and improve it as needed. Let me know if you have any questions or suggestions!
Reply
#2
(06-08-2024, 08:35 PM)Friedx Wrote: I've developed a Python script that checks the validity of Amazon account numbers using proxies. It's designed to help verify accounts quickly and efficiently. Here's a brief overview of how it works:

Features:

Uses proxies (HTTP/SOCKS5) for anonymity and bypassing restrictions.
Multi-threaded execution for fast processing.
Generates separate files (valid.txt and invalid.txt) for results.
Requirements:

Python 3.x
requests, tkinter libraries

Code:

import os
import requests
import concurrent.futures
import datetime
import random
import string
import tkinter as tk
from tkinter import filedialog

def check_amazon_account(number, proxy, result_folder):
    url = "https://www.amazon.com/ap/captcha"
    headers = {
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3"
    }
    proxies = {
        "http": proxy,
        "https": proxy
    }
    try:
        response = requests.get(url, headers=headers, proxies=proxies, timeout=10)
        if response.status_code == 200:
            with open(os.path.join(result_folder, 'valid.txt'), 'a') as f:
                f.write(number + '\n')
            print(f"[VALID] {number}")
        else:
            with open(os.path.join(result_folder, 'invalid.txt'), 'a') as f:
                f.write(number + '\n')
            print(f"[INVALID] {number}")
    except Exception as e:
        print(f"[ERROR] {number}: {e}")

def select_file():
    root = tk.Tk()
    root.withdraw()
    file_path = filedialog.askopenfilename()
    return file_path

def main():
    contact_file = select_file()
    proxy_file = select_file()
    proxy_type = input("Enter the type of proxy (HTTP/SOCKS5): ")
    num_threads = int(input("Enter the number of threads: "))

   
    folder_name = ''.join(random.choices(string.ascii_letters + string.digits, k=8))
    result_folder = os.path.join('result', folder_name)
    os.makedirs(result_folder)

   
    with open(contact_file, 'r') as f:
        numbers = [line.strip() for line in f.readlines()]

   
    with open(proxy_file, 'r') as f:
        proxies = [line.strip() for line in f.readlines()]

    with concurrent.futures.ThreadPoolExecutor(max_workers=num_threads) as executor:
        for number in numbers:
            proxy_info = proxies[random.randint(0, len(proxies)-1)].split(":")
            proxy = f"http://{proxy_info[0]}:{proxy_info[1]}:{proxy_info[2]}:{proxy_info[3]}@{proxy_info[4]}"
            executor.submit(check_amazon_account, number, proxy, result_folder)

if __name__ == "__main__":
    main()

Feel free to tweak and improve it as needed. Let me know if you have any questions or suggestions!

Too bad it doesn't include proxies, but other than that, great stuff!
Reply
#3
It does include the proxy feature, but you need to import your own proxies. If you have any suggestions to improve it, you can do so yourself, as I have already shared it with the public.
Reply
#4
nice work, thanks a lot for this great share.
Reply
#5
If any suggestion to improve this script let me know.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FREE BAN OR REPORT TIKTOK ACCOUNT union_sonic 2 467 59 minutes ago
Last Post: union_sonic
  Mullvad script automator DomadordePombo 9 561 08-01-2025, 06:42 PM
Last Post: CyclopsArmy23
  Mullvad Account Checker 2025 [PYTHON] Dimitry 39 1,359 08-01-2025, 03:13 PM
Last Post: ylh440105
  HMC 2.0 Cracked [Multi Mail Checker] Cracked 74 2,919 08-01-2025, 11:05 AM
Last Post: mrtelson2
  ⭐⭐ Saudi ID No Generator Script who 14 1,952 07-28-2025, 03:57 PM
Last Post: 0xruw

Forum Jump:


 Users browsing this thread: