sapbot

Socks Proxy Finder

Feb 6th, 2026
60
0
Never
9
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.14 KB | None | 0 0
  1. import argparse
  2. import socks
  3. import socket
  4. import time
  5. from tqdm import tqdm
  6. from concurrent.futures import ThreadPoolExecutor, as_completed
  7.  
  8. def check_proxy(proxy):
  9.     try:
  10.         # Remove 'socks5://' from the proxy string
  11.         proxy = proxy.replace('socks5://', '')
  12.         # Split the proxy into host and port
  13.         host, port = proxy.split(':')
  14.         port = int(port)
  15.  
  16.         # Create a socket to connect through the proxy
  17.         socks.set_default_proxy(socks.SOCKS5, host, port)
  18.         socket.socket = socks.socksocket
  19.  
  20.         # Measure the connection time
  21.         start_time = time.time()
  22.         sock = socket.socket()
  23.         sock.settimeout(5)  # seconds
  24.         sock.connect(("cows.info.gf", 90))
  25.         sock.close()
  26.         end_time = time.time()
  27.  
  28.         # Calculate response time in milliseconds
  29.         response_time = (end_time - start_time) * 1000
  30.         return f"{proxy} - {int(response_time)}ms"
  31.     except Exception:
  32.         return None
  33.  
  34. def main():
  35.     parser = argparse.ArgumentParser(description='SOCKS Proxy Checker')
  36.     parser.add_argument('-l', '--list', required=True, help='File containing list of proxies')
  37.     parser.add_argument('--threads', type=int, default=10, help='Number of threads to use for checking proxies')
  38.     args = parser.parse_args()
  39.  
  40.     # Read the list of proxies from the file
  41.     with open(args.list, 'r') as file:
  42.         proxies = file.read().splitlines()
  43.  
  44.     results = []
  45.    
  46.     # Use ThreadPoolExecutor to manage multithreading
  47.     with ThreadPoolExecutor(max_workers=args.threads) as executor:
  48.         futures = {executor.submit(check_proxy, proxy): proxy for proxy in proxies}
  49.  
  50.         for future in tqdm(as_completed(futures), total=len(futures), desc="Checking proxies", unit="proxy"):
  51.             result = future.result()
  52.             if result:
  53.                 results.append(result)
  54.  
  55.     # Print all the working proxies with their response times
  56.     if results:
  57.         print("\nWorking proxies:")
  58.         for result in results:
  59.             print(result)
  60.     else:
  61.         print("\nNo working proxies found.")
  62.  
  63. if __name__ == '__main__':
  64.     main()
  65.  
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • Larhunyp
    44 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • User was banned
  • Rulondy
    20 days
    # CSS 0.45 KB | 0 0
    1. ⭐ Changelly Profit Exploit Documentation ⭐
    2.  
    3. https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=apncmjchre
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment