commit 674ec12e49e88bf8eaaacfb08e556962ff753fa7 Author: nihonium Date: Mon Nov 28 23:41:17 2022 +0300 meow diff --git a/README.md b/README.md new file mode 100644 index 0000000..d8fb817 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +Для использования желательно иметь под рукой proxychains и список проксей (т.к. рано или поздно там срабатывает fail2ban или что-то типа того) +Пускать через +``` +proxychains -q -f proxy.conf python meow.py +``` diff --git a/meow.py b/meow.py new file mode 100644 index 0000000..1953aa5 --- /dev/null +++ b/meow.py @@ -0,0 +1,35 @@ +from multiprocessing import Process +from faker import Faker +import requests + +fake = Faker() +url = "https://duchoacity.com/pleasario/filla.gtd.html" + +headers = { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US,en;q=0.9", + "Cache-Control": "no-cache", + "Connection": "keep-alive", + "Content-Length": "69", + "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8", + "Host": "duchoacity.com", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36", +} + +def send_post_request(): + while True: + payload = { + "username": fake.simple_profile()["username"] + "@mipt.ru", + "password": fake.password(), + } + response = requests.post(url, data=payload, headers=headers) + + time = response.headers["Date"].split(" ")[4] + print(f"{time} - Request sent. Status Code: {response.status_code}") + +# starts 25 different processes running this code +if __name__ == "__main__": + for _ in range(25): + Process(target=send_post_request).start() + diff --git a/proxy.conf b/proxy.conf new file mode 100644 index 0000000..820ff45 --- /dev/null +++ b/proxy.conf @@ -0,0 +1,3 @@ +chain_len = 1 +[ProxyList] +socks5 127.0.0.1 9050