diff --git a/.gitignore b/.gitignore index dbe9c82..19afa31 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -.vscode/ \ No newline at end of file +.vscode/ +.idea/ +test.html +lib/__pycache__ \ No newline at end of file diff --git a/README.md b/README.md index 93242fa..217a366 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,19 @@ +**CONSIDER THIS SCRIPT ABANDONED AND NO LONGER WORKING. BLAME THE SARAHAH DEVELOPER, NOT ME.** + + # Sarahah Spam Bot With this script, you can spam any user on Sarahah with a message of your choice. ### Compatibility -Python 2 or 3+ +Python 3+ ### Requirements Requires a proxy to work successfully. I do not include any proxies with the script, so you will have to obtain these on your own from a third-party. -Once you obtain a proxy, fill in the proxy info in `proxies.json` then save the file. +Once you obtain some proxies, paste them (one per line) in `proxies.txt` ### Installation and Usage @@ -21,32 +24,17 @@ Once you obtain a proxy, fill in the proxy info in `proxies.json` then save the 2. Open Terminal on Mac or CMD on Windows -3. Run the following command to install the dependencies: - -**Python 2** +3. Run the following command in your terminal to install the dependencies: ``` pip install requests ``` -**Python 3** - -``` -pip3 install requests -``` - 4. Run the script like this -**Python 2** - -``` -python SarahahBot.py URL OPTION COUNT -``` - -**Python 3** ``` -python3 SarahahBot.py USERNAME TEXT COUNT +python SarahahBot.py USERNAME TEXT COUNT ``` **EXAMPLE** diff --git a/SarahahBot.py b/SarahahBot.py index c899c73..aa35106 100644 --- a/SarahahBot.py +++ b/SarahahBot.py @@ -1,10 +1,19 @@ +#! /usr/bin/env python3 # Python Standard Modules import sys +import os import json +import random +import threading +from queue import Queue +import time # PyPi Modules (must be installed with pip command) import requests +# User Modules +from lib.proxy import * + # Arguments username = str(sys.argv[1]) text = str(sys.argv[2]) @@ -15,23 +24,27 @@ sendMessage = "https://%s.sarahah.com/Messages/SendMessage" % username thankyou = "http://www.sarahah.com/messages/thankyou" -file = open("proxies.json", "r") -proxies = json.load(file) -file.close() - s = requests.Session() +q = Queue() +print_lock = threading.Lock() -def spam(page): +def get_tokens(page): recipId = page.text.split('